-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
Hide scratchpad when switching window to full-screen #340
Comments
About the first point:
This seems to identify scratchpad windows. Now my approach would be to put a check like this into |
I've come up with the following code: function toggle_fullscreen(arg)
local parent = arg:parent()
local r = WGroup.set_fullscreen(arg, 'toggle')
if mod_sp and mod_sp.is_scratchpad(parent) then
mod_sp.set_shown_on(arg:manager(), 'toggle')
end
return r
end
defbindings("WGroupCW", {
bdoc("Toggle client window group full-screen mode"),
kpress_wait(META.."F", "toggle_fullscreen(_)"),
})
Opinions? Edit: It does however not solve the second half of my issue, namely that returning a scratchpad window from fullscreen returns it to the right scratchpad but in front of the wrong workspace. |
@wilhelmy This solves the case when you use specific key binding to toggle full-screen mode of a window but it does not solve the cases when the application toggles to full-screen itself such as |
Thanks, I guess fixing it correctly is a bit more involved. The main problem I haven't solved is that I want to avoid adding a dependency to |
Do you think it's still a net improvement to merge it? |
I wouldn't want to merge this snippet into the default config in this state, because everyone would need to edit their config in order to use it and the real fix would then make all those config changes obsolete again. I think it can live in this issue until we have a complete fix, and people who care about it can use it locally? |
Hello @wilhelmy, |
@mjf that's the second part of this issue for which I unfortunately haven't had the time to diagnose it yet. |
@wilhelmy Hi after some time passed. I guess you had no time to look into this more further, right? |
Thanks for reminding me. @raboof's efforts seem to have switched to volare (based on sway) and I didn't find much time or motivation for FOSS development recently outside of work. Gotta take some time off and take another look, I guess. Or wait until I'm unemployed with too much time on my hands :) |
TBH I'm currently neglecting both equally ;) - but indeed using Volare as my daily driver for now |
When switching a window from the scratchpad to fullscreen-mode, the scratchpad stays in front of the freshly full-screened window. It should be hidden.
Furthermore when switching fullscreened scratchpad window back to its normal size, the scratchpad gets focused correctly but is put in front of the wrong desktop, rather than the last active one.
The text was updated successfully, but these errors were encountered: