gtk+ r20325 - in trunk: . gdk/x11
- From: matthiasc svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r20325 - in trunk: . gdk/x11
- Date: Fri, 6 Jun 2008 20:57:50 +0000 (UTC)
Author: matthiasc
Date: Fri Jun 6 20:57:50 2008
New Revision: 20325
URL: http://svn.gnome.org/viewvc/gtk+?rev=20325&view=rev
Log:
Return the right coordinates
Modified:
trunk/ChangeLog
trunk/gdk/x11/gdkwindow-x11.c
Modified: trunk/gdk/x11/gdkwindow-x11.c
==============================================================================
--- trunk/gdk/x11/gdkwindow-x11.c (original)
+++ trunk/gdk/x11/gdkwindow-x11.c Fri Jun 6 20:57:50 2008
@@ -3379,6 +3379,7 @@
Window xwindow;
Window xparent;
Window root;
+ Window child;
Window *children;
guchar *data;
Window *vroots;
@@ -3437,13 +3438,15 @@
if ((type_return == XA_CARDINAL) && (format_return == 32) &&
(nitems_return == 4) && (data))
{
- guint32 *ldata = (guint32 *) data;
+ gulong *ldata = (gulong *) data;
got_frame_extents = TRUE;
/* try to get the real client window geometry */
if (XGetGeometry (GDK_DISPLAY_XDISPLAY (display), xwindow,
- &root, &wx, &wy, &ww, &wh, &wb, &wd))
- {
+ &root, &wx, &wy, &ww, &wh, &wb, &wd) &&
+ XTranslateCoordinates (GDK_DISPLAY_XDISPLAY (display),
+ xwindow, root, 0, 0, &wx, &wy, &child))
+ {
rect->x = wx;
rect->y = wy;
rect->width = ww;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]