swaywm / swayidle

Idle management daemon for Wayland
MIT License
550 stars 50 forks source link

Swayidle kicks in despite video playing #104

Closed cloudlena closed 2 years ago

cloudlena commented 3 years ago

Currently, for me, swayidle seems to lock the screen even if a video is playing in my browser or if I'm in a video call and just don't touch any input devices.

Is there a way to make it respect these cases and not trigger as long as a video is being played in the foreground?

Here's my Sway config: https://github.com/mastertinner/dotfiles/blob/main/sway/.config/sway/config#L26

As a browser, I'm using Brave: brave --enable-features=UseOzonePlatform --ozone-platform=wayland

GreyXor commented 2 years ago

Your config is good and you don't have to do anything more. Everything is automatically handled by idle-inhibit. If it doesn't work, it's Brave, Chromium or Electron fault. Maybe your Brave is based on a old Chromium or Electron version. idk

The various graphical toolkits (GTK, Qt, etc..) have long had the support of the idle-inhibit) and sometimes it is up to the developers to define when it should be enabled or not.

You can try with Firefox for example, it manages the idle-inhibit since Firefox 74 (January 6, 2020).

cloudlena commented 2 years ago

Thanks, @GreyXor! I'm using the latest Brave/Chromium. But I guess that means the bug is with Chromium.