lxde / lxterminal

VTE terminal emulator written in GTK
GNU General Public License v2.0
160 stars 56 forks source link

Adding/deleting tabs and window size #117

Open tmsg-gh opened 1 year ago

tmsg-gh commented 1 year ago

I am an Xfce4 user but have swapped their terminal for lxterminal, mostly because theirs can't load a monospace font (Dina) I want to use; lxterminal is fine WRT that font.

But I have a (small) problem with tabs. When I create a 2nd tab, the lxterminal window shrinks a little (apparently this: https://github.com/lxde/lxterminal/issues/24 ). When I remove the 2nd tab the window shrinks again. Yep, rinse and repeat and the window gets smaller and smaller. It's not a biggie as I rarely close tabs but it's certainly not working as intended, or so I assume.

FinboySlick commented 1 year ago

That's a tough one to fix. I think we had it mostly working properly on GTK2 at some point but I haven't had time to look into it since. The gist of the problem is that GTK3 does not give us the information needed to compute the proper size of the window until after it is done drawing the window at the wrong size.

uli42 commented 5 months ago

I have a similiar problem when using the key-combos for zoom. The window gets a bit smaller everytime...

tmsg-gh commented 4 months ago

I've found a half-baked but acceptable workaround for that buglet. I am using devilspie2 for many things and it occured to me that I could use its focus feature. I have simply defined a resize-to-correct-window-size action that's triggered whenever lxterminal gets the focus. That's good enough for me though an eventual resolution would be appreciated.