GdkX11.X11Screen.prototype.get_current_desktop

function get_current_desktop(): Number(guint32) {
    // Gjs wrapper for gdk_x11_screen_get_current_desktop()
}
  

Returns the current workspace for screen when running under a window manager that supports multiple workspaces, as described in the [Extended Window Manager Hints](http://www.freedesktop.org/Standards/wm-spec) specification.

Since 3.10

Returns

the current workspace, or 0 if workspaces are not supported