YaLTeR / niri

A scrollable-tiling Wayland compositor.
https://matrix.to/#/#niri:matrix.org
GNU General Public License v3.0
4.14k stars 123 forks source link

KDE Connect presentation remote pointer is broken #770

Closed LunarEclipse363 closed 3 weeks ago

LunarEclipse363 commented 3 weeks ago

So basically, the expected behavior is that you get an overlay over your screen that has the funny shiny circle you control by moving your phone around while holding a button.

On niri this instead creates a new black fullscreen window, by tweaking window rules I only got it to be transparent and sit besides other windows.

https://github.com/user-attachments/assets/763226d5-add7-48b8-a13a-3ec6bb70a769

I'm guessing this is a clash of "kdeconnect assumes it can overlay a normal window above everything else" versus niri's "windows can never overlap eachother" paradigm.

System Information

YaLTeR commented 3 weeks ago

Well, KDE connect cannot assume this on Wayland, not only on niri but on other compositors too. In fact, on Wayland the compositor is expected to render a fullscreen window on black background with no other windows visible. And a maximized window cannot render above the GNOME Shell top bar for example, or above top-layer layer-shell panels on other compositors.

Instead, KDE connect could use a fullscreen layer-shell surface on the overlay layer which would do very close to what it wants.