-
-
Notifications
You must be signed in to change notification settings - Fork 733
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hyprland with on-click causes weird behavior #1850
Comments
The following PR fixes the issue for on-click events #1784 However, it still happens with system tray icons with the same behavior |
So after some further testing, the above PR is only a partial fix. It will prevent the application from launching another instance after clicking anywhere on the waybar, but the waybar won't register any input until you click on it a second time. So after clicking a button with "on-click" and launching rofi or some other programs, it will then require you to click anywhere on the waybar or else it won't accept any input such as scrolling or other clicks |
Im seeing the same behavior with an on-click script that is running a swaymsg command. @SeanMcnabb what are you trying to run? |
I'm having the exact same issue @SeanMcnabb! |
I'm facing this problem aswell. Clicking on any module with |
Yes, if you right rick each time before left clicking, it works, should we ping alexays? |
I have the same weird behavior as @rubyowo on hyprland-git and waybar-hyprland-git on Arch |
|
I have the same behavior. Tried on both waybar-hyprland-git and waybar-hyprland on Arch |
@Narice Just confirmed. This issue is hyprland only. |
@rubyowo thanks! that's really useful, I'll try some stuff to see if the issue is coming from waybar or Hyprland. |
I am also using |
I looked into the issue. It looks like |
I tested with EWW's onclick function (not running waybar) on Hyprland and I get the same issue, where once I've clicked anything on the EWW bar the same action happens for every subsequent click. Also tested both EWW and Waybar on Sway and both work fine, and do not show this issue, thus seems to be an issue with Hyperland. Running hyprland-git and waybar-hyprland-git FYI. |
Weird I don't have the issue, |
That of course doesn't cause the problem. Try setting "on-click" to launch a gui program instead. |
Experiencing this issue aswell on hyprland-git and waybar-hyprland-git. The onclick actions launch rofi menus but then it keeps launching that rofi menu when trying to do anything that involves clicking on the waybar |
I am also using hyprland-git and waybar-hyprland-git and have this problem as well. |
Hey, please refer this issue hyprwm/Hyprland#1348. The developers seems to have no idea how to solve the issue. |
The launch delay is just HUGE. Any recommended settings to launch rofi/tofi quickly using gamemoderun? |
For me the delay is only like .25 seconds or something, it's pretty low. I'm not sure what the difference would be. |
does gamemoderun still work for you? it worked previously for me but doesnt now |
In case some one here is not informed. The current work around appears to be adding some delay to the launching of the application. See this thread Simply adding:
before calling your application should fix the issue. |
Thanks, that helped me |
Same here. Fedora 38 with solopasha/hyprland Copr. Adding "gamemoderun" or some delay works around the issue |
@osalas88 thanks a lot, helped me. |
Waiting for Alexays/Waybar#1850 to be fixed. Workaround is ok.
issue was upstream: Alexays/Waybar#1850
Hi this bug still persists as of Feb 2024, and no 0.1 delay doesn't work for me. clicking on waybar after opening whatever dialog works |
Is there any more news on this? It's now May 2024. I am having the same issue. I'm on sway not hyprland. I switched to waybar after just using the sways built in bar for ever. I made some custom launchers and if I click on custom launcher and then click anywhere on waybar the same click action keeps happening. The only way to get it to stop is to then right click anywhere on waybar. I can get it to stop if I add sleep 0.3 before the command. Not an ideal solution. |
I have a custom module that launches rofi when clicked. In sway it works normally but causes some weird problems in Hyprland. After clicking on the module, it will show rofi normally, but if you click anywhere on waybar after that, it will act as if you clicked the module again and either show rofi again, or attempt to. It will stop if you right click the waybar before clicking it again. It doesn't happen with every application. For instance, I was able to get this to happen when launching rofi or kwrite, but launching wofi or alacritty, the behavior is as expected.
My workaround for now is to launch rofi with gamemoderun which prevents this from happening.
The text was updated successfully, but these errors were encountered: