-
-
Notifications
You must be signed in to change notification settings - Fork 413
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
Fix toolbar toggling when entering/leaving fullscreen mode #3410
Conversation
I'm not sure I agree with the suggested behaviour. I see that the message and status bars disappear when exiting fullscreen, which seems like a bug. Invoking |
@aadcg I think, I don't understand something. This patch makes toolbar behavior consistent, no matter how you enter/leave fullscreen mode. Currently it's inconsistent: entering/leaving fullscreen via X11/Wayland does not affect toolbar at all. Also this patch fixes the bug you mention.
This patch does exactly that. |
@shamazmazum, I had a very brief look at your PR yesterday since I'm currently unavailable. I'll get back to it after the 12th of June. My point was that entering fullscreen should not hide the message and status buffers. Anyway, I'll study the current behavior and your changes in depth as to ensure that I don't miss any detail. Thanks for your interest in the project! |
You have this is (define-command toggle-fullscreen (&key (window (current-window))
skip-renderer-resize)
"Fullscreen WINDOW, or the current window, when omitted.
When `skip-renderer-resize' is non-nil, don't ask the renderer to fullscreen the window."
(let ((fullscreen (fullscreen-p window)))
(unless skip-renderer-resize
(if fullscreen
(ffi-window-unfullscreen window)
(ffi-window-fullscreen window)))
(toggle-status-buffer :show-p (not fullscreen))
(toggle-message-buffer :show-p (not fullscreen)))) There is a code for toggling, it just works incorrectly. But OK, i won't bother you now :) |
@shamazmazum I see your point now. You're saying that commit 36d15f9 got the logic wrong, right? My point is that commit 746f2fe is a rather odd UI decision (сомнительно точно, и наверно не ОК). In my view, hiding the status and message buffers are orthogonal to fullscreen events. Note that we have the command If @shamazmazum and @jmercouris agree, I'd suggest changing the default behavior. |
Yes. In general, I can agree with you and toggling fullscreen may just as well do what it has to do with fullscreen and leave the toolbar be. I can only suggest that a rationale for hiding the toolbar is to enable some kind of reading mode where you have only your content and nothing else. Personally I never use anything like that, I just accidentally pressed |
I agree, but let's leave this idea for the future.
Indeed. Let's go with my suggestion, i.e. agree that going fullscreen has nothing to do with hiding the status and message buffers. We can proceed as if @jmercouris has agreed with the change. |
Fixed by #3441. |
This PR fixes toolbar toggling when entering/leaving fullscreen, as the title says. This is what it looks like before the patch:
Leaving fullscreen mode:
Entering fullscreen mode:
When you press f11 (
toggle-fullscreen
) your toolbar does not disappear in the fullscreen mode and disappears when you leave it. When you toggle fullscreen by external means (e.g. pressing Mod+f in sway), nothing happens with the toolbar.This patch assures that toolbar disappears in the fullscreen mode and appears in "the normal mode" in following scenarios:
toggle-fullscreen
is invoked