[gtk] gdkdisplay-wayland: only remove one monitor
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] gdkdisplay-wayland: only remove one monitor
- Date: Wed, 20 May 2020 13:52:06 +0000 (UTC)
commit ae711d830110ac194370956308c74c91d8b69ef9
Author: Timm Bäder <mail baedert org>
Date: Wed May 20 15:50:17 2020 +0200
gdkdisplay-wayland: only remove one monitor
Ids here are unique, so break out of the loop once we found the monitor
with the given ID.
gdk/wayland/gdkdisplay-wayland.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gdk/wayland/gdkdisplay-wayland.c b/gdk/wayland/gdkdisplay-wayland.c
index f323a732f6..1b65c46bde 100644
--- a/gdk/wayland/gdkdisplay-wayland.c
+++ b/gdk/wayland/gdkdisplay-wayland.c
@@ -2530,6 +2530,8 @@ gdk_wayland_display_remove_output (GdkWaylandDisplay *self,
g_list_store_remove (self->monitors, i);
gdk_monitor_invalidate (GDK_MONITOR (monitor));
update_scale (GDK_DISPLAY (self));
+ g_object_unref (monitor);
+ break;
}
g_object_unref (monitor);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]