Commit d4fe39c3 authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor

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)
parent a7716c18
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>
* gtk/gtkspinbutton.c: Patch from Joshua N Pritikin to
......
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>
* gtk/gtkspinbutton.c: Patch from Joshua N Pritikin to
......
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>
* gtk/gtkspinbutton.c: Patch from Joshua N Pritikin to
......
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>
* gtk/gtkspinbutton.c: Patch from Joshua N Pritikin to
......
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>
* gtk/gtkspinbutton.c: Patch from Joshua N Pritikin to
......
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>
* gtk/gtkspinbutton.c: Patch from Joshua N Pritikin to
......
......@@ -1045,15 +1045,20 @@ status_window_get (GtkIMContextXIM *context_xim,
GtkWidget *window;
StatusWindow *status_window;
GtkWidget *status_label;
GdkScreen *screen;
GdkWindow *root_window;
if (!context_xim->client_window)
return NULL;
toplevel_gdk = context_xim->client_window;
screen = gdk_drawable_get_screen (toplevel_gdk);
root_window = gdk_screen_get_root_window (screen);
while (TRUE)
{
GdkWindow *parent = gdk_window_get_parent (toplevel_gdk);
if (parent == gdk_get_default_root_window ())
if (parent == root_window)
break;
else
toplevel_gdk = parent;
......
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