macos: add GDK_NOTE when surface changes monitor

This commit is contained in:
Christian Hergert
2022-02-28 12:13:29 -08:00
parent 92261b5022
commit f9faecd5b7

View File

@@ -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);