-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tilda does not resize properly after fullscreen mode #306
Comments
Could you check if the patch in the branch wip/fullscreen (e.g. commit 84fe390) fixes the issue? |
I just tried the branch I did the following steps:
Now Tilda is still nearly full screen. But after I hide Tilda again F1 and then show it F1 it is at its old size but not at the right position. If I press F1 two times more it is back at its configured position (centered vertically and horizontally) So there is still a problem here. |
I just tested this on last 1.4.1-1 and still happens :( Does the patch still need testing? |
@voidplayer First, if the patch in Regarding the issue reported by @webmatze. I can confirm that there is still a problem, however I cannot see that there is any code in Tilda that would be causing this behavior. My best guess is that either GTK+ or the Window Manager has a bug that causes this behavior. There is already code in place when returning from fullscreen mode to restore the original window size: https://github.com/lanoxx/tilda/blob/master/src/tilda_window.c#L177 For some reason that seems to have no effect in certain situations. |
Are you able to reproduce it? I mean, thats the most important thing to find the real cause :) I just tried the patch and it doesnt fix it for me :( After f11->hidding->showing, it never gets to the original size unless I do two things:
Not sure if this is what you are able to reproduce or different. I dont know much about gtk, but tell me if I can be of any more help :) |
Btw, I just want to add a workaround in case somebody else find it useful :) I have an 'extra' tilda config with a different key for full screen where tilda takes up all the screen I try to spawn the processes that will eventually need more room on this tilda instead of the regular ones. Ex. Programming consoles, diffs, big debugging outputs Not perfect or as confy as using your regular tildas because you have to think ahead but it works pretty well |
Yes I can reproduce the problem, but I do not know how to fix it. To me it seems like a problem in GTK+. |
Thanks for your time Whats the exact api call that is not behaving as expected? I will open a bug in gtk |
@voidplayer I you look at the code for returning from fullscreen you see the following functions get called:
gtk_window_move(GTK_WINDOW(tw->window), config_getint ("x_pos"), config_getint ("y_pos")); The first calls GTK to disable fullscreen mode, the next three calls ensure that the window restores its proper size and position. In an ideal scenario I would assume that the window size and position is cached somewhere (e.g. in the X11 window object, GTK, etc.) and that this information is used to restore the size after returning from fullscreen. The fact that returning from fullscreen works most of the time shows that something is being cached somewhere. It seems that hiding tilda and restoring it, while it is in fullscreen mode somehow clears or changes this cached information and thus prevents the window from returning to its original size. For example, even if I remove the last three lines and toggle fullscreen mode the window size and position is correctly restored after returning from fullscreen (as long as I do not hide the window in between). In summary, to find the source of this bug I believe that While writing this a took a look if metacity prints anything while this bug occurs and I noticed the following output:
|
I think I can propose a workaround for this bug. If we temporarily unfullscreen the tilda window before hiding it, then it seems that the bug does not occur. |
Please reopen if this does not fix the problem. |
Well, this workaround indeed fixed the issue for me Thank you so much! |
Is there any way to code this 'workaround' into the application? (or fix the bug of course ...) |
This workaround is already part of tilda, but is currently not available in any of tilda's released versions. You can try to compile tilda from the master branch or wait until a new tilda release is available. |
Wow, kudos for the quick reply. Thanks, looking forward to the next update. Loving Tilda so far! |
I have the same issue on Ubuntu Mate 18.04 fresh install. The only workaround i have found is to right click and select "Toggle Fullscreen" two times. This is very strange. It seems like F11 and "Toggle Fullscreen" options are not the same things. I hope someone resolve that issue. |
@makemegit Thanks! I have been having this issue for like a year! (Ubuntu 18.04.1) |
It seems I've always this problem under Ubuntu 18.04.2. The @makemegit's workaround indeed works but it's like a no-solution for me, I would like to not use my mouse to solve something made for the keyboard :( I've seen the @lanoxx reply, is a new version fixing this is going out anyday ? Thx a lot, loving Tilda over any other terms for now, that's the only pb I've with :( |
Theres no new version with this fix afaik I have compiled the latest version with this fix and is the one i use :) Thats the only way to get it until a new release is done at the discretion of lanoxx |
I have theses settings for windows size
This is actually 100% / 50%.
When enter in fullscreen mode F11, hide Tilda F1 and then I unhide Tilda F1 my configuration change.
Windows size is now 1920px / 529px.
I had to change my configuration mannyally after theses steps.
My OS: Linux Mint 18.2 Sonya / Tilda 1.3.1.
The text was updated successfully, but these errors were encountered: