mirror of
https://gitlab.gnome.org/GNOME/libmks.git
synced 2024-12-22 05:35:21 +00:00
Merge branch 'aesteve/fix-atomic-kms-cursor' into 'main'
display-picture: set cursor on init See merge request chergert/libmks!19
This commit is contained in:
commit
543c0cbbda
@ -629,6 +629,7 @@ static void
|
||||
mks_display_picture_init (MksDisplayPicture *self)
|
||||
{
|
||||
GtkEventController *controller;
|
||||
g_autoptr(GdkCursor) gdk_cursor = gdk_cursor_new_from_name ("none", NULL);
|
||||
|
||||
controller = gtk_event_controller_legacy_new ();
|
||||
g_signal_connect_object (controller,
|
||||
@ -661,6 +662,7 @@ mks_display_picture_init (MksDisplayPicture *self)
|
||||
self,
|
||||
G_CONNECT_SWAPPED);
|
||||
|
||||
gtk_widget_set_cursor (GTK_WIDGET (self), gdk_cursor);
|
||||
gtk_widget_set_focusable (GTK_WIDGET (self), TRUE);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user