gnunn1 / tilix

A tiling terminal emulator for Linux using GTK+ 3
https://gnunn1.github.io/tilix-web
Mozilla Public License 2.0
5.43k stars 294 forks source link

Add feature for fixed window position under quake mode. #2054

Open franzhuang opened 3 years ago

franzhuang commented 3 years ago

Thanks for adding "Window position" feature in quake mode, however, I would like have my terminal window at other position other than up or down 、left or right or center. I use alt+F7(under gnome) to change the position of a window, but next time I call drop down window , it appears at default position. Is there config file for changing the x, y position for drop down window in quake mode ? Or just have the drop down window appear at the same place as latest position I left.

Anton-Latukha commented 3 years ago

Maybe just as a troll, maybe would give some ideas. In KWin it was solved with window rules. I basically told the KWin how to treat & compose the program window, essentially solving the window position, height of it by other means, Tilix still thinks it has 90% of height max. But somehow nothing was bothering Tilix to be made 100% 1080p through compositor. I went that way since there was no other option given to me, my request for 100% height was rejected here because of GNOME reasons respected and KWin not.

Managing Tilix and other more exotic applications flawlessly for years now with KWin rules. Applications, even such as pseudo-GUI GTK-based Emacs buffer windows and others, seem to not care much if compositor composites their windows.

Also wmctrl is a tool for it, it manages windows through long-forgotten but still respected & so cross-portable EWMH/NetWM compatible X Window Manager API. One can make a whole multidesktop startup procedure with it.

Positioning of the window seems to be not an application concern, it is a local OS/window compositor concern, to save position or not. There used to be the "restore/preserve the previous state/window position) is OSes, which meant OS needed to store the state before shutdown/etc.

Otherwise, the applications need to store the coordinates & size of its windows somewhere. Frequently they do it in their config files essentially changing the config, issuing a new config version every time the application is launched, making the backuping of their configs an impossible task, so can not and so do not backup the applications that store their window positions in config files.

franzhuang commented 3 years ago

Thank you for your effort. As for the 90% of height max problem, I can make it 100% in dconf editor.