[gtk/wip/chergert/for-main] macos: add GDK_NOTE when surface changes monitor



commit f9faecd5b7a62937f82e4bca515e6c71bc9c2fa4
Author: Christian Hergert <christian hergert me>
Date:   Mon Feb 28 12:13:29 2022 -0800

    macos: add GDK_NOTE when surface changes monitor

 gdk/macos/gdkmacossurface.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/gdk/macos/gdkmacossurface.c b/gdk/macos/gdkmacossurface.c
index af14681890..4cd9994800 100644
--- a/gdk/macos/gdkmacossurface.c
+++ b/gdk/macos/gdkmacossurface.c
@@ -27,6 +27,7 @@
 
 #include "gdkmacossurface-private.h"
 
+#include "gdkdebug.h"
 #include "gdkdeviceprivate.h"
 #include "gdkdisplay.h"
 #include "gdkeventsprivate.h"
@@ -1116,7 +1117,10 @@ _gdk_macos_surface_monitor_changed (GdkMacosSurface *self)
 
   if (g_set_object (&self->best_monitor, best))
     {
-      /* TODO: change frame clock to new monitor */
+      GDK_NOTE (MISC,
+                g_message ("Surface \"%s\" moved to monitor \"%s\"",
+                           self->title ? self->title : "unknown",
+                           gdk_monitor_get_connector (best)));
     }
 
   _gdk_macos_surface_configure (self);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]