lightsonplus icon indicating copy to clipboard operation
lightsonplus copied to clipboard

Fullscreen detection broken for Firefox

Open WildPenquin opened this issue 7 years ago • 6 comments

Hi,

No fullscreen app I've tried (Youtube HTML5 player or Netflix) triggers the fullscreen detection currently. I'm investigating this issue, just to let you know.

This is on Arch/Plasma.

WildPenquin avatar Jan 28 '18 14:01 WildPenquin

Ok, I believe it breaks here:

if [ ${#activ_win_id} -eq 9 ]; And later: if [ ${#top_win_id} -eq 9 ]; then

So the script assumes window IDs of length 9. But I assure my Firefox window IDs are of length 8. Why is this assumption / check made ?

Changing the check to -le makes the script work for me, but of course it should be first rationalized why this check is made in the first place?

WildPenquin avatar Jan 28 '18 15:01 WildPenquin

actually it is a fork. I think maybe an attribute was dropped so the check fails. Will look into that

devkral avatar Jan 29 '18 00:01 devkral

I think it is a strange check if it is really an id. Hope my commit fixes this bug

devkral avatar Jan 29 '18 00:01 devkral

anyway it just works for X. I see dark for the future. And would more recommend tools like Caffeine.

devkral avatar Jan 30 '18 09:01 devkral

Note: Class for Firefox requires lower case since Firefox 68. To support both older and newer versions, I think it would be a good idea to use *[Ff]irefox*).

aufkrawall avatar Aug 05 '19 16:08 aufkrawall

@aufkrawall just created an pull request #25 . I tested it myself and yours solution ([Ff]irefox) works as expected.

ostaszewskik avatar Aug 08 '19 00:08 ostaszewskik