Hyprland: wlogout "logout" function hangs if activated by mouse click. Hotkey ("e") works fine.

Hyprland Version

System/Version info
<Paste the output of the command here>

Bug or Regression?

Bug

Description

Just got the latest hyprland-git today and did not have this behavior prior to it.

If I run wlogout and try to logout with a mouse click, it will hang until i hit a key. If I use the hotkey for logout (“e”), it works just fine. If I just type the command called by wlogout in a terminal (“hyprctl dispatch exit 0”), it also works just fine. So, it seems to be an issue with the mouse click.

Lock, reboot, and shutdown all work just fine (I don’t use suspend or hibernate on this machine).

How to reproduce

Call wlogout and attempt to logout using a mouse click.

Crash reports, logs, images, videos

No response

About this issue

  • Original URL
  • State: closed
  • Created 5 months ago
  • Reactions: 1
  • Comments: 18 (13 by maintainers)

Most upvoted comments

…and I’ve solved it. monitorFrame is what I wanted. Here’s the patch to 0.36:

0001-Move-exit-trigger-to-monitor-frame.patch.txt

Fixing this involves not processing the exit flag inside of the keyboard event handler. But where to put it? I don’t know the motivation behind the patch that moved it there, so I’m afraid that anywhere I do move it might just be reintroducing some issue this was meant to fix. Halp