forked from AuroraMiddleware/gtk
Fix incorrect usage of gdk_get_default_root_window ()). (#92767)
Mon Sep 23 12:24:14 2002 Owen Taylor <otaylor@redhat.com> * modules/input/gtkimcontextxim.c (status_window_get): Fix incorrect usage of gdk_get_default_root_window ()). (#92767)
This commit is contained in:
parent
a7716c187f
commit
d4fe39c3f8
@ -1,3 +1,9 @@
|
|||||||
|
Mon Sep 23 12:24:14 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* modules/input/gtkimcontextxim.c (status_window_get):
|
||||||
|
Fix incorrect usage of gdk_get_default_root_window ()).
|
||||||
|
(#92767)
|
||||||
|
|
||||||
Mon Sep 23 12:12:48 2002 Owen Taylor <otaylor@redhat.com>
|
Mon Sep 23 12:12:48 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkspinbutton.c: Patch from Joshua N Pritikin to
|
* gtk/gtkspinbutton.c: Patch from Joshua N Pritikin to
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Mon Sep 23 12:24:14 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* modules/input/gtkimcontextxim.c (status_window_get):
|
||||||
|
Fix incorrect usage of gdk_get_default_root_window ()).
|
||||||
|
(#92767)
|
||||||
|
|
||||||
Mon Sep 23 12:12:48 2002 Owen Taylor <otaylor@redhat.com>
|
Mon Sep 23 12:12:48 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkspinbutton.c: Patch from Joshua N Pritikin to
|
* gtk/gtkspinbutton.c: Patch from Joshua N Pritikin to
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Mon Sep 23 12:24:14 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* modules/input/gtkimcontextxim.c (status_window_get):
|
||||||
|
Fix incorrect usage of gdk_get_default_root_window ()).
|
||||||
|
(#92767)
|
||||||
|
|
||||||
Mon Sep 23 12:12:48 2002 Owen Taylor <otaylor@redhat.com>
|
Mon Sep 23 12:12:48 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkspinbutton.c: Patch from Joshua N Pritikin to
|
* gtk/gtkspinbutton.c: Patch from Joshua N Pritikin to
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Mon Sep 23 12:24:14 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* modules/input/gtkimcontextxim.c (status_window_get):
|
||||||
|
Fix incorrect usage of gdk_get_default_root_window ()).
|
||||||
|
(#92767)
|
||||||
|
|
||||||
Mon Sep 23 12:12:48 2002 Owen Taylor <otaylor@redhat.com>
|
Mon Sep 23 12:12:48 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkspinbutton.c: Patch from Joshua N Pritikin to
|
* gtk/gtkspinbutton.c: Patch from Joshua N Pritikin to
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Mon Sep 23 12:24:14 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* modules/input/gtkimcontextxim.c (status_window_get):
|
||||||
|
Fix incorrect usage of gdk_get_default_root_window ()).
|
||||||
|
(#92767)
|
||||||
|
|
||||||
Mon Sep 23 12:12:48 2002 Owen Taylor <otaylor@redhat.com>
|
Mon Sep 23 12:12:48 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkspinbutton.c: Patch from Joshua N Pritikin to
|
* gtk/gtkspinbutton.c: Patch from Joshua N Pritikin to
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Mon Sep 23 12:24:14 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* modules/input/gtkimcontextxim.c (status_window_get):
|
||||||
|
Fix incorrect usage of gdk_get_default_root_window ()).
|
||||||
|
(#92767)
|
||||||
|
|
||||||
Mon Sep 23 12:12:48 2002 Owen Taylor <otaylor@redhat.com>
|
Mon Sep 23 12:12:48 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkspinbutton.c: Patch from Joshua N Pritikin to
|
* gtk/gtkspinbutton.c: Patch from Joshua N Pritikin to
|
||||||
|
@ -1045,15 +1045,20 @@ status_window_get (GtkIMContextXIM *context_xim,
|
|||||||
GtkWidget *window;
|
GtkWidget *window;
|
||||||
StatusWindow *status_window;
|
StatusWindow *status_window;
|
||||||
GtkWidget *status_label;
|
GtkWidget *status_label;
|
||||||
|
GdkScreen *screen;
|
||||||
|
GdkWindow *root_window;
|
||||||
|
|
||||||
if (!context_xim->client_window)
|
if (!context_xim->client_window)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
toplevel_gdk = context_xim->client_window;
|
toplevel_gdk = context_xim->client_window;
|
||||||
|
screen = gdk_drawable_get_screen (toplevel_gdk);
|
||||||
|
root_window = gdk_screen_get_root_window (screen);
|
||||||
|
|
||||||
while (TRUE)
|
while (TRUE)
|
||||||
{
|
{
|
||||||
GdkWindow *parent = gdk_window_get_parent (toplevel_gdk);
|
GdkWindow *parent = gdk_window_get_parent (toplevel_gdk);
|
||||||
if (parent == gdk_get_default_root_window ())
|
if (parent == root_window)
|
||||||
break;
|
break;
|
||||||
else
|
else
|
||||||
toplevel_gdk = parent;
|
toplevel_gdk = parent;
|
||||||
|
Loading…
Reference in New Issue
Block a user