wayland/display: Remove duplicate update_scale() call
authorRobert Mader <robert.mader@posteo.de>
Fri, 2 Sep 2022 22:48:17 +0000 (00:48 +0200)
committerRobert Mader <robert.mader@posteo.de>
Fri, 2 Sep 2022 22:53:02 +0000 (00:53 +0200)
`apply_monitor_change()` already calls `update_scale()`.
Note that this only affects old compositor versions (see
`should_update_monitor()`) so it's just a minor cleanup.

gdk/wayland/gdkdisplay-wayland.c

index 142c9717302605515c3aec34e4889ba1bc2bacbe..89982d76a5f4b860cd2b7774fd7c2b4b3c75a789 100644 (file)
@@ -2449,9 +2449,6 @@ output_handle_geometry (void             *data,
 
   if (should_update_monitor (monitor) || !monitor_has_xdg_output (monitor))
     apply_monitor_change (monitor);
-
-  if (should_update_monitor (monitor))
-    update_scale (GDK_MONITOR (monitor)->display);
 }
 
 static void