forked from AuroraMiddleware/gtk
x11: Drop use of gdk_display_get_toplevel_windows
Use the newly introduced helper for this task.
This commit is contained in:
parent
76b6d86659
commit
28a8d03c0b
@ -472,7 +472,7 @@ gdk_x11_device_core_window_at_position (GdkDevice *device,
|
||||
|
||||
/* FIXME: untrusted clients case not multidevice-safe */
|
||||
pointer_window = None;
|
||||
toplevels = gdk_display_get_toplevel_windows (display);
|
||||
toplevels = gdk_x11_display_get_toplevel_windows (display);
|
||||
for (list = toplevels; list != NULL; list = list->next)
|
||||
{
|
||||
window = GDK_WINDOW (list->data);
|
||||
|
@ -545,7 +545,7 @@ gdk_x11_device_xi2_window_at_position (GdkDevice *device,
|
||||
/* FIXME: untrusted clients case not multidevice-safe */
|
||||
pointer_window = None;
|
||||
|
||||
toplevels = gdk_display_get_toplevel_windows (display);
|
||||
toplevels = gdk_x11_display_get_toplevel_windows (display);
|
||||
for (list = toplevels; list != NULL; list = list->next)
|
||||
{
|
||||
window = GDK_WINDOW (list->data);
|
||||
|
@ -588,7 +588,7 @@ gdk_window_cache_new (GdkDisplay *display)
|
||||
GdkWindowImplX11 *impl;
|
||||
gint x, y, width, height;
|
||||
|
||||
toplevel_windows = gdk_display_get_toplevel_windows (display);
|
||||
toplevel_windows = gdk_x11_display_get_toplevel_windows (display);
|
||||
for (list = toplevel_windows; list; list = list->next)
|
||||
{
|
||||
window = GDK_WINDOW (list->data);
|
||||
|
@ -25,6 +25,7 @@
|
||||
#include "gdkdisplay-x11.h"
|
||||
#include "gdkscreen-x11.h"
|
||||
#include "gdkdisplayprivate.h"
|
||||
#include "gdkprivate-x11.h"
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GdkX11Monitor, gdk_x11_monitor, GDK_TYPE_MONITOR)
|
||||
@ -36,7 +37,7 @@ gdk_monitor_has_fullscreen_window (GdkMonitor *monitor)
|
||||
GdkWindow *window;
|
||||
gboolean has_fullscreen;
|
||||
|
||||
toplevels = gdk_display_get_toplevel_windows (monitor->display);
|
||||
toplevels = gdk_x11_display_get_toplevel_windows (monitor->display);
|
||||
|
||||
has_fullscreen = FALSE;
|
||||
for (l = toplevels; l; l = l->next)
|
||||
|
@ -833,7 +833,7 @@ _gdk_x11_screen_set_window_scale (GdkX11Screen *x11_screen,
|
||||
root = x11_screen->root_window;
|
||||
GDK_WINDOW_IMPL_X11 (root->impl)->window_scale = scale;
|
||||
|
||||
toplevels = gdk_display_get_toplevel_windows (x11_screen->display);
|
||||
toplevels = gdk_x11_display_get_toplevel_windows (x11_screen->display);
|
||||
|
||||
for (l = toplevels; l != NULL; l = l->next)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user