Skip to content

layout: Update size of uiGroup upon monitors-changed event

Weifeng Liu requested to merge phreer/gnome-shell:uigroup-size into main

Previously the size of uiGroup was not updated when the configuration of monitors changed, leading to incorrect rendering of elements that have constraints depending on uiGroup. Thus properly update the size of uiGroup upon monitors-changed event.

This change fixes the rendering issue as the following figure shows:

Screenshot_from_2024-05-23_20-45-26

Steps to reproduce this issue:

  1. Start a QEMU virtual machine.
  2. Log in gnome-shell with a relatively small window size of the QEMU window (display resolution of the VM).
  3. Maximize the QEMU window, triggering a hot plug event with increased display resolution.
  4. Toggle Overview and you will find result similar to the figure above.

Merge request reports