GdkX11.X11Window.prototype.get_desktop

function get_desktop(): Number(guint32) {
    // Gjs wrapper for gdk_x11_window_get_desktop()
}
  

Gets the number of the workspace window is on.

Since 3.10

Returns

the current workspace of window