marco / mate-session-restore misplaces windows

Bug #1845822 reported by arQon on 2019-09-29
This bug affects 1 person
Affects Status Importance Assigned to Milestone
marco (Ubuntu)
Victor Kareh

Bug Description

In the 19.10 Beta:

session restore is moving all windows placed at the bottom of the screen up by ~8 pixels, and moving all windows placed at the right-hand edge of the screen left by ?about? the same amount. 19.04 didn't have this problem.

A window that was "docked" in the top right corner appeared on the left-hand edge of the screen after restarting. I added that one just to test how broken things were, so I don't know what 19.04 would have done.

Leaving that extra (terminal) window in (and moving it back to the RHS) and running mate-session-save before restarting, it came back on the RHS this time, but inset by 8px or so, i.e. suffering from the same bug as the (caja) window in the bottom right corner.

I've grabbed the session file, which I expect will make it clear whether the bug is in the saving or the loading phase of things. My guess is it's simply being given bad information about the screen size, but either way this should help in it down:

<marco_session id="1075926a43f24e4a8156972156333320900000017420063">
  <window id="10b7bfab3d63fe69a8156665080747555500000010060046" class="Caja" name="desktop_window" title="x-caja-desktop" role="" type="desktop" stacking="0">
    <workspace index="0"/>
    <geometry x="0" y="0" width="1920" height="1200" gravity="NorthWestGravity"/>
  <window id="10b7bfab3d63fe69a8156665080747555500000010060046" class="Caja" name="caja" title="gtk-3.0" role="" type="normal" stacking="1">
    <workspace index="0"/>
    <geometry x="791" y="470" width="1111" height="662" gravity="NorthWestGravity"/>
  <window id="10ba099975741208a2156971173831900000000015080051" class="Mate-terminal" name="mate-terminal" title="~/.themes/Lucid" role="mate-terminal-window-3439--635772611-1569711738" type="normal" stacking="2">
    <workspace index="0"/>
    <geometry x="-10" y="457" width="132" height="38" gravity="NorthWestGravity"/>
  <window id="10ba099975741208a2156971173831900000000015080051" class="Mate-terminal" name="mate-terminal" title="~" role="mate-terminal-window-2059--929891136-1569727427" type="normal" stacking="3">
    <workspace index="0"/>
    <geometry x="829" y="-10" width="132" height="38" gravity="NorthWestGravity"/>

arQon (pf.arqon) wrote :

Launchpad made a bad guess on the package, and ignored my change to it on the submission. :)

affects: mate-screensaver (Ubuntu) → marco (Ubuntu)
arQon (pf.arqon) wrote :

Some more info, without which that session file isn't much use:

The display is 1920x1200. Ignore the bottom edge, since that has a panel on it.

The caja window is @ 791 x, + 1111 w = 1,902. The x="-10" for a window on the LHS means the borders are that wide (even though they clearly aren't, so there's some other adjustments going on for whatever reason) so that's 1912, and the 8px guess was dead on.

I'll upload a screenshot as well.

arQon (pf.arqon) wrote :
arQon (pf.arqon) wrote :

I got tired of putting them back in the right place, and after the next reboot I noticed that they actually KEEP moving up (and left, when possible) each time. Funky. :)

Victor Kareh (vkareh) on 2019-10-13
Changed in marco (Ubuntu):
assignee: nobody → Victor Kareh (vkareh)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers