Commit 032ed351 authored by Ulrich Sibiller's avatar Ulrich Sibiller

Screen.c: use XlibWindow so silence the compiler

This is a bit weird, I'd expect far more places where the compiler could complain about Window vs Window64... But it does not. Screen.c:306:32: warning: passing argument 3 of ‘XQueryTree’ from incompatible pointer type [-Wincompatible-pointer-types] if (XQueryTree(d, candidate, &root, &parent, &children, &num_children)) ^~~~~ In file included from Screen.c:60: Agent.h:85:25: note: expected ‘Window64 *’ {aka ‘long unsigned int *’} but argument is of type ‘Window *’ {aka ‘unsigned int *’} #define Window Window64 ../../../../exports/include/nx-X11/Xlib.h:3041:5: note: in expansion of macro ‘Window’ Window* /* root_return */,
parent d487d587
......@@ -298,9 +298,9 @@ void nxagentSetPixmapFormats(ScreenInfo *screenInfo)
}
/* check if possible_parent is parent of candidate */
Bool nxagentIsParentOf(Display *d, Window possible_parent, Window candidate)
Bool nxagentIsParentOf(Display *d, XlibWindow possible_parent, XlibWindow candidate)
{
Window parent, root, *children = NULL;
XlibWindow parent, root, *children = NULL;
unsigned int num_children;
if (XQueryTree(d, candidate, &root, &parent, &children, &num_children))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment