bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [patch] ConfigureNotify events


From: Kazunobu Kuriyama
Subject: Re: [patch] ConfigureNotify events
Date: Mon, 01 Mar 2004 13:39:38 +0900
User-agent: Mozilla/5.0 (X11; U; Linux i686; ja-JP; rv:1.4) Gecko/20030624 Netscape/7.1

Alexander Malmberg wrote:
<snip>

I tried this patch and found that the windows of GNUstep apps appear slightly higher than before. I have little time to track it down now, so I don't know the reason
exactly.

Skimming the patch, I feel it should use XQeuryTree() and XGetGeometry() before

+                 int root_x, root_y;
+                 Window root_child;
+                 XTranslateCoordinates(dpy, xEvent.xconfigure.window,
+                                       RootWindow(dpy, cWin->screen),
+                                       0, 0,
+                                       &root_x, &root_y,
+                                       &root_child);
+                 x.origin.x = root_x;
+                 x.origin.y = root_y;

to get the window of the parent and its coordinates, and pass them to
XTranslateCoordinates() if it does need them, not the ones of the root
window.

- Kazunobu Kuriyama





reply via email to

[Prev in Thread] Current Thread [Next in Thread]