From 29d424ef91ad5007b588395abedc0d3865ef99bb Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Mon, 28 Feb 2022 12:13:29 -0800 Subject: [PATCH] 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 e92ba905fc..356dea70e8 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" @@ -1090,7 +1091,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); -- 2.30.2