Bug 483742 - wayland, "wmctrl -lx" does not list "QEMU" window
Summary: wayland, "wmctrl -lx" does not list "QEMU" window
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-16 10:44 UTC by Philippe ROUBACH
Modified: 2024-03-18 10:44 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe ROUBACH 2024-03-16 10:44:16 UTC
SUMMARY



STEPS TO REPRODUCE
1. launch a QEMU VM
2. run "wmctrl -lx "
3. 

OBSERVED RESULT

"wmctrl -lx" does not list any "QEMU" window

EXPECTED RESULT

"wmctrl -lx" does list the "QEMU" window of the VM

SOFTWARE/OS VERSIONS

Operating System: openSUSE Tumbleweed 20240314
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION

No problem with X11.
Comment 1 Philippe ROUBACH 2024-03-16 12:11:24 UTC
With X11, I get a window with a title bar with name "QEMU".
With Wayland, I get a window without any title bar.

Hypothesis : QEMU VM window is a GTK one. Wayland gets some problem to display a GTK window in KDE environment.
Comment 2 Philippe ROUBACH 2024-03-16 12:26:43 UTC
How to force the window to get a title bar ?
Comment 3 Nicolas Fella 2024-03-16 12:35:37 UTC
wmctrl is an X11-specific tool, it does not work on Wayland.

It can list XWayland windows, but not Wayland-native windows
Comment 4 Philippe ROUBACH 2024-03-16 12:56:27 UTC
Thanks

But it's too techie for me.

I use Chrome web apps (G contacts, G Calendar, Facebook). The window of these apps are well listed by "wmctrl -lx".

I can conclude that : 
- Chrome window is a XWayland window and not a Wayland native window.
- QEMU window is a Wayland native window.

Right ?

At logging, the script, to launch the vm, needs to detect the QEMU window according to minimize it.

Is there a way to workaround the qemu/wmctrl problem ?
Comment 5 Vlad Zahorodnii 2024-03-18 10:24:40 UTC
> Is there a way to workaround the qemu/wmctrl problem ?

Write a tool that uses https://wayland.app/protocols/kde-plasma-window-management
Comment 6 Philippe ROUBACH 2024-03-18 10:44:26 UTC
Thanks

I found "wlrctl"

https://git.sr.ht/~brocellous/wlrctl

I will try it.

Today, X11 stays my preferred one. I am not in a hurry to switch to Wayland.