summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hergert <christian@hergert.me>2022-02-28 12:13:29 -0800
committerChristian Hergert <christian@hergert.me>2022-02-28 12:13:29 -0800
commitf9faecd5b7a62937f82e4bca515e6c71bc9c2fa4 (patch)
treec1c549a9ff3a1c6f9632ed99b0c23dc2800857f0
parent92261b50225d3fb7a56648e275b881992e171d60 (diff)
downloadgtk+-f9faecd5b7a62937f82e4bca515e6c71bc9c2fa4.tar.gz
macos: add GDK_NOTE when surface changes monitor
-rw-r--r--gdk/macos/gdkmacossurface.c6
1 files changed, 5 insertions, 1 deletions
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);