[gtk/wip/chergert/macos-iosurface] macos: reload IOSurface when monitor configuration changes
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gtk/wip/chergert/macos-iosurface] macos: reload IOSurface when monitor configuration changes
- Date: Tue, 22 Feb 2022 08:59:05 +0000 (UTC)
commit a75819b5453549d1adcd78c6f1f70dd8df116b36
Author: Christian Hergert <christian hergert me>
Date:   Tue Feb 22 00:33:03 2022 -0800
    macos: reload IOSurface when monitor configuration changes
    
    We also want to reload buffer contents if the display server changes the
    monitor configuration, such as after changing resolution or orientation.
 gdk/macos/gdkmacosdisplay.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gdk/macos/gdkmacosdisplay.c b/gdk/macos/gdkmacosdisplay.c
index a8af833eb5..74095504a2 100644
--- a/gdk/macos/gdkmacosdisplay.c
+++ b/gdk/macos/gdkmacosdisplay.c
@@ -173,8 +173,7 @@ gdk_macos_display_monitors_changed_cb (CFNotificationCenterRef  center,
   _gdk_macos_display_reload_monitors (self);
 
   /* Now we need to update all our surface positions since they
-   * probably just changed origins. We ignore the popup surfaces
-   * since we can rely on the toplevel surfaces to handle that.
+   * probably just changed origins.
    */
   for (const GList *iter = _gdk_macos_display_get_surfaces (self);
        iter != NULL;
@@ -184,8 +183,7 @@ gdk_macos_display_monitors_changed_cb (CFNotificationCenterRef  center,
 
       g_assert (GDK_IS_MACOS_SURFACE (surface));
 
-      if (GDK_IS_TOPLEVEL (surface))
-        _gdk_macos_surface_configure (surface);
+      _gdk_macos_surface_monitor_changed (surface);
     }
 }
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]