Hyprland icon indicating copy to clipboard operation
Hyprland copied to clipboard

Ulauncher doesn't quite work as intended in wayland

Open JustSimplyKyle opened this issue 2 years ago • 17 comments

Please consult the issue guidelines at https://github.com/vaxerski/Hyprland/blob/main/docs/ISSUE_GUIDELINES.md BEFORE submitting. Log: https://mclo.gs/gNZVUjY image

JustSimplyKyle avatar Jun 27 '22 11:06 JustSimplyKyle

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)

JustSimplyKyle avatar Jun 27 '22 11:06 JustSimplyKyle

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.

vaxerski avatar Jun 27 '22 11:06 vaxerski

Yeah, forcing it to run under GDK_BACKEND=x11 will fix it. I'll change this title to doesn't work under wayland instead

JustSimplyKyle avatar Jun 27 '22 11:06 JustSimplyKyle

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

JustSimplyKyle avatar Jun 27 '22 12:06 JustSimplyKyle

I use ibus and it sometimes has a wrong size too, didn't figure out yet why.

vaxerski avatar Jun 27 '22 12:06 vaxerski

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.

ozls avatar Jul 02 '22 14:07 ozls

found the root of the issue, protocol violations in the xdg standard. Will fix.

vaxerski avatar Jul 02 '22 19:07 vaxerski

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.

vaxerski avatar Jul 02 '22 19:07 vaxerski

tried some other things, so far fruitless, will see tomorrow (or day after, tmr im really busy)

For now, force it to XWayland.

vaxerski avatar Jul 02 '22 20:07 vaxerski

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 image After typing stuff image I've tried doing center windowrule, no help

JustSimplyKyle avatar Jul 29 '22 15:07 JustSimplyKyle

Sounds similar to https://github.com/lbonn/rofi/issues/49

fufexan avatar Jul 29 '22 15:07 fufexan

@KyleUltimate some things changed lately, could you test if the problem is still the same?

Dickby avatar Oct 06 '22 10:10 Dickby

Yes, it's still present

JustSimplyKyle avatar Oct 06 '22 10:10 JustSimplyKyle

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

shackra avatar Nov 16 '22 04:11 shackra

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.

cycomanic avatar Jan 24 '23 02:01 cycomanic

@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.

DimitrisMilonopoulos avatar Jan 28 '23 08:01 DimitrisMilonopoulos

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 ( image I'm guessing something is wrong with this)

JustSimplyKyle avatar Feb 04 '23 12:02 JustSimplyKyle

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

jnsgruk avatar May 16 '23 15:05 jnsgruk

Still seeing this issue with ulauncher

GianniBYoung avatar May 20 '23 00:05 GianniBYoung

Actually, try the git version of ulauncher They are using layershell so it should be fixed

JustSimplyKyle avatar May 20 '23 11:05 JustSimplyKyle

fixed in 5f4659afef5856c509d53957e62b7f6c38d39f41

vaxerski avatar May 26 '23 12:05 vaxerski

Confirmed this fixed the issue for me with 1Password on NixOS. Thank you!

jnsgruk avatar May 26 '23 13:05 jnsgruk