_NET_CURRENT_DESKTOP question
Anatoly Asviyan
anatoly.asviyan at terayon.com
Thu Jan 30 10:39:46 EST 2003
hi all
i'm writing NETWM compliant taskbar and currently making it work with openbox.
almost all features worked out of the box (!!) besides switching the desktop.
openbox seems to ignore _NET_CURRENT_DESKTOP message sent by taskbar.
Here is quote from http://www.freedesktop.org/standards/wm-spec/1.3/html/x110.html
_NET_CURRENT_DESKTOP
_NET_CURRENT_DESKTOP desktop, CARDINAL/32
The index of the current desktop. This is always an integer between 0 and
NET_NUMBER_OF_DESKTOPS - 1. This MUST be set and updated by the Window Manager.
If a Pager wants to switch to another virtual desktop, it MUST send a
_NET_CURRENT_DESKTOP client message to the root window:
_NET_CURRENT_DESKTOP
message_type = _NET_CURRENT_DESKTOP
format = 32
data.l[0] = new_index
I've attached the code that does exactly that. It works OK with sawfish
and does not work with openbox-2.1 and openbox-2.2
P.S. if someone is intrested in trying a taskbar you can take it here:
http://fbpanel.sf.net/fbpanel-0.10.tgz
it requires GTK-1.2 and gdk_pixbuf
--
Regards, Anatoly
--
Regards, Anatoly
-------------- next part --------------
A non-text attachment was scrubbed...
Name: deskswitch.c
Type: application/octet-stream
Size: 2095 bytes
Desc: not available
URL: <http://icculus.org/pipermail/openbox/attachments/20030130/10009839/attachment.obj>
More information about the openbox
mailing list