Skip to content

wayland: calculate union of geometry of all monitors for toplevel bounds

Colin Kinloch requested to merge ColinKinloch/gtk:wayland_display_geometry into main

I use wayland and have two monitors one 4k, the other 1080p.

Currently when I resize a gtk4 application the window shrinks to fit 1080p even when on my main monitor.

With this merge request the toplevel bounds are set to the union of the geometries of all monitors in the display rather than the first monitor in the list of monitors returned by gdk_display_get_monitors.

Related !4787 (closed)

Edited by Colin Kinloch

Merge request reports