Gambas Documentation
Documents

X11.CurrentDesktop (gb.desktop.x11)

Static Property CurrentDesktop As Integer

Get or set the currently displayed desktop (Workspace)

Currently only multiple viewport workspace types can be used.

Window managers like Compiz use a single large screen called a virtualroot so currently only show 1 desktop and this property is always zero.