diff options
Diffstat (limited to 'x11-toolkits')
-rw-r--r-- | x11-toolkits/gtk20/Makefile | 2 | ||||
-rw-r--r-- | x11-toolkits/gtk20/files/patch-gdk_x11_gdkwindow-x11.c | 31 | ||||
-rw-r--r-- | x11-toolkits/gtk30/Makefile | 2 | ||||
-rw-r--r-- | x11-toolkits/gtk30/files/patch-gdk_x11_gdkwindow-x11.c | 31 |
4 files changed, 64 insertions, 2 deletions
diff --git a/x11-toolkits/gtk20/Makefile b/x11-toolkits/gtk20/Makefile index e6bde051e963..d5550666f786 100644 --- a/x11-toolkits/gtk20/Makefile +++ b/x11-toolkits/gtk20/Makefile @@ -8,7 +8,7 @@ PORTNAME= gtk PORTVERSION= 2.12.10 -PORTREVISION?= 1 +PORTREVISION?= 2 CATEGORIES= x11-toolkits MASTER_SITES= ${MASTER_SITE_GNOME:S,%SUBDIR%,sources/gtk+/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}/,} \ ftp://ftp.gtk.org/pub/gtk/%SUBDIR%/ \ diff --git a/x11-toolkits/gtk20/files/patch-gdk_x11_gdkwindow-x11.c b/x11-toolkits/gtk20/files/patch-gdk_x11_gdkwindow-x11.c new file mode 100644 index 000000000000..d9ce8c811ed2 --- /dev/null +++ b/x11-toolkits/gtk20/files/patch-gdk_x11_gdkwindow-x11.c @@ -0,0 +1,31 @@ +Index: gdk/x11/gdkwindow-x11.c +=================================================================== +--- gdk/x11/gdkwindow-x11.c (revision 20280) ++++ gdk/x11/gdkwindow-x11.c (working copy) +@@ -3412,6 +3412,7 @@ + Window xwindow; + Window xparent; + Window root; ++ Window child; + Window *children; + guchar *data; + Window *vroots; +@@ -3470,13 +3471,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; diff --git a/x11-toolkits/gtk30/Makefile b/x11-toolkits/gtk30/Makefile index e6bde051e963..d5550666f786 100644 --- a/x11-toolkits/gtk30/Makefile +++ b/x11-toolkits/gtk30/Makefile @@ -8,7 +8,7 @@ PORTNAME= gtk PORTVERSION= 2.12.10 -PORTREVISION?= 1 +PORTREVISION?= 2 CATEGORIES= x11-toolkits MASTER_SITES= ${MASTER_SITE_GNOME:S,%SUBDIR%,sources/gtk+/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}/,} \ ftp://ftp.gtk.org/pub/gtk/%SUBDIR%/ \ diff --git a/x11-toolkits/gtk30/files/patch-gdk_x11_gdkwindow-x11.c b/x11-toolkits/gtk30/files/patch-gdk_x11_gdkwindow-x11.c new file mode 100644 index 000000000000..d9ce8c811ed2 --- /dev/null +++ b/x11-toolkits/gtk30/files/patch-gdk_x11_gdkwindow-x11.c @@ -0,0 +1,31 @@ +Index: gdk/x11/gdkwindow-x11.c +=================================================================== +--- gdk/x11/gdkwindow-x11.c (revision 20280) ++++ gdk/x11/gdkwindow-x11.c (working copy) +@@ -3412,6 +3412,7 @@ + Window xwindow; + Window xparent; + Window root; ++ Window child; + Window *children; + guchar *data; + Window *vroots; +@@ -3470,13 +3471,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; |