pop-os / cosmic-comp

Compositor for the COSMIC desktop environment
GNU General Public License v3.0
418 stars 51 forks source link

bug: xwayland apps not clickable. #469

Closed edfloreshz closed 1 month ago

edfloreshz commented 2 months ago

It looks like xwayland applications, such as Electron apps, currently have clickability issues under COSMIC, which makes them unusable.

Restarting them with Wayland support provides a temporary escape hatch for apps that support this:

--enable-features=UseOzonePlatform --enable-features=WaylandWindowDecorations --ozone-platform-hint=auto --unity-launch

But this should be fixed as many people rely on Electron apps for their daily workflow and are not wiling to modify .desktop files.

Related issues #397

ryanabx commented 2 months ago

Adding to this issue, I can't repro reliably, but given a long enough coding session, it's guaranteed to happen to visual studio code. In this state, keyboard input tends to work, but pointer input does not. The only way to fix it is to have a completely new toplevel (either by restarting the app, or in cases of apps with a system tray, closing the window and opening a new one from the system tray)

edfloreshz commented 2 months ago

In my case this has become a permanent issue where no xwayland app is clickable unless explicitly launched with the options stated above, so, if there's a need for testing or logs please let me know if I can be of assistance.

ryanabx commented 2 months ago

@edfloreshz can you use keyboard input if the app is focused?

edfloreshz commented 2 months ago

Nope

WatchMkr commented 1 month ago

@edfloreshz I'm going to go ahead and close this one and track on https://github.com/pop-os/cosmic-comp/issues/397