Commit 33ac51ea authored by Paolo Borelli's avatar Paolo Borelli

win32: init wintab when the device manager is constructed

No need to call a method explicitely after creating the object
parent e9d2a622
......@@ -347,11 +347,10 @@ print_cursor (int index)
}
#endif
void
_gdk_input_wintab_init_check (GdkDeviceManager *_device_manager)
static void
wintab_init_check (GdkDeviceManagerWin32 *device_manager)
{
GdkDeviceManagerWin32 *device_manager = (GdkDeviceManagerWin32 *)_device_manager;
GdkDisplay *display = gdk_device_manager_get_display (_device_manager);
GdkDisplay *display = gdk_device_manager_get_display (GDK_DEVICE_MANAGER (device_manager));
GdkWindow *root = gdk_screen_get_root_window (gdk_display_get_default_screen (display));
static gboolean wintab_initialized = FALSE;
GdkDeviceWintab *device;
......@@ -727,6 +726,8 @@ gdk_device_manager_win32_constructed (GObject *object)
gdk_seat_default_add_slave (GDK_SEAT_DEFAULT (seat), device_manager->system_pointer);
gdk_seat_default_add_slave (GDK_SEAT_DEFAULT (seat), device_manager->system_keyboard);
g_object_unref (seat);
wintab_init_check (device_manager);
}
static GList *
......
......@@ -54,8 +54,6 @@ _gdk_input_init (GdkDisplay *display)
devices = g_list_prepend (devices, device_manager->core_pointer);
GDK_WIN32_DISPLAY (display)->input_devices = devices;
_gdk_input_wintab_init_check (GDK_DEVICE_MANAGER (device_manager));
}
/**
......
......@@ -527,6 +527,5 @@ guint32 _gdk_win32_keymap_get_decimal_mark (void);
void _gdk_win32_windowing_init (void);
void _gdk_dnd_init (void);
void _gdk_events_init (void);
void _gdk_input_wintab_init_check (GdkDeviceManager *device_manager);
#endif /* __GDK_PRIVATE_WIN32_H__ */
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