X11.SendClientMessageToRootWindow (gb.desktop.x11)
Static Sub SendClientMessageToRootWindow ( Message As String [ , Data As Array, Window As Integer ] )
Send a client message to the root window.
-
Message is the atom describing the message type.
-
Data is an array representing the message arguments (up to five).
-
Window is the optional window argument of the message.
This method is used internally by
gb.desktop.
Examples
' Change the current desktop
X11.SendClientMessageToRootWindow("_NET_CURRENT_DESKTOP", [NewDesktopId])
' Change the current active window
X11.SendClientMessageToRootWindow(Atom["_NET_ACTIVE_WINDOW"], [1, X11.Time, WindowId, 0, 0], WindowId)