Commit 63808f90 authored by Benjamin Otte's avatar Benjamin Otte

gail: Avoid needless calls to GdkDrawable

parent 62622a94
......@@ -827,8 +827,7 @@ filter_func (GdkXEvent *gdkxevent,
if (window)
{
screen_n = gdk_screen_get_number (
gdk_window_get_screen (GDK_DRAWABLE (window)));
screen_n = gdk_screen_get_number (gdk_window_get_screen (window));
gail_screens [screen_n].update_stacked_windows = TRUE;
if (!gail_screens [screen_n].update_handler)
......@@ -965,8 +964,7 @@ get_window_zorder (GdkWindow *window)
gail_return_val_if_fail (GDK_IS_WINDOW (window), -1);
info = get_screen_info (
gdk_window_get_screen (GDK_DRAWABLE (window)));
info = get_screen_info (gdk_window_get_screen (window));
gail_return_val_if_fail (info->stacked_windows != NULL, -1);
......
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