From bdbe915326e36ffe900ef5694990633008daa52f Mon Sep 17 00:00:00 2001 From: Scott Balneaves Date: Wed, 17 Feb 2016 18:48:46 -0600 Subject: [PATCH] Do not set the pointer for the root window; instead, only set the pointer for the lightdm-webkit2-greeter window. (cherry picked from commit 1e81908) --- src/lightdm-webkit2-greeter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lightdm-webkit2-greeter.c b/src/lightdm-webkit2-greeter.c index 0e9bf4d..a8d2e8f 100644 --- a/src/lightdm-webkit2-greeter.c +++ b/src/lightdm-webkit2-greeter.c @@ -225,7 +225,6 @@ main(int argc, char **argv) { gdk_screen_get_monitor_geometry(screen, gdk_screen_get_primary_monitor(screen), &geometry); gtk_window_set_default_size(GTK_WINDOW(window), geometry.width, geometry.height); gtk_window_move(GTK_WINDOW(window), geometry.x, geometry.y); - gdk_window_set_cursor(root_window, gdk_cursor_new_for_display(default_display, GDK_LEFT_PTR)); /* There is no window manager, so we need to implement some of its functionality */ gdk_window_set_events(root_window, gdk_window_get_events(root_window) | GDK_SUBSTRUCTURE_MASK); @@ -280,6 +279,7 @@ main(int argc, char **argv) { g_strdup_printf("file://%s/%s/index.html", THEME_DIR, theme)); gtk_widget_show_all(window); + gdk_window_set_cursor(gtk_widget_get_window (GTK_WIDGET (window)), gdk_cursor_new_for_display(default_display, GDK_LEFT_PTR)); gtk_main();