Functions

Converts from a gdk::Atom to the X atom for the default GDK display with the same string value.

Converts from a gdk::Atom to the X atom for a gdk::Display with the same string value. The special value GDK_NONE is converted to None.

Returns the device ID as seen by XInput2.

Returns the gdk::Device that wraps the given device ID.

Gets the root window of the default screen (see [x11_get_default_screen()][crate::x11_get_default_screen()]).

Gets the default GTK+ screen number.

Routine to get the current X server time stamp.

Returns the X atom for GDK’s default display corresponding to atom_name. This function caches the result, so if called repeatedly it is much faster than XInternAtom(), which is a round trip to the server each time.

Returns the X atom for a gdk::Display corresponding to atom_name. This function caches the result, so if called repeatedly it is much faster than XInternAtom(), which is a round trip to the server each time.

Returns the name of an X atom for GDK’s default display. This function is meant mainly for debugging, so for convenience, unlike XAtomName() and gdk::Atom::name(), the result doesn’t need to be freed. Also, this function will never return None, even if xatom is invalid.

Returns the name of an X atom for its display. This function is meant mainly for debugging, so for convenience, unlike XAtomName() and gdk::Atom::name(), the result doesn’t need to be freed.

Call X11Display::grab() on the default display. To ungrab the server again, use [x11_ungrab_server()][crate::x11_ungrab_server()].

Registers interest in receiving extension events with type codes between event_base and event_base + n_events - 1. The registered events must have the window field in the same place as core X events (this is not the case for e.g. XKB extension events).

Sets the SM_CLIENT_ID property on the application’s leader window so that the window manager can save the application’s state using the X11R6 ICCCM session management protocol.

Ungrab the default display after it has been grabbed with [x11_grab_server()][crate::x11_grab_server()].

Convert from an X atom for the default display to the corresponding gdk::Atom.

Convert from an X atom for a gdk::Display to the corresponding gdk::Atom.