### Class

# GdkX11 X11Display

since: 4.0

#### Description

    final class GdkX11.X11Display : Gdk.Display
    {
      /* No available fields */
    }

No description available.

Available since: 4.0

#### Ancestors

- GdkDisplay
- GObject

#### Functions

###### gdk_x11_display_open

Tries to open a new display to the X server given by `display_name`. If opening the display fails, `NULL` is returned.

since: 4.0

###### gdk_x11_display_set_program_class

Sets the program class.

since: 4.0

#### Instance methods

###### gdk_x11_display_broadcast_startup_message

Sends a startup notification message of type `message_type` to `display`.

since: 4.0

###### gdk_x11_display_error_trap_pop

Pops the error trap pushed by gdk_x11_display_error_trap_push(). Will XSync() if necessary and will always block until the error is known to have occurred or not occurred, so the error code can be returned.

since: 4.0

###### gdk_x11_display_error_trap_pop_ignored

Pops the error trap pushed by gdk_x11_display_error_trap_push(). Does not block to see if an error occurred; merely records the range of requests to ignore errors for, and ignores those errors if they arrive asynchronously.

since: 4.0

###### gdk_x11_display_error_trap_push

Begins a range of X requests on `display` for which X error events will be ignored. Unignored errors (when no trap is pushed) will abort the application. Use `gdk_x11_display_error_trap_pop()` or gdk_x11_display_error_trap_pop_ignored()to lift a trap pushed with this function.

since: 4.0

###### gdk_x11_display_get_default_group

Returns the default group leader surface for all toplevel surfaces on `display`. This surface is implicitly created by GDK. See gdk_x11_surface_set_group().

since: 4.0

###### gdk_x11_display_get_egl_display

Retrieves the EGL display connection object for the given GDK display.

since: 4.4

###### gdk_x11_display_get_egl_version

Retrieves the version of the EGL implementation.

since: 4.4

###### gdk_x11_display_get_glx_version

Retrieves the version of the GLX implementation.

since: 4.0

###### gdk_x11_display_get_primary_monitor

Gets the primary monitor for the display.

since: 4.0

###### gdk_x11_display_get_screen

Retrieves the `GdkX11Screen` of the `display`.

since: 4.0

###### gdk_x11_display_get_startup_notification_id

Gets the startup notification ID for a display.

deprecated: 4.10 since: 4.0

###### gdk_x11_display_get_user_time

Returns the timestamp of the last user interaction on `display`. The timestamp is taken from events caused by user interaction such as key presses or pointer movements. See gdk_x11_surface_set_user_time().

since: 4.0

###### gdk_x11_display_get_xcursor

Returns the X cursor belonging to a `GdkCursor`, potentially creating the cursor.

since: 4.0

###### gdk_x11_display_get_xdisplay

Returns the X display of a `GdkDisplay`.

since: 4.0

###### gdk_x11_display_get_xrootwindow

Returns the root X window used by `GdkDisplay`.

since: 4.0

###### gdk_x11_display_get_xscreen

Returns the X Screen used by `GdkDisplay`.

since: 4.0

###### gdk_x11_display_grab

Call XGrabServer() on `display`. To ungrab the display again, use gdk_x11_display_ungrab().

since: 4.0

###### gdk_x11_display_set_cursor_theme

Sets the cursor theme from which the images for cursor should be taken.

since: 4.0

###### gdk_x11_display_set_startup_notification_id

Sets the startup notification ID for a display.

deprecated: 4.10 since: 4.0

###### gdk_x11_display_set_surface_scale

Forces a specific window scale for all windows on this display, instead of using the default or user configured scale. This is can be used to disable scaling support by setting `scale` to 1, or to programmatically set the window scale.

since: 4.0

###### gdk_x11_display_string_to_compound_text

Convert a string from the encoding of the current locale into a form suitable for storing in a window property.

since: 4.0

###### gdk_x11_display_text_property_to_text_list

Convert a text string from the encoding as it is stored in a property into an array of strings in the encoding of the current locale. (The elements of the array represent the nul-separated elements of the original text string.)

since: 4.0

###### gdk_x11_display_ungrab

Ungrab `display` after it has been grabbed with gdk_x11_display_grab().

since: 4.0

###### gdk_x11_display_utf8_to_compound_text

Converts from UTF-8 to compound text.

since: 4.0

##### Methods inherited from GdkDisplay (28)

Please see GdkDisplay for a full list of methods.

##### Methods inherited from GObject (43)

Please see GObject for a full list of methods.

#### Properties

##### Properties inherited from GdkDisplay (5)

###### Gdk.Display:composited

`TRUE` if the display properly composites the alpha channel.

since: 4.0

###### Gdk.Display:dmabuf-formats

The dma-buf formats that are supported on this display.

since: 4.14

###### Gdk.Display:input-shapes

`TRUE` if the display supports input shapes.

since: 4.0

###### Gdk.Display:rgba

`TRUE` if the display supports an alpha channel.

since: 4.0

###### Gdk.Display:shadow-width

`TRUE` if the display supports extensible frames.

since: 4.14

#### Signals

###### GdkX11.X11Display::xevent

The ::xevent signal is a low level signal that is emitted whenever an XEvent has been received.

since: 4.0

##### Signals inherited from GdkDisplay (5)

###### GdkDisplay::closed

Emitted when the connection to the windowing system for `display` is closed.

since: 4.0

###### GdkDisplay::opened

Emitted when the connection to the windowing system for `display` is opened.

since: 4.0

###### GdkDisplay::seat-added

Emitted whenever a new seat is made known to the windowing system.

since: 4.0

###### GdkDisplay::seat-removed

Emitted whenever a seat is removed by the windowing system.

since: 4.0

###### GdkDisplay::setting-changed

Emitted whenever a setting changes its value.

since: 4.0

##### Signals inherited from GObject (1)

###### GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

since: 2.0

#### Class structure

    struct GdkX11X11DisplayClass {
      /* no available fields */
    }

No description available.