tilp_and_gfm icon indicating copy to clipboard operation
tilp_and_gfm copied to clipboard

Window size is wrong in new tabs

Open LogicalJoe opened this issue 4 years ago • 5 comments

When it opens a new tab (not window), the window sizing is wrong (it cuts off the bottom) as it maintains the original size. It is not corrected until the window is resized, or is pulled out into a new window. Screen Shot 2020-03-05 at 15 33 46 Screenshot should say enough. This also applies to the "TiLP2" tab as the window is resized but it doesn't acknowledge it. The setting that affects this (MacOS) is System Preferences>Dock>Prefer tabs when opening documents>Always.

LogicalJoe avatar Mar 05 '20 20:03 LogicalJoe

Yeah, looks like GTK is all confused about sizes when the OS makes windows be tabs. Not sure this is really fixable on our side?

adriweb avatar Mar 05 '20 23:03 adriweb

That sure looks ugly, but I don't know either whether TILP can do anything about it. It could make sense to test the GTK+3 build ?

debrouxl avatar Mar 08 '20 21:03 debrouxl

Was able to repro on my master build. Tried it with GTK+3, it forces a new window despite the system tab setting set to Always, so the problem can't even happen. Oh well :)

adriweb avatar Mar 12 '20 21:03 adriweb

Thanks for testing :) Well, then we can't do much about it with GTK+2.

debrouxl avatar Mar 13 '20 07:03 debrouxl

Well there's probably a way, like calling the resize handler manually or some silly trick like that.

adriweb avatar Mar 13 '20 10:03 adriweb