You are not logged in.

#1 Yesterday 02:48:17

bricknumber5
Member
Registered: 2024-04-12
Posts: 10

[SOLVED] Firefox won't try to fullscreen unless WM advertises support

I'm posting about a problem I've already solved for myself because it took a bit of effort to figure out and may have ramifications for other people with similar setups, I've pre-marked this thread as [SOLVED] because of this, please let me know if there's another way that's supposed to be handled I didn't see anything in the rules, etc., about that.

When I updated my system today I discovered that Firefox would no longer go into fullscreen. Now, I've been using XMonad which (by default) doesn't do anything when fullscreen is requested. Adding the XMonad

ewmhFullscreen

function to my config and recompiling XMonad allowed Firefox to go into fullscreen but now it would attempt to actually go into fullscreen. (That is it would try to take up the entire screen as opposed to the previous behavior in which it would update the UI as if going into fullscreen (e.g. the tab bar would disappear a video would take up the whole window, etc) without the window actually changing size or position)

After some tinkering and browsing documentation I discovered I could fix this by instructing XMonad to declare fullscreen support without actually doing anything using the function

setEwmhFullscreenHooks idHook idHook . ewmhFullscreen

in my config instead of just

ewmhFullscreen

which simply enables fullscreen and then sets the on fullscreen and on unfullscreen hooks to the do nothing hook.

I don't have the time or energy to debug exactly what the trigger is here but my best guess (hence the post title) is that Firefox no longer tries to fullscreen when the WM/DE does not advertise support. If this is the case this issue may impact users of other tiling window managers with "windowed fullscreen" behavior.

Offline

#2 Yesterday 09:31:16

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,863

Re: [SOLVED] Firefox won't try to fullscreen unless WM advertises support

I'm posting about a problem I've already solved for myself because

Don't - this kind of stuff belongs into the wiki. Posting it here is a waste of time where it will also get lost.
But it's effectively https://wiki.archlinux.org/title/Xmonad … fullscreen ?

Offline

#3 Yesterday 16:15:15

bricknumber5
Member
Registered: 2024-04-12
Posts: 10

Re: [SOLVED] Firefox won't try to fullscreen unless WM advertises support

seth wrote:

Don't - this kind of stuff belongs into the wiki. Posting it here is a waste of time where it will also get lost.

Good to know, I wasn't sure but that makes a lot of sense I'll take a look at the wiki's rules and see if updating the wiki would be appropriate when I have time.

Not quite, with just a line like

        main = xmonad $ ewmhFullscreen . ewmh $ def

An application (including chrome) will actually go fullscreen (or try to anyway, If you have struts it breaks) whereas the previous behavior with e.g. Firefox was for the window to activate fullscreen mode without changing size (thereby uncluttering UI), a behavior a number of people like, including me.

Something like:

        main = xmonad $ setEwmhFullscreenHooks idHook idHook . ewmhFullscreen . ewmh $ def

restores the behavior I want, which I can't find explicitly documented anywhere.

Anyway I haven't edited the wiki (or any wiki) before so I'll move this thread to the Forum and Wiki Discussion board (if that is within my power) or start a new one there otherwise because I'd love some help with how best to do that.

Offline

Board footer

Powered by FluxBB