Xmir: xrandr outputs information is lost after root window resize
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xorg-server (Ubuntu) |
Fix Released
|
Medium
|
Daniel van Vugt | ||
Bug Description
[Impact]
Users trying to use xrandr on Xmir will get bogus info for the attached displays after resizing the root window.
[Test Case]
1. Start up an X application through Xmir.
2. Type xrandr and observe output.
3. Resize the window.
4. Type xrandr again.
Valid output should be given.
[Regression Potential]
None observed.
-------
Original Description:
Xmir: xrandr outputs information is lost after root window resize (non-rootless mode)
$ xrandr
Screen 0: minimum 320 x 200, current 1920 x 1200, maximum 32767 x 32767
VGA-0 disconnected
DP-0 disconnected
HDMI-0 disconnected
DP-1 disconnected
HDMI-1 disconnected
DP-2 connected 1920x1200+0+0 520mm x 320mm
1920x1200@60.0Hz 59.88*+
DP-3 disconnected
# Now I resize the root window in the Mir shell...
$ xrandr
Screen 0: minimum 320 x 200, current 1631 x 1098, maximum 32767 x 32767
Hmm, seems to be a feature actually...
if (!xmir_ screen- >windowed) {
xmir_screen- >windowed = 1;