Merge branch 'amolenaar/dnd-icon-on-top' into 'main'

macos: Keep DnD windows always on top

Closes #6809 and #6818

See merge request GNOME/gtk!7706
This commit is contained in:
Arjan Molenaar 2024-09-12 09:25:05 +00:00
commit 250322deb0

View File

@ -101,6 +101,8 @@ _gdk_macos_drag_surface_constructed (GObject *object)
[window setOpaque:NO];
[window setBackgroundColor:[NSColor clearColor]];
[window setDecorated:NO];
[window setLevel:NSStatusWindowLevel];
[window setIgnoresMouseEvents:YES];
frame_clock = _gdk_frame_clock_idle_new ();
gdk_surface_set_frame_clock (surface, frame_clock);