Page MenuHomePhabricator

Fullscreen exit on notification
Open, Incoming QueuePublic

Description

I see this from... well, not sure, but it's a lot of time, I've never reported it just because it's a minor issue.
I often see videos in rage at fullscreen size (not maximized, real fullscreen) and many times it happens that on a desktop notification arrival from whatever app (thunderbird, telegram, network-manager, ...) rage exits from fullscreen mode, so I have to re-fullscreen it via the F key.
Now I've just rebuilt all from git and a new related issue has come up, that's why I decided to open this task. Rage is unfullscreened even on virtual desktop change: let's say I'm seeing my video on one desktop, then I switch to another desktop to read messages or to browse the web, then go back to the desktop where rage is and see that it immediately exit from fullscreen.

maxerba created this task.Nov 7 2018, 12:49 AM

I often see videos in rage at fullscreen size (not maximized, real fullscreen) and many times it happens that on a desktop notification arrival from whatever app (thunderbird, telegram, network-manager, ...) rage exits from fullscreen mode, so I have to re-fullscreen it via the F key.

thunderbird doesn't use a standard desktop notification (notify), but actually draws a dialog window because it looks more fancy. this however means, that focus gets drawn away.

you should be able to overcome this by setting (advanced mode): Settings -> Windows -> Window Focus -> New Window Focus to Only dialogs with focused parent. however then you will probably not see this notification. it's delicate and i don't know if this is really fixable, but you can try some of the other focus settings, maybe one will help.

test cases should be either one of these:

sleep 2 && shellementary --info --text="test"
sleep 2 && zenity --info --text="test"

Why a fullscreen window should revert to unfullscreen when another window grabs focus? I do want that all new windows has focus, not only dialogs, and also want that dialogs can be on top even of the fullscreen window. This is the correct behaviour, but some times it works this way and other times it doesn't work anymore, I didn't realize in what particular situation (if there is any).
Also that doesn't explain why now it goes unfullscreen even on desktop switch. That shouldn't involve focuse change, even if on the desktop where rage is there is also a terminology window (normal stacking ad size).

I tried setting "only dialogs with focused owner" and indeed with that the problem on notifications does not occur anymore. It still happens on desktop change, though, and anyway I would still like to have "all new windows focused" :-)