Leleat / Tiling-Assistant

An extension which adds a Windows-like snap assist to GNOME. It also expands GNOME's 2 column tiling layout.
GNU General Public License v2.0
1.12k stars 64 forks source link

Tiling-Assistant doesn't handle display resolution changes #288

Open rungitringit opened 1 year ago

rungitringit commented 1 year ago

Describe the bug Hello, thanks so much for Tiling-Assistant. I can't live without it! I work with virtual desktops (Currently Ubuntu 22.04 with v36) but unfortunately have different sized monitors at home and work. When I open a virtual desktop after a change of display resolution and try to snap to a corner or use the keyboard shorcut Tiling-Assistant tries two different window sizes between attempts but rarely gets it right. I usually have to minimise all windows, snap one to 50% of the screen and then try to re-tile the others to quarters manually. After that Tiling-Assistant works as expected for the rest of the day, until I change monitors again.

Not sure if I'm expecting too much - please let me know if this is a feature request instead!

Steps To Reproduce

System Info:

Journalctl logs

Sep 13 08:08:48 U-COMPUTERNAME gnome-shell[10601]: Can't update stage views actor <unnamed>[<MetaWindowGroup>:0x5589cf77a340] is on because it needs an allocation.
Sep 13 08:08:48 U-COMPUTERNAME gnome-shell[10601]: Can't update stage views actor <unnamed>[<MetaWindowActorX11>:0x5589d16d4740] is on because it needs an allocation.
Sep 13 08:08:48 U-COMPUTERNAME gnome-shell[10601]: Can't update stage views actor <unnamed>[<MetaSurfaceActorX11>:0x5589d16d7150] is on because it needs an allocation.
Sep 13 08:08:49 U-COMPUTERNAME gnome-shell[10601]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a).
Sep 13 08:08:49 U-COMPUTERNAME gnome-shell[10601]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b).
Sep 13 08:08:49 U-COMPUTERNAME gnome-shell[10601]: Window manager warning: Overwriting existing binding of keysym 33 with keysym 33 (keycode c).
Sep 13 08:08:49 U-COMPUTERNAME gnome-shell[10601]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d).
Sep 13 08:08:49 U-COMPUTERNAME gnome-shell[10601]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e).
Sep 13 08:08:49 U-COMPUTERNAME gnome-shell[10601]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f).
Sep 13 08:08:49 U-COMPUTERNAME gnome-shell[10601]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).
Sep 13 08:08:49 U-COMPUTERNAME gnome-shell[10601]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11).
Sep 13 08:08:49 U-COMPUTERNAME gnome-shell[10601]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12).
Sep 13 08:21:12 U-COMPUTERNAME gnome-shell[10601]: Can't update stage views actor <unnamed>[<MetaWindowGroup>:0x5589cf77a340] is on because it needs an allocation.
Sep 13 08:21:12 U-COMPUTERNAME gnome-shell[10601]: Can't update stage views actor <unnamed>[<MetaWindowActorX11>:0x5589d16d4740] is on because it needs an allocation.
Sep 13 08:21:12 U-COMPUTERNAME gnome-shell[10601]: Can't update stage views actor <unnamed>[<MetaSurfaceActorX11>:0x5589d16d7150] is on because it needs an allocation.
Sep 13 08:21:13 U-COMPUTERNAME gnome-shell[10601]: Error in size change accounting.
Sep 13 08:21:13 U-COMPUTERNAME gnome-shell[10601]: Can't update stage views actor <unnamed>[<MetaWindowGroup>:0x5589cf77a340] is on because it needs an allocation.
Sep 13 08:21:13 U-COMPUTERNAME gnome-shell[10601]: Can't update stage views actor <unnamed>[<MetaWindowActorX11>:0x5589d16d4740] is on because it needs an allocation.
Sep 13 08:21:13 U-COMPUTERNAME gnome-shell[10601]: Can't update stage views actor <unnamed>[<MetaSurfaceActorX11>:0x5589d16d7150] is on because it needs an allocation.
Sep 13 08:21:15 U-COMPUTERNAME gnome-shell[10601]: Error in size change accounting.
Sep 13 08:21:21 U-COMPUTERNAME gnome-shell[10601]: Can't update stage views actor <unnamed>[<MetaWindowGroup>:0x5589cf77a340] is on because it needs an allocation.
Sep 13 08:21:21 U-COMPUTERNAME gnome-shell[10601]: Can't update stage views actor <unnamed>[<MetaWindowActorX11>:0x5589d16d4740] is on because it needs an allocation.
Sep 13 08:21:21 U-COMPUTERNAME gnome-shell[10601]: Can't update stage views actor <unnamed>[<MetaSurfaceActorX11>:0x5589d16d7150] is on because it needs an allocation.
Sep 13 08:21:22 U-COMPUTERNAME gnome-shell[10601]: Error in size change accounting.
Sep 13 08:21:22 U-COMPUTERNAME gnome-shell[10601]: Can't update stage views actor <unnamed>[<MetaWindowGroup>:0x5589cf77a340] is on because it needs an allocation.
Sep 13 08:21:22 U-COMPUTERNAME gnome-shell[10601]: Can't update stage views actor <unnamed>[<MetaWindowActorX11>:0x5589d16d4740] is on because it needs an allocation.
Sep 13 08:21:22 U-COMPUTERNAME gnome-shell[10601]: Can't update stage views actor <unnamed>[<MetaSurfaceActorX11>:0x5589d16d7150] is on because it needs an allocation.
Sep 13 08:21:22 U-COMPUTERNAME gnome-shell[10601]: Error in size change accounting.
Sep 13 08:21:23 U-COMPUTERNAME gnome-shell[10601]: Error in size change accounting.
Sep 13 08:21:23 U-COMPUTERNAME gnome-shell[10601]: Can't update stage views actor <unnamed>[<MetaWindowGroup>:0x5589cf77a340] is on because it needs an allocation.
Sep 13 08:21:23 U-COMPUTERNAME gnome-shell[10601]: Can't update stage views actor <unnamed>[<MetaWindowActorX11>:0x5589d16d4740] is on because it needs an allocation.
Sep 13 08:21:23 U-COMPUTERNAME gnome-shell[10601]: Can't update stage views actor <unnamed>[<MetaSurfaceActorX11>:0x5589d16d7150] is on because it needs an allocation.
Sep 13 08:21:24 U-COMPUTERNAME gnome-shell[10601]: Can't update stage views actor <unnamed>[<MetaWindowGroup>:0x5589cf77a340] is on because it needs an allocation.
Sep 13 08:21:24 U-COMPUTERNAME gnome-shell[10601]: Can't update stage views actor <unnamed>[<MetaWindowActorX11>:0x5589d16d4740] is on because it needs an allocation.
Sep 13 08:21:24 U-COMPUTERNAME gnome-shell[10601]: Can't update stage views actor <unnamed>[<MetaSurfaceActorX11>:0x5589d16d7150] is on because it needs an allocation.
Sep 13 08:21:24 U-COMPUTERNAME gnome-shell[10601]: Error in size change accounting.
Sep 13 08:21:24 U-COMPUTERNAME gnome-shell[10601]: Can't update stage views actor <unnamed>[<MetaWindowGroup>:0x5589cf77a340] is on because it needs an allocation.
Sep 13 08:21:24 U-COMPUTERNAME gnome-shell[10601]: Can't update stage views actor <unnamed>[<MetaWindowActorX11>:0x5589d16d4740] is on because it needs an allocation.
Sep 13 08:21:24 U-COMPUTERNAME gnome-shell[10601]: Can't update stage views actor <unnamed>[<MetaSurfaceActorX11>:0x5589d16d7150] is on because it needs an allocation.
Sep 13 08:21:25 U-COMPUTERNAME gnome-shell[10601]: Can't update stage views actor <unnamed>[<MetaWindowGroup>:0x5589cf77a340] is on because it needs an allocation.
Sep 13 08:21:25 U-COMPUTERNAME gnome-shell[10601]: Can't update stage views actor <unnamed>[<MetaWindowActorX11>:0x5589d16d4740] is on because it needs an allocation.
Sep 13 08:21:25 U-COMPUTERNAME gnome-shell[10601]: Can't update stage views actor <unnamed>[<MetaSurfaceActorX11>:0x5589d16d7150] is on because it needs an allocation.
Sep 13 08:21:25 U-COMPUTERNAME gnome-shell[10601]: Error in size change accounting.
Sep 13 08:21:26 U-COMPUTERNAME gnome-shell[10601]: Can't update stage views actor <unnamed>[<MetaWindowGroup>:0x5589cf77a340] is on because it needs an allocation.
Sep 13 08:21:26 U-COMPUTERNAME gnome-shell[10601]: Can't update stage views actor <unnamed>[<MetaWindowActorX11>:0x5589d16d4740] is on because it needs an allocation.
Sep 13 08:21:26 U-COMPUTERNAME gnome-shell[10601]: Can't update stage views actor <unnamed>[<MetaSurfaceActorX11>:0x5589d16d7150] is on because it needs an allocation.
Sep 13 08:21:26 U-COMPUTERNAME gnome-shell[10601]: Error in size change accounting.
Sep 13 08:21:27 U-COMPUTERNAME gnome-shell[10601]: Can't update stage views actor <unnamed>[<MetaWindowGroup>:0x5589cf77a340] is on because it needs an allocation.
Sep 13 08:21:27 U-COMPUTERNAME gnome-shell[10601]: Can't update stage views actor <unnamed>[<MetaWindowActorX11>:0x5589d16d4740] is on because it needs an allocation.
Sep 13 08:21:27 U-COMPUTERNAME gnome-shell[10601]: Can't update stage views actor <unnamed>[<MetaSurfaceActorX11>:0x5589d16d7150] is on because it needs an allocation.
Sep 13 08:21:28 U-COMPUTERNAME gnome-shell[10601]: Error in size change accounting.
Sep 13 08:21:32 U-COMPUTERNAME gnome-shell[10601]: Can't update stage views actor <unnamed>[<MetaWindowGroup>:0x5589cf77a340] is on because it needs an allocation.
Sep 13 08:21:32 U-COMPUTERNAME gnome-shell[10601]: Can't update stage views actor <unnamed>[<MetaWindowActorX11>:0x5589d16d4740] is on because it needs an allocation.
Sep 13 08:21:32 U-COMPUTERNAME gnome-shell[10601]: Can't update stage views actor <unnamed>[<MetaSurfaceActorX11>:0x5589d16d7150] is on because it needs an allocation.
Sep 13 08:21:34 U-COMPUTERNAME gnome-shell[10601]: Error in size change accounting.
rungitringit commented 1 year ago

I just read https://github.com/Leleat/Tiling-Assistant/issues/61 and it is likely the problem I have may relate to: Moving tiled windows across monitors doesn't work, if the size of the tiled window is way too big for the new monitor. A workaround is to untile the window before moving it to a new monitor. if so this may not be fixable.

Leleat commented 1 year ago

Currently Tiling Assistant doesn't handle resolution changes at all but I want to implement it (some day when I got the time).

(The limitiation you mentioned probably doesn't affect this since that is about manually moving windows to new monitors.)