Skip to content

Commit 4bdbb2c

Browse files
committed
nemo-desktop-manager.c: Skip listening for scale changes when
using gtk-layer-shell. This is better handled in gtk/gtk-layer-shell, which negotiate to the correct monitor, and in wayland, each monitor may have a different scale factor.
1 parent c33fd68 commit 4bdbb2c

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/nemo-desktop-manager.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,13 @@ global_scale_changed (NemoDesktopManager *manager)
300300

301301
DEBUG ("Monitor scaling changed");
302302

303+
#ifdef HAVE_GTK_LAYER_SHELL
304+
if (gtk_layer_is_supported ()) {
305+
DEBUG ("Ignoring scale change - compositor handles sizing with layer-shell");
306+
return;
307+
}
308+
#endif
309+
303310
queue_update_layout (manager);
304311
}
305312

0 commit comments

Comments
 (0)