Hyprland
Hyprland copied to clipboard
Ulauncher doesn't quite work as intended in wayland
Please consult the issue guidelines at
https://github.com/vaxerski/Hyprland/blob/main/docs/ISSUE_GUIDELINES.md
BEFORE submitting.
Log: https://mclo.gs/gNZVUjY
This might be a quirk with floating windows? Cause any floating windows seems to unable to resize the window by itself(i.e. fctix5 rime selection window)
My guess is that it is based on chromium / electron. These apps are currently broken under ozone wayland. Try forcing it to run under XWayland. (#216)
Floating windows can resize themselves, but some don't want to properly, sometimes.
Yeah, forcing it to run under GDK_BACKEND=x11
will fix it. I'll change this title to doesn't work under wayland instead
Although sadly for fcitx5, I have not found anyway to force it to run under x11. And I'm quite sure that a input method is not based on chromiuma
I use ibus and it sometimes has a wrong size too, didn't figure out yet why.
Ulauncher is GTK, and I have the same issue with the launcher Albert which uses Qt. I'm not sure the issue is their fault, because they both work perfectly fine on Sway. But it is true that Electron apps are also weird on Hyprland. I've noticed they work just fine until they are animated (for instance when resizing them), then there is some lag and possibly a crash.
found the root of the issue, protocol violations in the xdg standard. Will fix.
actually, no, never mind, I think it's down to how ulauncher thinks it can resize itself (spoiler: it cannot)
An easy fix is to force it to run under XWayland. Weird though it works on Sway. Maybe there is some toplevel shit I am missing.
tried some other things, so far fruitless, will see tomorrow (or day after, tmr im really busy)
For now, force it to XWayland.
Update on this issue.
Currently forcing it to XWayland does make it resize, but it when I type, and don't select anything, do ulauncher-toggle
, it will just... move away from the center.
Typing stuff
After typing stuff
I've tried doing center windowrule, no help
Sounds similar to https://github.com/lbonn/rofi/issues/49
@KyleUltimate some things changed lately, could you test if the problem is still the same?
Yes, it's still present
with GDK_BACKEND=x11 ulauncher --hide-window -v
I'm unable to see Ulauncher with ulauncher-toggle
I think xwayland is running:
~
❯ Xwayland
(EE)
Fatal server error:
(EE) Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.
(EE)
I'm not even sure I can force Ulauncher run on XWayland
I'm experiencing the same issue, moreover forcing to X11 does cause the ulauncher window to close when typing a letter (it's somewhat random, sometime you can type 2 letters). As the previous poster said, it is working fine under sway.
@vaxerski I think this might be in general with all apps that request to resize themselves. Namely this happens to emacs mini frames, when they pop up. I have a regex to set it to floating. But if it attempts to resize it fails.
It's a wayland app, and works fine on gnome wayland for reference.
similar behaviour found in https://github.com/otsaloma/catapult
a rust port of ulauncher also shares it https://github.com/diced/dlauncher
all three are gtk-based app launchers
https://github.com/diced/dlauncher/tree/trunk/data/ui check the gtk code if you want
(
I'm guessing something is wrong with this)
Just noting that I also experience this issue with 1Password's quick access window as of today with the latest version of Hyprland from the flake.
Edit: attaching recording
https://github.com/hyprwm/Hyprland/assets/668505/4e53efa0-5043-456b-8507-f634803e5f32
Still seeing this issue with ulauncher
Actually, try the git version of ulauncher They are using layershell so it should be fixed
fixed in 5f4659afef5856c509d53957e62b7f6c38d39f41
Confirmed this fixed the issue for me with 1Password on NixOS. Thank you!