-
Notifications
You must be signed in to change notification settings - Fork 15
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 app shortcuts in fullscreen #70
base: master
Are you sure you want to change the base?
Conversation
Sorry for the long delay, I'm unfamiliar with this code so I had to do some research. From what I can tell, the current behavior is intentional. That is:
See: Lines 244 to 245 in 770520c
There's actually no need to release the keyboard in char-mode as it shouldn't be grabbed anyways. On the other hand, I can also see the use in keeping the keyboard grabbed when in full-screen mode. I'd be open to adding an option for this (ideally a buffer-local one so it can be set per-window via the |
I think we should reconsider whether EXWM should respect user bindings in fullscreen mode. For example, I remember using Firefox full-screen when I had that tiny laptop (it would hide its menubar). In that situation I would like, say, my substitution keys to continue working. On the other hand, if I launch a game, I would probably like it to have full control of input. We have I would argue that we should change the default behaviour of fullscreen to respect the input mode of the EXWM-mode buffer, and let users use the usual keys, or as well as I don't usually use fullscreen, so I'm not sure whether I'm missing anything. |
Hm. Yeah, that seems reasonable. I wonder if there's some way to detect "game mode". Maybe when an application tries to grab the keyboard? Maybe we don't need to do anything because the application will grab the keyboard? |
Could be, I don't know. I looked briefly at SDL; I didn't see anything that could differentiate their fullscreen windows from other's (looked at src/video & src/video/x11/). They do select a lot of events in The change here should be reduced to simply not force We might be opening a can of worms here. |
Hm. Any reason to delete other windows? |
I think that the point is to adapt the window configuration to the visual appearance: one fullscreen X window ~ one Emacs window. This way commands like In case there's a misunderstanding: no X windows are destroyed; the Emacs window configuration is changed to contain a single window (that of the |
Pushed a commit implementing the proposal, please have a look. @mgi, please test the change and report back. (I had to push to your master branch to update this pull request. I hope it's OK.) |
Hm. I think a better approach would be to exit full-screen mode if the window configuration changes. |
Sounds reasonable, but it might lead to false positives. For example, a multi-line message printed to the echo area will cause a window configuration change; I don't think we'd want that to cause fullscreen exit. On the other hand if I cause the resize through a command I'd want it. Maybe we can find a way to ignore resizes caused by the echo area growing but, are there other such cases? |
Maybe we should (temporarily) redirect/suppress echo area messages (e.g., with |
medranocalvo ***@***.***> writes:
Pushed a commit implementing the proposal, please have a look.
@mgi, please test the change and report back. (I had to push to your
master branch to update this pull request. I hope it's OK.)
Sorry for this late reply.
I have just tested your patch lightly and it works as expected. I think
it is a good idea to remove any "cleverness" from fullscreen switching
and let the user decide.
Tell me if you need me to test anything else. Thanks.
--
Manuel Giraud
|
Hi,
Don't you think that this patch (the one from medranocalvo) could go in
now? I'm using it for months without any issues.
--
Manuel Giraud
|
Hi,
Here is a patch that I have for some times now into my
init.el
. It is based on a patch I found here: ch11ng/exwm#786.What does it fix?
When using an application that you can toggle to fullscreen (for instance
mpv
withf
shortcut), you are not able to use any of the application shortcuts after that (even untoggling fullscreen). This patch fixes this.Thanks.