Returns the device ID as seen by XInput2.
If gdk_disable_multidevice() has been called, this function will respectively return 2/3 for the core pointer and keyboard, (matching the IDs for the Virtual Core Pointer and Keyboard in XInput 2), but calling this function on any slave devices (i.e. those managed via XInput 1.x), will return 0.
a #GdkDevice
Returns the #GdkDevice that wraps the given device ID.
a #GdkDeviceManager
a device ID, as understood by the XInput2 protocol
Frees the data returned from gdk_x11_display_string_to_compound_text().
The pointer stored in ctext
from a call to gdk_x11_display_string_to_compound_text().
Frees the array of strings created by gdk_x11_display_text_property_to_text_list().
the value stored in the list
parameter by a call to gdk_x11_display_text_property_to_text_list().
Gets the default GTK+ screen number.
Routine to get the current X server time stamp.
a #GdkWindow, used for communication with the server. The window must have GDK_PROPERTY_CHANGE_MASK in its events mask or a hang will result.
Returns the X atom for a #GdkDisplay 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.
a #GdkDisplay
a string
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 %NULL,
even if xatom
is invalid.
an X atom for GDK’s default display
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.
the #GdkDisplay where xatom
is defined
an X atom
Call gdk_x11_display_grab() on the default display. To ungrab the server again, use gdk_x11_ungrab_server().
gdk_x11_grab_server()/gdk_x11_ungrab_server() calls can be nested.
Find the #GdkDisplay corresponding to xdisplay,
if any exists.
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).
If an event type is registered, events of this type will go through global and window-specific filters (see gdk_window_add_filter()). Unregistered events will only go through global filters. GDK may register the events of some X extensions on its own.
This function should only be needed in unusual circumstances, e.g. when filtering XInput extension events on the root window.
a #GdkDisplay
first event type code to register
number of event type codes to register
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.
See the X Session Management Library documentation for more information on session management and the Inter-Client Communication Conventions Manual
the client id assigned by the session manager when the connection was opened, or %NULL to remove the property.
Ungrab the default display after it has been grabbed with gdk_x11_grab_server().
Convert from an X atom for a #GdkDisplay to the corresponding #GdkAtom.
A #GdkDisplay
an X atom
Converts from a #GdkAtom to the X atom for the default GDK display with the same string value.