mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-15 14:50:06 +00:00
win32: make init_root_window private to the screen object
It can be called during the screen object initilization
This commit is contained in:
parent
b20f80e65a
commit
48d693ea80
@ -266,7 +266,6 @@ _gdk_win32_display_open (const gchar *display_name)
|
||||
|
||||
win32_display->screen = g_object_new (GDK_TYPE_WIN32_SCREEN, NULL);
|
||||
|
||||
_gdk_screen_init_root_window (GDK_WIN32_SCREEN (win32_display->screen));
|
||||
_gdk_events_init ();
|
||||
_gdk_input_init (_gdk_display);
|
||||
_gdk_dnd_init ();
|
||||
|
@ -525,7 +525,6 @@ guint32 _gdk_win32_keymap_get_decimal_mark (void);
|
||||
/* Initialization */
|
||||
void _gdk_win32_windowing_init (void);
|
||||
void _gdk_screen_init_monitors (GdkWin32Screen *screen);
|
||||
void _gdk_screen_init_root_window (GdkWin32Screen *screen_win32);
|
||||
void _gdk_screen_init_root_window_size (GdkWin32Screen *screen);
|
||||
void _gdk_dnd_init (void);
|
||||
void _gdk_events_init (void);
|
||||
|
@ -270,8 +270,8 @@ _gdk_screen_init_root_window_size (GdkWin32Screen *screen)
|
||||
screen->root_window->height = rect.height;
|
||||
}
|
||||
|
||||
void
|
||||
_gdk_screen_init_root_window (GdkWin32Screen *screen_win32)
|
||||
static void
|
||||
init_root_window (GdkWin32Screen *screen_win32)
|
||||
{
|
||||
GdkScreen *screen;
|
||||
GdkWindow *window;
|
||||
@ -463,6 +463,8 @@ gdk_win32_screen_init (GdkWin32Screen *win32_screen)
|
||||
|
||||
_gdk_screen_init_monitors (win32_screen);
|
||||
|
||||
init_root_window (win32_screen);
|
||||
|
||||
/* On Windows 8 and later, DWM (composition) is always enabled */
|
||||
win32_screen->always_composited = g_win32_check_windows_version (6, 2, 0, G_WIN32_OS_ANY);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user