lbonn / rofi

Rofi: A window switcher, run dialog and dmenu replacement - fork with wayland support
Other
1.03k stars 43 forks source link

[BUG] Rofi window mode not working on KWIN #110

Open deivid11 opened 11 months ago

deivid11 commented 11 months ago

Rofi version (rofi -v or git commit in case of build issue)

1.7.5+wayland2-155-gb29518f0

Configuration

https://gist.github.com/deivid11/7890a747c52e13f4d831860c5f6ddc8d

Theme

https://gist.github.com/deivid11/d23fb4aae6dedbe254804a8691a37247

Timing report

https://gist.github.com/deivid11/d41b6191a90dbff82f6bc8cade80a313

Launch command

rofi --show window

Step to reproduce

Execute rofi --show window

Expected behavior

Show a list with the current applications running.

Actual behavior

Showing an empty rofi window and the following message:

~ rofi -show window

(process:25405): WARNING : 15:42:33.644: Mode 'window' does not have a type set. Please update mode/plugin.

(process:25405): Modes.Window-WARNING **: 15:42:33.646: Unable to initialize Window mode: Wayland compositor does not support wlr-foreign-toplevel-management protocol

Additional information

Curiosly, If i run the command using sudo the window mode run correctly. Im using KDE Plasma 5.27.10 and KWIN compositor. Also I have tried on Hyperland and is working as expected.

Using wayland display server protocol

I've checked if the issue exists in the latest stable release

lbonn commented 11 months ago

@deivid11 yes, the error message says it all. KWIN does not implement this protocol but its own: https://wayland.app/protocols/kde-plasma-window-management

This will need a bit of work...

deivid11 commented 10 months ago

Thanks @lbonn ;) I've seen wayland can't access to windows as easy as xorg, matter of time to get new solutions. Long live to Wayland hehe.