GdkX11.X11Screen.prototype.get_number_of_desktops

function get_number_of_desktops(): Number(guint32) {
    // Gjs wrapper for gdk_x11_screen_get_number_of_desktops()
}
  

Returns the number of workspaces 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 number of workspaces, or 0 if workspaces are not supported