forked from AuroraMiddleware/gtk
gail: Avoid needless calls to GdkDrawable
This commit is contained in:
parent
62622a94ae
commit
63808f90a2
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user