GNOME Bugzilla – Bug 762902
GDK W32: Newly-opened windows (such as popups) have unthemed cursor
Last modified: 2016-03-03 07:31:41 UTC
How to reproduce: * Run any app (widget-factory works) * Set cursor theme to Adwaita * Open a popup (use any menu or combo box) Expected result: * Popup should use Adwaita left_ptr cursor Actual result: * Popup uses default Windows left_ptr cursor and switches to Adwaita left_ptr cursor only when re-opened
Created attachment 322717 [details] [review] GDK W32: Set default cursor from our own theme right away Otherwise WM-dependent default cursor is used, which does not match our theme. Worse, later GDK will realize that we have our own left_ptr cursor and will apply it after all, making the discrepancy even more noticeable.
Review of attachment 322717 [details] [review]: Patch looks good. Just see the minor comment. ::: gdk/win32/gdkwindow-win32.c @@ +152,3 @@ impl->changing_state = FALSE; + + if (display) let's be more explicit and use: display != NULL
Created attachment 322949 [details] [review] GDK W32: Set default cursor from our own theme right away v2: * Fixed a nitpick
Review of attachment 322949 [details] [review]: Looks good.
Attachment 322949 [details] pushed as ba89fbd - GDK W32: Set default cursor from our own theme right away