terminator
terminator copied to clipboard
On toggling visibility, window reverts from multi-monitor span
Steps to reproduce
- Resize window to span across multiple monitors
- Hide terminator using the
hide_window
keybinding - Show terminator again using the same keybinding
Expected results
Window should be the same size and in the same position as before. (This occurs as expected if the window was originally wholly contained in a single monitor in step 1.)
Observed results
Window is moved and/or resized to fit within a single monitor.
Additional information
- I'm using a "normal" multihead setup in KDE, i.e. just using the default DE settings.
- Up-to-date Arch Linux
- Terminator 1.92-2 (from the official repositories)
I don't really have the setup to reproduce this one. It sounds like it may be a window manager problem. Can you reproduce this under GNOME?
Thanks @mattrose. I installed GNOME (I feel dirty), and I can reproduce this issue there too.
FWIW I also installed a bunch of other terminals with a "toggle-visibility" setting, and I can confirm that Tilda correctly spans multiple monitors after a toggle-visibility cycle.
I couldn't properly test the others I installed (which also reinforced how good Terminator is!):
- Guake: the size is set manually in the preferences window. Resizing the window on-the-fly does not persist after a hide/reveal cycle. However, the preferences don't allow for a width greater than a single monitor.
- Yakuake: I can't even start this program without it crashing
- Qterminal: I can't assign a key to toggle visibility. The field won't register.
Thank you so much. I didn't want you to feel dirty, but it will make trying to reproduce this so much easier.
I'm now able to reproduce this and, wow, looking at the solution for this it's ... not trivial. I know why this is happening, but I'm not quite clear on how to fix it yet. I'll leave this bug open, but in the meantime I recommend the workaround of "Don't do that" :(
Bummer. Thanks for looking at this anyway @mattrose. I haven't tried yet, but a hacky solution might be to use KDE's window rules in the meantime.
Yeah, it's weird. I'm just using the GTK.Window calls. Oddly enough, .iconify() works as expected, but .hide() doesn't seem to remember the placement properly, and needs to have it's position reset.
Ah right. So it seems like a GTK bug then?
Bug, or ... Feature? I'll do some digging on the gtk bug tracker.
Can't find any of that exact bug on the various gtk bug trackers, but I found a bunch of similar. We actually hack around this a little bit in terminator, but I'll take a look at the source and see if I can find anything, and probably end up opening a GTK bug.
Save the window size/position before hiding and restore it after unhiding?
@stinnnnn Could be a workaround.
It might be relevant, but I do occasionally have the window move around unexpected. That is, I usually have it aligned to the top of the screen, covering ~80% of the screen. It's almost always fine, but sometimes (1/100 occasions) when I hide then show the window, it aligns to the bottom of the screen instead.