[gtk/wip/chergert/for-main: 4/6] macos: always raise window even if delaying show
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/for-main: 4/6] macos: always raise window even if delaying show
- Date: Tue, 1 Mar 2022 09:16:34 +0000 (UTC)
commit 26fbbed5de7673b6f761be9282ee39a8bcc263d1
Author: Christian Hergert <christian hergert me>
Date: Tue Mar 1 00:22:52 2022 -0800
macos: always raise window even if delaying show
We want to make sure the window gets the proper updated stacking order,
even if we're going to delay showing it until the next frame. This helps
ensure that pointer events land in the right place.
gdk/macos/gdkmacossurface.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gdk/macos/gdkmacossurface.c b/gdk/macos/gdkmacossurface.c
index 128ca91b77..ff970c74c9 100644
--- a/gdk/macos/gdkmacossurface.c
+++ b/gdk/macos/gdkmacossurface.c
@@ -909,6 +909,7 @@ _gdk_macos_surface_show (GdkMacosSurface *self)
if (GDK_SURFACE_DESTROYED (self))
return;
+ [self->window orderFront:nil];
_gdk_macos_display_clear_sorting (GDK_MACOS_DISPLAY (GDK_SURFACE (self)->display));
self->show_on_next_swap = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]