

Das funktioniert in der Konsole auch:

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

hans@linux:~$ wmctrl -m
Name: Metacity
Class: N/A
PID: N/A
Window manager's "showing the desktop" mode: OFF

hans@linux:~$ wmctrl -l
0x00e00003 -1 linux Oberes Kanten-Panel, ausgedehnt
0x00e00014 -1 linux Unteres Kanten-Panel, ausgedehnt
0x01600004 -1 linux Schreibtisch
0x02a0008a  0 linux Gambas Documentation - Desktop.RootWindow (gb.desktop) - Mozilla Firefox
0x01604b34  0 linux 19.7_DeskSystem
0x02c00010  0 linux Desktop 0.0.5 - Gambas 3
0x03000004  1 linux hans@linux: ~
0x0320000e  0 linux Komponente Desktop - Klasse Desktop - Methode SendMail(..)

Ausgabe der Namen der virtuellen Desktops. Der aktuelle Desktop wird durch ein * gekennzeichnet:
hans@linux:~$ wmctrl -d
0  - DG: 1680x1050  VP: N/A  WA: 0,24 1680x1002  WEB
1  * DG: 1680x1050  VP: 0,0  WA: 0,24 1680x1002  EXPLORER
2  - DG: 1680x1050  VP: N/A  WA: 0,24 1680x1002  GAMBAS
3  - DG: 1680x1050  VP: N/A  WA: 0,24 1680x1002  TERMINAL
hans@linux:~$

hans@linux:~$ xprop -root | grep "_NET_CLIENT_LIST(WINDOW)"
_NET_CLIENT_LIST(WINDOW): window id # 0xe00003, 0xe00014, 0x1600004, 0x2a0008a, 0x1604b34, 0x2c00010, 0x3000004, 0x320002e
hans@linux:~$ 

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

