You are not logged in.

#1 2023-05-11 13:58:15

egils
Member
Registered: 2018-04-01
Posts: 10

[Solved] Workrave does not block keyboard input in Gnome Shell

I can easily circumvent the pause window by tapping alt-tab even though the program is in "normal" mode where it should block input.

I would like it to block input for the duration of the break.

$ pacman -Qi gnome-shell
Name            : gnome-shell
Version         : 1:44.1-3
$ pacman -Qi workrave
Name            : workrave
Version         : 1.10.50-1

If I start choosing "Gnome on Xorg"  in GDM it works. So I guess this is related to Wayland?

Last edited by egils (2023-05-11 17:38:43)

Offline

#2 2023-05-11 14:46:00

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: [Solved] Workrave does not block keyboard input in Gnome Shell

On Wayland no window can just assume control of the input unless it's negotiated with the compositor. This is a completely intentional security measure of the wayland protocol. From snooping around there might be a GNOME extension for workrave that might be able to use relevant mutter hooks (...assuming it survived the 44 ABI break), though I'd doubt that mutter exposes an exclusive lock of the input via it's public API.

Last edited by V1del (2023-05-11 14:47:36)

Offline

#3 2023-05-11 17:38:12

egils
Member
Registered: 2018-04-01
Posts: 10

Re: [Solved] Workrave does not block keyboard input in Gnome Shell

Thanks, I'll mark this as solved as it I have no problem using Xorg to get the lock on input.

Offline

Board footer

Powered by FluxBB