:right-sidebar: True X11Screen =================================================================== .. currentmodule:: gi.repository.GdkX11 .. class:: X11Screen(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` :Constructors: :: X11Screen(**properties) Methods ------- .. rst-class:: interim-class .. class:: X11Screen :no-index: .. method:: get_current_desktop() -> int Returns the current workspace for ``screen`` when running under a window manager that supports multiple workspaces, as described in the `Extended Window Manager Hints `__ specification. .. method:: get_monitor_output(monitor_num: int) -> int Gets the XID of the specified output/monitor. If the X server does not support version 1.2 of the RANDR extension, 0 is returned. :param monitor_num: number of the monitor, between 0 and gdk_screen_get_n_monitors (screen) .. method:: get_number_of_desktops() -> int 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 `__ specification. .. method:: get_screen_number() -> int Returns the index of a ``GdkX11Screen``\. .. method:: get_window_manager_name() -> str Returns the name of the window manager for ``screen``\. .. method:: get_xscreen() -> ~gi.repository.xlib.Screen Returns the screen of a ``GdkX11Screen``\. .. method:: supports_net_wm_hint(property_name: str) -> bool This function is specific to the X11 backend of GDK, and indicates whether the window manager supports a certain hint from the `Extended Window Manager Hints `__ specification. When using this function, keep in mind that the window manager can change over time; so you shouldn’t use this function in a way that impacts persistent application state. A common bug is that your application can start up before the window manager does when the user logs in, and before the window manager starts :func:`~gi.repository.GdkX11.X11Screen.supports_net_wm_hint` will return :const:`False` for every property. You can monitor the window_manager_changed signal on ``GdkX11Screen`` to detect a window manager change. :param property_name: name of the WM property Signals ------- .. rst-class:: interim-class .. class:: X11Screen.signals :no-index: .. method:: window_manager_changed() -> None The type of the None singleton.