<?xml version="1.0"?>
<!-- This file was automatically generated from C sources - DO NOT EDIT!
To affect the contents of this file, edit the original C definitions,
and/or use gtk-doc annotations.  -->
<repository version="1.2"
            xmlns="http://www.gtk.org/introspection/core/1.0"
            xmlns:c="http://www.gtk.org/introspection/c/1.0"
            xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
  <include name="Gdk" version="4.0"/>
  <include name="xlib" version="2.0"/>
  <package name="gtk4-x11"/>
  <c:include name="gdk/x11/gdkx.h"/>
  <namespace name="GdkX11"
             version="4.0"
             shared-library="/opt/local/lib/libgtk-4.1.dylib"
             c:identifier-prefixes="Gdk"
             c:symbol-prefixes="gdk">
    <function-macro name="DISPLAY_XDISPLAY"
                    c:identifier="GDK_DISPLAY_XDISPLAY"
                    introspectable="0">
      <doc xml:space="preserve"
           filename="gdk/x11/gdkx11display.h"
           line="69">Returns the display of a `GdkDisplay`.</doc>
      <source-position filename="gdk/x11/gdkx11display.h" line="77"/>
      <parameters>
        <parameter name="display">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkx11display.h"
               line="71">a `GdkDisplay`</doc>
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="IS_X11_APP_LAUNCH_CONTEXT"
                    c:identifier="GDK_IS_X11_APP_LAUNCH_CONTEXT"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11applaunchcontext.h" line="31"/>
      <parameters>
        <parameter name="object">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="IS_X11_APP_LAUNCH_CONTEXT_CLASS"
                    c:identifier="GDK_IS_X11_APP_LAUNCH_CONTEXT_CLASS"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11applaunchcontext.h" line="32"/>
      <parameters>
        <parameter name="klass">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="IS_X11_DEVICE_MANAGER_XI2"
                    c:identifier="GDK_IS_X11_DEVICE_MANAGER_XI2"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11devicemanager-xi2.h" line="27"/>
      <parameters>
        <parameter name="o">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="IS_X11_DEVICE_MANAGER_XI2_CLASS"
                    c:identifier="GDK_IS_X11_DEVICE_MANAGER_XI2_CLASS"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11devicemanager-xi2.h" line="28"/>
      <parameters>
        <parameter name="c">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="IS_X11_DEVICE_XI2"
                    c:identifier="GDK_IS_X11_DEVICE_XI2"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11device-xi2.h" line="27"/>
      <parameters>
        <parameter name="o">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="IS_X11_DEVICE_XI2_CLASS"
                    c:identifier="GDK_IS_X11_DEVICE_XI2_CLASS"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11device-xi2.h" line="28"/>
      <parameters>
        <parameter name="c">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="IS_X11_DISPLAY"
                    c:identifier="GDK_IS_X11_DISPLAY"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11display.h" line="49"/>
      <parameters>
        <parameter name="object">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="IS_X11_DISPLAY_CLASS"
                    c:identifier="GDK_IS_X11_DISPLAY_CLASS"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11display.h" line="50"/>
      <parameters>
        <parameter name="klass">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="IS_X11_DRAG"
                    c:identifier="GDK_IS_X11_DRAG"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11dnd.h" line="31"/>
      <parameters>
        <parameter name="object">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="IS_X11_DRAG_CLASS"
                    c:identifier="GDK_IS_X11_DRAG_CLASS"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11dnd.h" line="32"/>
      <parameters>
        <parameter name="klass">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="IS_X11_MONITOR"
                    c:identifier="GDK_IS_X11_MONITOR"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11monitor.h" line="34"/>
      <parameters>
        <parameter name="object">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="IS_X11_SCREEN"
                    c:identifier="GDK_IS_X11_SCREEN"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11screen.h" line="41"/>
      <parameters>
        <parameter name="object">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="IS_X11_SCREEN_CLASS"
                    c:identifier="GDK_IS_X11_SCREEN_CLASS"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11screen.h" line="42"/>
      <parameters>
        <parameter name="klass">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="IS_X11_SURFACE"
                    c:identifier="GDK_IS_X11_SURFACE"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11surface.h" line="41"/>
      <parameters>
        <parameter name="object">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="IS_X11_SURFACE_CLASS"
                    c:identifier="GDK_IS_X11_SURFACE_CLASS"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11surface.h" line="42"/>
      <parameters>
        <parameter name="klass">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="POINTER_TO_XID"
                    c:identifier="GDK_POINTER_TO_XID"
                    introspectable="0">
      <doc xml:space="preserve"
           filename="gdk/x11/gdkx11utils.h"
           line="48">Converts a @gpointer back to an XID that was previously converted
using GDK_XID_TO_POINTER().</doc>
      <source-position filename="gdk/x11/gdkx11utils.h" line="55"/>
      <parameters>
        <parameter name="pointer">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkx11utils.h"
               line="50">pointer to extract an XID from</doc>
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="SURFACE_XDISPLAY"
                    c:identifier="GDK_SURFACE_XDISPLAY"
                    introspectable="0">
      <doc xml:space="preserve"
           filename="gdk/x11/gdkx11surface.h"
           line="80">Returns the display of a `GdkSurface`.</doc>
      <source-position filename="gdk/x11/gdkx11surface.h" line="88"/>
      <parameters>
        <parameter name="win">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkx11surface.h"
               line="82">a `GdkSurface`</doc>
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="SURFACE_XID"
                    c:identifier="GDK_SURFACE_XID"
                    introspectable="0">
      <doc xml:space="preserve"
           filename="gdk/x11/gdkx11surface.h"
           line="90">Returns the X window belonging to a `GdkSurface`.</doc>
      <source-position filename="gdk/x11/gdkx11surface.h" line="98"/>
      <parameters>
        <parameter name="win">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkx11surface.h"
               line="92">a `GdkSurface`</doc>
        </parameter>
      </parameters>
    </function-macro>
    <class name="X11AppLaunchContext"
           c:symbol-prefix="x11_app_launch_context"
           c:type="GdkX11AppLaunchContext"
           parent="Gdk.AppLaunchContext"
           glib:type-name="GdkX11AppLaunchContext"
           glib:get-type="gdk_x11_app_launch_context_get_type"
           glib:type-struct="X11AppLaunchContextClass">
      <source-position filename="gdk/x11/gdkx11applaunchcontext.h" line="40"/>
    </class>
    <record name="X11AppLaunchContextClass"
            c:type="GdkX11AppLaunchContextClass"
            disguised="1"
            opaque="1"
            glib:is-gtype-struct-for="X11AppLaunchContext">
      <source-position filename="gdk/x11/gdkx11applaunchcontext.h" line="40"/>
    </record>
    <class name="X11DeviceManagerXI2"
           c:symbol-prefix="x11_device_manager_xi2"
           c:type="GdkX11DeviceManagerXI2"
           parent="GObject.Object"
           glib:type-name="GdkX11DeviceManagerXI2"
           glib:get-type="gdk_x11_device_manager_xi2_get_type"
           glib:type-struct="X11DeviceManagerXI2Class">
      <source-position filename="gdk/x11/gdkx11devicemanager-xi2.h" line="32"/>
      <property name="display"
                writable="1"
                construct-only="1"
                transfer-ownership="none">
        <type name="Gdk.Display"/>
      </property>
      <property name="major"
                writable="1"
                construct-only="1"
                transfer-ownership="none"
                default-value="0">
        <type name="gint" c:type="gint"/>
      </property>
      <property name="minor"
                writable="1"
                construct-only="1"
                transfer-ownership="none"
                default-value="0">
        <type name="gint" c:type="gint"/>
      </property>
      <property name="opcode"
                writable="1"
                construct-only="1"
                transfer-ownership="none"
                default-value="0">
        <type name="gint" c:type="gint"/>
      </property>
    </class>
    <record name="X11DeviceManagerXI2Class"
            c:type="GdkX11DeviceManagerXI2Class"
            disguised="1"
            opaque="1"
            glib:is-gtype-struct-for="X11DeviceManagerXI2">
      <source-position filename="gdk/x11/gdkx11devicemanager-xi2.h" line="32"/>
    </record>
    <enumeration name="X11DeviceType" c:type="GdkX11DeviceType">
      <source-position filename="gdk/x11/gdkx11device-xi2.h" line="38"/>
      <member name="logical"
              value="0"
              c:identifier="GDK_X11_DEVICE_TYPE_LOGICAL">
      </member>
      <member name="physical"
              value="1"
              c:identifier="GDK_X11_DEVICE_TYPE_PHYSICAL">
      </member>
      <member name="floating"
              value="2"
              c:identifier="GDK_X11_DEVICE_TYPE_FLOATING">
      </member>
    </enumeration>
    <class name="X11DeviceXI2"
           c:symbol-prefix="x11_device_xi2"
           c:type="GdkX11DeviceXI2"
           parent="Gdk.Device"
           glib:type-name="GdkX11DeviceXI2"
           glib:get-type="gdk_x11_device_xi2_get_type"
           glib:type-struct="X11DeviceXI2Class">
      <source-position filename="gdk/x11/gdkx11device-xi2.h" line="32"/>
      <property name="device-id"
                writable="1"
                construct-only="1"
                transfer-ownership="none"
                default-value="0">
        <type name="gint" c:type="gint"/>
      </property>
    </class>
    <record name="X11DeviceXI2Class"
            c:type="GdkX11DeviceXI2Class"
            disguised="1"
            opaque="1"
            glib:is-gtype-struct-for="X11DeviceXI2">
      <source-position filename="gdk/x11/gdkx11device-xi2.h" line="32"/>
    </record>
    <class name="X11Display"
           c:symbol-prefix="x11_display"
           c:type="GdkX11Display"
           parent="Gdk.Display"
           glib:type-name="GdkX11Display"
           glib:get-type="gdk_x11_display_get_type"
           glib:type-struct="X11DisplayClass">
      <source-position filename="gdk/x11/gdkx11display.h" line="44"/>
      <function name="get_egl_display"
                c:identifier="gdk_x11_display_get_egl_display">
        <source-position filename="gdk/x11/gdkx11glcontext.h" line="51"/>
        <return-value transfer-ownership="none" nullable="1">
          <type name="gpointer" c:type="gpointer"/>
        </return-value>
        <parameters>
          <parameter name="display" transfer-ownership="none">
            <type name="Gdk.Display" c:type="GdkDisplay*"/>
          </parameter>
        </parameters>
      </function>
      <function name="get_egl_version"
                c:identifier="gdk_x11_display_get_egl_version">
        <source-position filename="gdk/x11/gdkx11glcontext.h" line="46"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <parameter name="display" transfer-ownership="none">
            <type name="Gdk.Display" c:type="GdkDisplay*"/>
          </parameter>
          <parameter name="major" transfer-ownership="none">
            <type name="gint" c:type="int*"/>
          </parameter>
          <parameter name="minor" transfer-ownership="none">
            <type name="gint" c:type="int*"/>
          </parameter>
        </parameters>
      </function>
      <function name="open" c:identifier="gdk_x11_display_open">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkdisplay-x11.c"
             line="1411">Tries to open a new display to the X server given by
@display_name. If opening the display fails, %NULL is
returned.</doc>
        <source-position filename="gdk/x11/gdkx11display.h" line="57"/>
        <return-value transfer-ownership="full" nullable="1">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkdisplay-x11.c"
               line="1420">The new display</doc>
          <type name="Gdk.Display" c:type="GdkDisplay*"/>
        </return-value>
        <parameters>
          <parameter name="display_name"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkdisplay-x11.c"
                 line="1413">name of the X display.
  See the XOpenDisplay() for details.</doc>
            <type name="utf8" c:type="const char*"/>
          </parameter>
        </parameters>
      </function>
      <function name="set_program_class"
                c:identifier="gdk_x11_display_set_program_class">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkdisplay-x11.c"
             line="1663">Sets the program class.

The X11 backend uses the program class to set the class name part
of the `WM_CLASS` property on toplevel windows; see the ICCCM.</doc>
        <source-position filename="gdk/x11/gdkx11display.h" line="88"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <parameter name="display" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkdisplay-x11.c"
                 line="1665">a `GdkDisplay`</doc>
            <type name="Gdk.Display" c:type="GdkDisplay*"/>
          </parameter>
          <parameter name="program_class" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkdisplay-x11.c"
                 line="1666">a string</doc>
            <type name="utf8" c:type="const char*"/>
          </parameter>
        </parameters>
      </function>
      <method name="broadcast_startup_message"
              c:identifier="gdk_x11_display_broadcast_startup_message"
              introspectable="0">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkdisplay-x11.c"
             line="2186">Sends a startup notification message of type @message_type to
@display.

This is a convenience function for use by code that implements the
freedesktop startup notification specification. Applications should
not normally need to call it directly. See the
[Startup Notification Protocol specification](http://standards.freedesktop.org/startup-notification-spec/startup-notification-latest.txt)
for definitions of the message types and keys that can be used.</doc>
        <source-position filename="gdk/x11/gdkx11display.h" line="97"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="display" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkdisplay-x11.c"
                 line="2188">a `GdkDisplay`</doc>
            <type name="X11Display" c:type="GdkDisplay*"/>
          </instance-parameter>
          <parameter name="message_type" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkdisplay-x11.c"
                 line="2189">startup notification message type ("new", "change",
or "remove")</doc>
            <type name="utf8" c:type="const char*"/>
          </parameter>
          <parameter name="..." transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkdisplay-x11.c"
                 line="2191">a list of key/value pairs (as strings), terminated by a
%NULL key. (A %NULL value for a key will cause that key to be
skipped in the output.)</doc>
            <varargs/>
          </parameter>
        </parameters>
      </method>
      <method name="error_trap_pop"
              c:identifier="gdk_x11_display_error_trap_pop">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkdisplay-x11.c"
             line="2675">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.

If you don’t need to use the return value,
gdk_x11_display_error_trap_pop_ignored() would be more efficient.</doc>
        <source-position filename="gdk/x11/gdkx11display.h" line="123"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkdisplay-x11.c"
               line="2687">X error code or 0 on success</doc>
          <type name="gint" c:type="int"/>
        </return-value>
        <parameters>
          <instance-parameter name="display" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkdisplay-x11.c"
                 line="2677">the display</doc>
            <type name="X11Display" c:type="GdkDisplay*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="error_trap_pop_ignored"
              c:identifier="gdk_x11_display_error_trap_pop_ignored">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkdisplay-x11.c"
             line="2697">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.</doc>
        <source-position filename="gdk/x11/gdkx11display.h" line="125"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="display" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkdisplay-x11.c"
                 line="2699">the display</doc>
            <type name="X11Display" c:type="GdkDisplay*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="error_trap_push"
              c:identifier="gdk_x11_display_error_trap_push">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkdisplay-x11.c"
             line="2527">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.</doc>
        <source-position filename="gdk/x11/gdkx11display.h" line="120"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="display" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkdisplay-x11.c"
                 line="2529">a `GdkDisplay`</doc>
            <type name="X11Display" c:type="GdkDisplay*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_default_group"
              c:identifier="gdk_x11_display_get_default_group">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkdisplay-x11.c"
             line="1864">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().</doc>
        <source-position filename="gdk/x11/gdkx11display.h" line="131"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkdisplay-x11.c"
               line="1872">The default group leader surface
for @display</doc>
          <type name="Gdk.Surface" c:type="GdkSurface*"/>
        </return-value>
        <parameters>
          <instance-parameter name="display" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkdisplay-x11.c"
                 line="1866">a `GdkDisplay`</doc>
            <type name="X11Display" c:type="GdkDisplay*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_glx_version"
              c:identifier="gdk_x11_display_get_glx_version">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkglcontext-glx.c"
             line="892">Retrieves the version of the GLX implementation.</doc>
        <source-position filename="gdk/x11/gdkx11glcontext.h" line="42"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkglcontext-glx.c"
               line="900">%TRUE if GLX is available</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="display" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkglcontext-glx.c"
                 line="894">a `GdkDisplay`</doc>
            <type name="X11Display" c:type="GdkDisplay*"/>
          </instance-parameter>
          <parameter name="major"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkglcontext-glx.c"
                 line="895">return location for the GLX major version</doc>
            <type name="gint" c:type="int*"/>
          </parameter>
          <parameter name="minor"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkglcontext-glx.c"
                 line="896">return location for the GLX minor version</doc>
            <type name="gint" c:type="int*"/>
          </parameter>
        </parameters>
      </method>
      <method name="get_primary_monitor"
              c:identifier="gdk_x11_display_get_primary_monitor">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkdisplay-x11.c"
             line="2830">Gets the primary monitor for the display.

The primary monitor is considered the monitor where the “main desktop”
lives. While normal application surfaces typically allow the window
manager to place the surfaces, specialized desktop applications
such as panels should place themselves on the primary monitor.

If no monitor is the designated primary monitor, any monitor
(usually the first) may be returned.</doc>
        <source-position filename="gdk/x11/gdkx11display.h" line="108"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkdisplay-x11.c"
               line="2844">the primary monitor, or any monitor if no
  primary monitor is configured by the user</doc>
          <type name="Gdk.Monitor" c:type="GdkMonitor*"/>
        </return-value>
        <parameters>
          <instance-parameter name="display" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkdisplay-x11.c"
                 line="2832">a `GdkDisplay`</doc>
            <type name="X11Display" c:type="GdkDisplay*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_screen" c:identifier="gdk_x11_display_get_screen">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkdisplay-x11.c"
             line="2758">Retrieves the `GdkX11Screen` of the @display.</doc>
        <source-position filename="gdk/x11/gdkx11display.h" line="105"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkdisplay-x11.c"
               line="2764">the `GdkX11Screen`</doc>
          <type name="X11Screen" c:type="GdkX11Screen*"/>
        </return-value>
        <parameters>
          <instance-parameter name="display" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkdisplay-x11.c"
                 line="2760">a `GdkX11Display`</doc>
            <type name="X11Display" c:type="GdkDisplay*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_startup_notification_id"
              c:identifier="gdk_x11_display_get_startup_notification_id"
              deprecated="1"
              deprecated-version="4.10">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkdisplay-x11.c"
             line="2317">Gets the startup notification ID for a display.</doc>
        <source-position filename="gdk/x11/gdkx11display.h" line="83"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkdisplay-x11.c"
               line="2323">the startup notification ID for @display</doc>
          <type name="utf8" c:type="const char*"/>
        </return-value>
        <parameters>
          <instance-parameter name="display" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkdisplay-x11.c"
                 line="2319">a `GdkDisplay`</doc>
            <type name="X11Display" c:type="GdkDisplay*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_user_time"
              c:identifier="gdk_x11_display_get_user_time">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkdisplay-x11.c"
             line="2300">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().</doc>
        <source-position filename="gdk/x11/gdkx11display.h" line="80"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkdisplay-x11.c"
               line="2309">the timestamp of the last user interaction</doc>
          <type name="guint32" c:type="guint32"/>
        </return-value>
        <parameters>
          <instance-parameter name="display" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkdisplay-x11.c"
                 line="2302">a `GdkDisplay`</doc>
            <type name="X11Display" c:type="GdkDisplay*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_xcursor" c:identifier="gdk_x11_display_get_xcursor">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkcursor-x11.c"
             line="337">Returns the X cursor belonging to a `GdkCursor`, potentially
creating the cursor.

Be aware that the returned cursor may not be unique to @cursor.
It may for example be shared with its fallback cursor. On old
X servers that don't support the XCursor extension, all cursors
may even fall back to a few default cursors.</doc>
        <source-position filename="gdk/x11/gdkx11display.h" line="66"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkcursor-x11.c"
               line="350">an Xlib Cursor.</doc>
          <type name="xlib.Cursor" c:type="Cursor"/>
        </return-value>
        <parameters>
          <instance-parameter name="display" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkcursor-x11.c"
                 line="339">a `GdkDisplay`</doc>
            <type name="X11Display" c:type="GdkDisplay*"/>
          </instance-parameter>
          <parameter name="cursor" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkcursor-x11.c"
                 line="340">a `GdkCursor`</doc>
            <type name="Gdk.Cursor" c:type="GdkCursor*"/>
          </parameter>
        </parameters>
      </method>
      <method name="get_xdisplay" c:identifier="gdk_x11_display_get_xdisplay">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkdisplay-x11.c"
             line="2035">Returns the X display of a `GdkDisplay`.</doc>
        <source-position filename="gdk/x11/gdkx11display.h" line="60"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkdisplay-x11.c"
               line="2041">an X display</doc>
          <type name="xlib.Display" c:type="Display*"/>
        </return-value>
        <parameters>
          <instance-parameter name="display" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkdisplay-x11.c"
                 line="2037">a `GdkDisplay`</doc>
            <type name="X11Display" c:type="GdkDisplay*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_xrootwindow"
              c:identifier="gdk_x11_display_get_xrootwindow">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkdisplay-x11.c"
             line="2067">Returns the root X window used by `GdkDisplay`.</doc>
        <source-position filename="gdk/x11/gdkx11display.h" line="64"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkdisplay-x11.c"
               line="2073">an X Window</doc>
          <type name="xlib.Window" c:type="Window"/>
        </return-value>
        <parameters>
          <instance-parameter name="display" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkdisplay-x11.c"
                 line="2069">a `GdkDisplay`</doc>
            <type name="X11Display" c:type="GdkDisplay*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_xscreen" c:identifier="gdk_x11_display_get_xscreen">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkdisplay-x11.c"
             line="2051">Returns the X Screen used by `GdkDisplay`.</doc>
        <source-position filename="gdk/x11/gdkx11display.h" line="62"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkdisplay-x11.c"
               line="2057">an X Screen</doc>
          <type name="xlib.Screen" c:type="Screen*"/>
        </return-value>
        <parameters>
          <instance-parameter name="display" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkdisplay-x11.c"
                 line="2053">a `GdkDisplay`</doc>
            <type name="X11Display" c:type="GdkDisplay*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="grab" c:identifier="gdk_x11_display_grab">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkdisplay-x11.c"
             line="1883">Call XGrabServer() on @display.
To ungrab the display again, use gdk_x11_display_ungrab().

gdk_x11_display_grab()/gdk_x11_display_ungrab() calls can be nested.</doc>
        <source-position filename="gdk/x11/gdkx11display.h" line="111"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="display" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkdisplay-x11.c"
                 line="1885">a `GdkDisplay`</doc>
            <type name="X11Display" c:type="GdkDisplay*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="set_cursor_theme"
              c:identifier="gdk_x11_display_set_cursor_theme">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkcursor-x11.c"
             line="261">Sets the cursor theme from which the images for cursor
should be taken.

If the windowing system supports it, existing cursors created
with [ctor@Gdk.Cursor.new_from_name] are updated to reflect the theme
change. Custom cursors constructed with [ctor@Gdk.Cursor.new_from_texture]
will have to be handled by the application (GTK applications can learn
about cursor theme changes by listening for change notification
for the corresponding `GtkSetting`).</doc>
        <source-position filename="gdk/x11/gdkx11display.h" line="92"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="display" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkcursor-x11.c"
                 line="263">a `GdkDisplay`</doc>
            <type name="X11Display" c:type="GdkDisplay*"/>
          </instance-parameter>
          <parameter name="theme"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkcursor-x11.c"
                 line="264">the name of the cursor theme to use, or %NULL
  to unset a previously set value</doc>
            <type name="utf8" c:type="const char*"/>
          </parameter>
          <parameter name="size" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkcursor-x11.c"
                 line="266">the cursor size to use, or 0 to keep the previous size</doc>
            <type name="gint" c:type="const int"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_startup_notification_id"
              c:identifier="gdk_x11_display_set_startup_notification_id"
              deprecated="1"
              deprecated-version="4.10">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkdisplay-x11.c"
             line="2333">Sets the startup notification ID for a display.

This is usually taken from the value of the DESKTOP_STARTUP_ID
environment variable, but in some cases (such as the application not
being launched using exec()) it can come from other sources.

If the ID contains the string "_TIME" then the portion following that
string is taken to be the X11 timestamp of the event that triggered
the application to be launched and the GDK current event time is set
accordingly.

The startup ID is also what is used to signal that the startup is
complete (for example, when opening a window or when calling
gdk_display_notify_startup_complete()).</doc>
        <doc-deprecated xml:space="preserve">Using [method@Gdk.Toplevel.set_startup_id] is sufficient</doc-deprecated>
        <source-position filename="gdk/x11/gdkx11display.h" line="85"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="display" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkdisplay-x11.c"
                 line="2335">a `GdkDisplay`</doc>
            <type name="X11Display" c:type="GdkDisplay*"/>
          </instance-parameter>
          <parameter name="startup_id" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkdisplay-x11.c"
                 line="2336">the startup notification ID (must be valid utf8)</doc>
            <type name="utf8" c:type="const char*"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_surface_scale"
              c:identifier="gdk_x11_display_set_surface_scale">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkdisplay-x11.c"
             line="2632">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.

Once the scale is set by this call it will not change in response
to later user configuration changes.</doc>
        <source-position filename="gdk/x11/gdkx11display.h" line="116"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="display" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkdisplay-x11.c"
                 line="2634">the display</doc>
            <type name="X11Display" c:type="GdkDisplay*"/>
          </instance-parameter>
          <parameter name="scale" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkdisplay-x11.c"
                 line="2635">The new scale value</doc>
            <type name="gint" c:type="int"/>
          </parameter>
        </parameters>
      </method>
      <method name="string_to_compound_text"
              c:identifier="gdk_x11_display_string_to_compound_text">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkselection-x11.c"
             line="272">Convert a string from the encoding of the current
locale into a form suitable for storing in a window property.</doc>
        <source-position filename="gdk/x11/gdkx11selection.h" line="48"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkselection-x11.c"
               line="286">0 upon success, non-zero upon failure</doc>
          <type name="gint" c:type="int"/>
        </return-value>
        <parameters>
          <instance-parameter name="display" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkselection-x11.c"
                 line="274">the `GdkDisplay` where the encoding is defined</doc>
            <type name="X11Display" c:type="GdkDisplay*"/>
          </instance-parameter>
          <parameter name="str" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkselection-x11.c"
                 line="275">a nul-terminated string</doc>
            <type name="utf8" c:type="const char*"/>
          </parameter>
          <parameter name="encoding"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkselection-x11.c"
                 line="276">location to store the encoding
  (to be used as the type for the property)</doc>
            <type name="utf8" c:type="const char**"/>
          </parameter>
          <parameter name="format"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkselection-x11.c"
                 line="278">location to store the format of the property</doc>
            <type name="gint" c:type="int*"/>
          </parameter>
          <parameter name="ctext"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkselection-x11.c"
                 line="279">location to store newly
  allocated data for the property</doc>
            <array length="4" zero-terminated="0" c:type="guchar**">
              <type name="guint8" c:type="guchar*"/>
            </array>
          </parameter>
          <parameter name="length"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkselection-x11.c"
                 line="281">the length of @ctext, in bytes</doc>
            <type name="gint" c:type="int*"/>
          </parameter>
        </parameters>
      </method>
      <method name="text_property_to_text_list"
              c:identifier="gdk_x11_display_text_property_to_text_list">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkselection-x11.c"
             line="35">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.)</doc>
        <source-position filename="gdk/x11/gdkx11selection.h" line="39"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkselection-x11.c"
               line="53">the number of strings stored in list, or 0,
  if the conversion failed</doc>
          <type name="gint" c:type="int"/>
        </return-value>
        <parameters>
          <instance-parameter name="display" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkselection-x11.c"
                 line="37">The `GdkDisplay` where the encoding is defined</doc>
            <type name="X11Display" c:type="GdkDisplay*"/>
          </instance-parameter>
          <parameter name="encoding" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkselection-x11.c"
                 line="38">a string representing the encoding. The most
  common values for this are "STRING", or "COMPOUND_TEXT".
  This is value used as the type for the property</doc>
            <type name="utf8" c:type="const char*"/>
          </parameter>
          <parameter name="format" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkselection-x11.c"
                 line="41">the format of the property</doc>
            <type name="gint" c:type="int"/>
          </parameter>
          <parameter name="text" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkselection-x11.c"
                 line="42">The text data</doc>
            <type name="guint8" c:type="const guchar*"/>
          </parameter>
          <parameter name="length" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkselection-x11.c"
                 line="43">The number of items to transform</doc>
            <type name="gint" c:type="int"/>
          </parameter>
          <parameter name="list" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkselection-x11.c"
                 line="44">location to store an  array of strings in
  the encoding of the current locale. This array should be
  freed using gdk_x11_free_text_list().</doc>
            <type name="utf8" c:type="char***"/>
          </parameter>
        </parameters>
      </method>
      <method name="ungrab" c:identifier="gdk_x11_display_ungrab">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkdisplay-x11.c"
             line="1906">Ungrab @display after it has been grabbed with
gdk_x11_display_grab().</doc>
        <source-position filename="gdk/x11/gdkx11display.h" line="113"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="display" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkdisplay-x11.c"
                 line="1908">a `GdkDisplay`</doc>
            <type name="X11Display" c:type="GdkDisplay*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="utf8_to_compound_text"
              c:identifier="gdk_x11_display_utf8_to_compound_text">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkselection-x11.c"
             line="327">Converts from UTF-8 to compound text.</doc>
        <source-position filename="gdk/x11/gdkx11selection.h" line="55"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkselection-x11.c"
               line="338">%TRUE if the conversion succeeded, otherwise %FALSE</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="display" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkselection-x11.c"
                 line="329">a `GdkDisplay`</doc>
            <type name="X11Display" c:type="GdkDisplay*"/>
          </instance-parameter>
          <parameter name="str" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkselection-x11.c"
                 line="330">a UTF-8 string</doc>
            <type name="utf8" c:type="const char*"/>
          </parameter>
          <parameter name="encoding"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkselection-x11.c"
                 line="331">location to store resulting encoding</doc>
            <type name="utf8" c:type="const char**"/>
          </parameter>
          <parameter name="format"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkselection-x11.c"
                 line="332">location to store format of the result</doc>
            <type name="gint" c:type="int*"/>
          </parameter>
          <parameter name="ctext"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkselection-x11.c"
                 line="333">location to store the data of the result</doc>
            <array length="4" zero-terminated="0" c:type="guchar**">
              <type name="guint8" c:type="guchar*"/>
            </array>
          </parameter>
          <parameter name="length"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkselection-x11.c"
                 line="334">location to store the length of the data stored in @ctext</doc>
            <type name="gint" c:type="int*"/>
          </parameter>
        </parameters>
      </method>
      <glib:signal name="xevent" when="last">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkdisplay-x11.c"
             line="3118">The ::xevent signal is a low level signal that is emitted
whenever an XEvent has been received.

When handlers to this signal return %TRUE, no other handlers will be
invoked. In particular, the default handler for this function is
GDK's own event handling mechanism, so by returning %TRUE for an event
that GDK expects to translate, you may break GDK and/or GTK+ in
interesting ways. You have been warned.

If you want this signal handler to queue a `GdkEvent`, you can use
gdk_display_put_event().

If you are interested in X GenericEvents, bear in mind that
XGetEventData() has been already called on the event, and
XFreeEventData() will be called afterwards.</doc>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkdisplay-x11.c"
               line="3139">%TRUE to stop other handlers from being invoked for the event.
  %FALSE to propagate the event further.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <parameter name="xevent"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkdisplay-x11.c"
                 line="3121">a pointer to the XEvent to process</doc>
            <type name="gpointer" c:type="gpointer"/>
          </parameter>
        </parameters>
      </glib:signal>
    </class>
    <record name="X11DisplayClass"
            c:type="GdkX11DisplayClass"
            disguised="1"
            opaque="1"
            glib:is-gtype-struct-for="X11Display">
      <source-position filename="gdk/x11/gdkx11display.h" line="44"/>
    </record>
    <class name="X11Drag"
           c:symbol-prefix="x11_drag"
           c:type="GdkX11Drag"
           parent="Gdk.Drag"
           glib:type-name="GdkX11Drag"
           glib:get-type="gdk_x11_drag_get_type"
           glib:type-struct="X11DragClass">
      <source-position filename="gdk/x11/gdkx11dnd.h" line="40"/>
    </class>
    <record name="X11DragClass"
            c:type="GdkX11DragClass"
            disguised="1"
            opaque="1"
            glib:is-gtype-struct-for="X11Drag">
      <source-position filename="gdk/x11/gdkx11dnd.h" line="40"/>
    </record>
    <class name="X11GLContext"
           c:symbol-prefix="x11_gl_context"
           c:type="GdkX11GLContext"
           parent="Gdk.GLContext"
           abstract="1"
           glib:type-name="GdkX11GLContext"
           glib:get-type="gdk_x11_gl_context_get_type"
           glib:type-struct="X11GLContextClass">
      <source-position filename="gdk/x11/gdkx11glcontext.h" line="36"/>
    </class>
    <record name="X11GLContextClass"
            c:type="GdkX11GLContextClass"
            disguised="1"
            opaque="1"
            glib:is-gtype-struct-for="X11GLContext">
      <source-position filename="gdk/x11/gdkx11glcontext.h" line="36"/>
    </record>
    <class name="X11Monitor"
           c:symbol-prefix="x11_monitor"
           c:type="GdkX11Monitor"
           parent="Gdk.Monitor"
           glib:type-name="GdkX11Monitor"
           glib:get-type="gdk_x11_monitor_get_type"
           glib:type-struct="X11MonitorClass">
      <source-position filename="gdk/x11/gdkx11monitor.h" line="37"/>
      <method name="get_output" c:identifier="gdk_x11_monitor_get_output">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkmonitor-x11.c"
             line="117">Returns the XID of the Output corresponding to @monitor.</doc>
        <source-position filename="gdk/x11/gdkx11monitor.h" line="43"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkmonitor-x11.c"
               line="123">the XID of @monitor</doc>
          <type name="xlib.XID" c:type="XID"/>
        </return-value>
        <parameters>
          <instance-parameter name="monitor" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkmonitor-x11.c"
                 line="119">a `GdkMonitor`</doc>
            <type name="X11Monitor" c:type="GdkMonitor*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_workarea" c:identifier="gdk_x11_monitor_get_workarea">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkmonitor-x11.c"
             line="64">Retrieves the size and position of the “work area” on a monitor
within the display coordinate space.

The returned geometry is in ”application pixels”, not in ”device pixels”
(see [method@Gdk.Monitor.get_scale_factor]).</doc>
        <source-position filename="gdk/x11/gdkx11monitor.h" line="46"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="monitor" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkmonitor-x11.c"
                 line="66">a `GdkMonitor`</doc>
            <type name="X11Monitor" c:type="GdkMonitor*"/>
          </instance-parameter>
          <parameter name="workarea"
                     direction="out"
                     caller-allocates="1"
                     transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkmonitor-x11.c"
                 line="67">a `GdkRectangle` to be filled with the monitor workarea</doc>
            <type name="Gdk.Rectangle" c:type="GdkRectangle*"/>
          </parameter>
        </parameters>
      </method>
    </class>
    <record name="X11MonitorClass"
            c:type="GdkX11MonitorClass"
            disguised="1"
            opaque="1"
            glib:is-gtype-struct-for="X11Monitor">
      <source-position filename="gdk/x11/gdkx11monitor.h" line="37"/>
    </record>
    <class name="X11Screen"
           c:symbol-prefix="x11_screen"
           c:type="GdkX11Screen"
           parent="GObject.Object"
           glib:type-name="GdkX11Screen"
           glib:get-type="gdk_x11_screen_get_type"
           glib:type-struct="X11ScreenClass">
      <source-position filename="gdk/x11/gdkx11screen.h" line="46"/>
      <method name="get_current_desktop"
              c:identifier="gdk_x11_screen_get_current_desktop">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkscreen-x11.c"
             line="1415">Returns the current workspace for @screen when running under a
window manager that supports multiple workspaces, as described
in the
[Extended Window Manager Hints](http://www.freedesktop.org/Standards/wm-spec) specification.</doc>
        <source-position filename="gdk/x11/gdkx11screen.h" line="70"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkscreen-x11.c"
               line="1424">the current workspace, or 0 if workspaces are not supported</doc>
          <type name="guint32" c:type="guint32"/>
        </return-value>
        <parameters>
          <instance-parameter name="screen" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkscreen-x11.c"
                 line="1417">a `GdkX11Screen`</doc>
            <type name="X11Screen" c:type="GdkX11Screen*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_monitor_output"
              c:identifier="gdk_x11_screen_get_monitor_output">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkscreen-x11.c"
             line="112">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.</doc>
        <source-position filename="gdk/x11/gdkx11screen.h" line="64"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkscreen-x11.c"
               line="121">the XID of the monitor</doc>
          <type name="xlib.XID" c:type="XID"/>
        </return-value>
        <parameters>
          <instance-parameter name="screen" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkscreen-x11.c"
                 line="114">a `GdkX11Screen`</doc>
            <type name="X11Screen" c:type="GdkX11Screen*"/>
          </instance-parameter>
          <parameter name="monitor_num" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkscreen-x11.c"
                 line="115">number of the monitor, between 0 and gdk_screen_get_n_monitors (screen)</doc>
            <type name="gint" c:type="int"/>
          </parameter>
        </parameters>
      </method>
      <method name="get_number_of_desktops"
              c:identifier="gdk_x11_screen_get_number_of_desktops">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkscreen-x11.c"
             line="1398">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](http://www.freedesktop.org/Standards/wm-spec) specification.</doc>
        <source-position filename="gdk/x11/gdkx11screen.h" line="68"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkscreen-x11.c"
               line="1407">the number of workspaces, or 0 if workspaces are not supported</doc>
          <type name="guint32" c:type="guint32"/>
        </return-value>
        <parameters>
          <instance-parameter name="screen" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkscreen-x11.c"
                 line="1400">a `GdkX11Screen`</doc>
            <type name="X11Screen" c:type="GdkX11Screen*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_screen_number"
              c:identifier="gdk_x11_screen_get_screen_number">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkscreen-x11.c"
             line="364">Returns the index of a `GdkX11Screen`.</doc>
        <source-position filename="gdk/x11/gdkx11screen.h" line="54"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkscreen-x11.c"
               line="370">the position of @screen among the screens
  of its display</doc>
          <type name="gint" c:type="int"/>
        </return-value>
        <parameters>
          <instance-parameter name="screen" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkscreen-x11.c"
                 line="366">a `GdkX11Screen`</doc>
            <type name="X11Screen" c:type="GdkX11Screen*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_window_manager_name"
              c:identifier="gdk_x11_screen_get_window_manager_name">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkscreen-x11.c"
             line="1283">Returns the name of the window manager for @screen.</doc>
        <source-position filename="gdk/x11/gdkx11screen.h" line="57"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkscreen-x11.c"
               line="1289">the name of the window manager screen @screen, or
"unknown" if the window manager is unknown. The string is owned by GDK
and should not be freed.</doc>
          <type name="utf8" c:type="const char*"/>
        </return-value>
        <parameters>
          <instance-parameter name="screen" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkscreen-x11.c"
                 line="1285">a `GdkX11Screen`</doc>
            <type name="X11Screen" c:type="GdkX11Screen*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_xscreen" c:identifier="gdk_x11_screen_get_xscreen">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkscreen-x11.c"
             line="350">Returns the screen of a `GdkX11Screen`.</doc>
        <source-position filename="gdk/x11/gdkx11screen.h" line="52"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkscreen-x11.c"
               line="356">an Xlib Screen*</doc>
          <type name="xlib.Screen" c:type="Screen*"/>
        </return-value>
        <parameters>
          <instance-parameter name="screen" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkscreen-x11.c"
                 line="352">a `GdkX11Screen`</doc>
            <type name="X11Screen" c:type="GdkX11Screen*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="supports_net_wm_hint"
              c:identifier="gdk_x11_screen_supports_net_wm_hint">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkscreen-x11.c"
             line="1196">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](http://www.freedesktop.org/Standards/wm-spec) 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
gdk_x11_screen_supports_net_wm_hint() will return %FALSE for every property.
You can monitor the window_manager_changed signal on `GdkX11Screen` to detect
a window manager change.</doc>
        <source-position filename="gdk/x11/gdkx11screen.h" line="60"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkscreen-x11.c"
               line="1214">%TRUE if the window manager supports @property</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="screen" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkscreen-x11.c"
                 line="1198">the relevant `GdkX11Screen`.</doc>
            <type name="X11Screen" c:type="GdkX11Screen*"/>
          </instance-parameter>
          <parameter name="property_name" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkscreen-x11.c"
                 line="1199">name of the WM property</doc>
            <type name="utf8" c:type="const char*"/>
          </parameter>
        </parameters>
      </method>
      <glib:signal name="window-manager-changed" when="last">
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
      </glib:signal>
    </class>
    <record name="X11ScreenClass"
            c:type="GdkX11ScreenClass"
            disguised="1"
            opaque="1"
            glib:is-gtype-struct-for="X11Screen">
      <source-position filename="gdk/x11/gdkx11screen.h" line="46"/>
    </record>
    <class name="X11Surface"
           c:symbol-prefix="x11_surface"
           c:type="GdkX11Surface"
           parent="Gdk.Surface"
           glib:type-name="GdkX11Surface"
           glib:get-type="gdk_x11_surface_get_type"
           glib:type-struct="X11SurfaceClass">
      <source-position filename="gdk/x11/gdkx11surface.h" line="50"/>
      <function name="lookup_for_display"
                c:identifier="gdk_x11_surface_lookup_for_display">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkxid.c"
             line="89">Looks up the `GdkSurface` that wraps the given native window handle.</doc>
        <source-position filename="gdk/x11/gdkx11surface.h" line="104"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkxid.c"
               line="97">the `GdkSurface` wrapper
  for the native  window</doc>
          <type name="X11Surface" c:type="GdkSurface*"/>
        </return-value>
        <parameters>
          <parameter name="display" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkxid.c"
                 line="91">the `GdkDisplay` corresponding to the
  window handle</doc>
            <type name="X11Display" c:type="GdkDisplay*"/>
          </parameter>
          <parameter name="window" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdkxid.c"
                 line="93">an Xlib Window</doc>
            <type name="xlib.Window" c:type="Window"/>
          </parameter>
        </parameters>
      </function>
      <method name="get_desktop" c:identifier="gdk_x11_surface_get_desktop">
        <doc xml:space="preserve"
             filename="gdk/x11/gdksurface-x11.c"
             line="2063">Gets the number of the workspace @surface is on.</doc>
        <source-position filename="gdk/x11/gdkx11surface.h" line="71"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gdk/x11/gdksurface-x11.c"
               line="2069">the current workspace of @surface</doc>
          <type name="guint32" c:type="guint32"/>
        </return-value>
        <parameters>
          <instance-parameter name="surface" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdksurface-x11.c"
                 line="2065">a `GdkSurface`</doc>
            <type name="X11Surface" c:type="GdkSurface*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_group" c:identifier="gdk_x11_surface_get_group">
        <doc xml:space="preserve"
             filename="gdk/x11/gdksurface-x11.c"
             line="3494">Returns the group this surface belongs to.</doc>
        <source-position filename="gdk/x11/gdkx11surface.h" line="121"/>
        <return-value transfer-ownership="none" nullable="1">
          <doc xml:space="preserve"
               filename="gdk/x11/gdksurface-x11.c"
               line="3500">The group of this surface;</doc>
          <type name="Gdk.Surface" c:type="GdkSurface*"/>
        </return-value>
        <parameters>
          <instance-parameter name="surface" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdksurface-x11.c"
                 line="3496">The `GdkSurface`</doc>
            <type name="X11Surface" c:type="GdkSurface*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_xid" c:identifier="gdk_x11_surface_get_xid">
        <doc xml:space="preserve"
             filename="gdk/x11/gdksurface-x11.c"
             line="4613">Returns the X resource (surface) belonging to a `GdkSurface`.</doc>
        <source-position filename="gdk/x11/gdkx11surface.h" line="56"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gdk/x11/gdksurface-x11.c"
               line="4619">the ID of @drawable’s X resource.</doc>
          <type name="xlib.Window" c:type="Window"/>
        </return-value>
        <parameters>
          <instance-parameter name="surface" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdksurface-x11.c"
                 line="4615">a native `GdkSurface`.</doc>
            <type name="X11Surface" c:type="GdkSurface*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="move_to_current_desktop"
              c:identifier="gdk_x11_surface_move_to_current_desktop">
        <doc xml:space="preserve"
             filename="gdk/x11/gdksurface-x11.c"
             line="2000">Moves the surface to the correct workspace when running under a
window manager that supports multiple workspaces, as described
in the [Extended Window Manager Hints](http://www.freedesktop.org/Standards/wm-spec) specification.
Will not do anything if the surface is already on all workspaces.</doc>
        <source-position filename="gdk/x11/gdkx11surface.h" line="68"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="surface" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdksurface-x11.c"
                 line="2002">a `GdkSurface`</doc>
            <type name="X11Surface" c:type="GdkSurface*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="move_to_desktop"
              c:identifier="gdk_x11_surface_move_to_desktop">
        <doc xml:space="preserve"
             filename="gdk/x11/gdksurface-x11.c"
             line="2079">Moves the surface to the given workspace when running unde a
window manager that supports multiple workspaces, as described
in the [Extended Window Manager Hints](http://www.freedesktop.org/Standards/wm-spec) specification.</doc>
        <source-position filename="gdk/x11/gdkx11surface.h" line="73"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="surface" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdksurface-x11.c"
                 line="2081">a `GdkSurface`</doc>
            <type name="X11Surface" c:type="GdkSurface*"/>
          </instance-parameter>
          <parameter name="desktop" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdksurface-x11.c"
                 line="2082">the number of the workspace to move the surface to</doc>
            <type name="guint32" c:type="guint32"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_frame_sync_enabled"
              c:identifier="gdk_x11_surface_set_frame_sync_enabled">
        <doc xml:space="preserve"
             filename="gdk/x11/gdksurface-x11.c"
             line="4635">This function can be used to disable frame synchronization for a surface.
Normally frame synchronziation will be enabled or disabled based on whether
the system has a compositor that supports frame synchronization, but if
the surface is not directly managed by the window manager, then frame
synchronziation may need to be disabled. This is the case for a surface
embedded via the XEMBED protocol.</doc>
        <source-position filename="gdk/x11/gdkx11surface.h" line="77"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="surface" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdksurface-x11.c"
                 line="4637">a native `GdkSurface`</doc>
            <type name="X11Surface" c:type="GdkSurface*"/>
          </instance-parameter>
          <parameter name="frame_sync_enabled" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdksurface-x11.c"
                 line="4638">whether frame-synchronization should be enabled</doc>
            <type name="gboolean" c:type="gboolean"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_group" c:identifier="gdk_x11_surface_set_group">
        <doc xml:space="preserve"
             filename="gdk/x11/gdksurface-x11.c"
             line="3515">Sets the group leader of @surface to be @leader.
See the ICCCM for details.</doc>
        <source-position filename="gdk/x11/gdkx11surface.h" line="118"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="surface" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdksurface-x11.c"
                 line="3517">a native `GdkSurface`</doc>
            <type name="X11Surface" c:type="GdkSurface*"/>
          </instance-parameter>
          <parameter name="leader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdksurface-x11.c"
                 line="3518">a `GdkSurface`</doc>
            <type name="Gdk.Surface" c:type="GdkSurface*"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_skip_pager_hint"
              c:identifier="gdk_x11_surface_set_skip_pager_hint">
        <doc xml:space="preserve"
             filename="gdk/x11/gdksurface-x11.c"
             line="2308">Sets a hint on @surface that pagers should not
display it. See the EWMH for details.</doc>
        <source-position filename="gdk/x11/gdkx11surface.h" line="111"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="surface" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdksurface-x11.c"
                 line="2310">a `GdkSurface`</doc>
            <type name="X11Surface" c:type="GdkSurface*"/>
          </instance-parameter>
          <parameter name="skips_pager" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdksurface-x11.c"
                 line="2311">%TRUE to skip pagers</doc>
            <type name="gboolean" c:type="gboolean"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_skip_taskbar_hint"
              c:identifier="gdk_x11_surface_set_skip_taskbar_hint">
        <doc xml:space="preserve"
             filename="gdk/x11/gdksurface-x11.c"
             line="2282">Sets a hint on @surface that taskbars should not
display it. See the EWMH for details.</doc>
        <source-position filename="gdk/x11/gdkx11surface.h" line="108"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="surface" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdksurface-x11.c"
                 line="2284">a native `GdkSurface`</doc>
            <type name="X11Surface" c:type="GdkSurface*"/>
          </instance-parameter>
          <parameter name="skips_taskbar" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdksurface-x11.c"
                 line="2285">%TRUE to skip taskbars</doc>
            <type name="gboolean" c:type="gboolean"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_theme_variant"
              c:identifier="gdk_x11_surface_set_theme_variant">
        <doc xml:space="preserve"
             filename="gdk/x11/gdksurface-x11.c"
             line="3043">GTK applications can request a dark theme variant. In order to
make other applications - namely window managers using GTK for
themeing - aware of this choice, GTK uses this function to
export the requested theme variant as _GTK_THEME_VARIANT property
on toplevel surfaces.

Note that this property is automatically updated by GTK, so this
function should only be used by applications which do not use GTK
to create toplevel surfaces.</doc>
        <source-position filename="gdk/x11/gdkx11surface.h" line="65"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="surface" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdksurface-x11.c"
                 line="3045">a `GdkSurface`</doc>
            <type name="X11Surface" c:type="GdkSurface*"/>
          </instance-parameter>
          <parameter name="variant" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdksurface-x11.c"
                 line="3046">the theme variant to export</doc>
            <type name="utf8" c:type="const char*"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_urgency_hint"
              c:identifier="gdk_x11_surface_set_urgency_hint">
        <doc xml:space="preserve"
             filename="gdk/x11/gdksurface-x11.c"
             line="2334">Sets a hint on @surface that it needs user attention.
See the ICCCM for details.</doc>
        <source-position filename="gdk/x11/gdkx11surface.h" line="114"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="surface" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdksurface-x11.c"
                 line="2336">a native `GdkSurface`</doc>
            <type name="X11Surface" c:type="GdkSurface*"/>
          </instance-parameter>
          <parameter name="urgent" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdksurface-x11.c"
                 line="2337">%TRUE to indicate urgenct attention needed</doc>
            <type name="gboolean" c:type="gboolean"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_user_time"
              c:identifier="gdk_x11_surface_set_user_time">
        <doc xml:space="preserve"
             filename="gdk/x11/gdksurface-x11.c"
             line="2946">The application can use this call to update the _NET_WM_USER_TIME
property on a toplevel surface.  This property stores an Xserver
time which represents the time of the last user input event
received for this surface.  This property may be used by the window
manager to alter the focus, stacking, and/or placement behavior of
surfaces when they are mapped depending on whether the new surface
was created by a user action or is a "pop-up" surface activated by a
timer or some other event.

Note that this property is automatically updated by GDK, so this
function should only be used by applications which handle input
events bypassing GDK.</doc>
        <source-position filename="gdk/x11/gdkx11surface.h" line="58"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="surface" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdksurface-x11.c"
                 line="2948">A toplevel `GdkSurface`</doc>
            <type name="X11Surface" c:type="GdkSurface*"/>
          </instance-parameter>
          <parameter name="timestamp" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdksurface-x11.c"
                 line="2949">An XServer timestamp to which the property should be set</doc>
            <type name="guint32" c:type="guint32"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_utf8_property"
              c:identifier="gdk_x11_surface_set_utf8_property">
        <doc xml:space="preserve"
             filename="gdk/x11/gdksurface-x11.c"
             line="3008">This function modifies or removes an arbitrary X11 window
property of type UTF8_STRING.  If the given @surface is
not a toplevel surface, it is ignored.</doc>
        <source-position filename="gdk/x11/gdkx11surface.h" line="61"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="surface" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdksurface-x11.c"
                 line="3010">a `GdkSurface`</doc>
            <type name="X11Surface" c:type="GdkSurface*"/>
          </instance-parameter>
          <parameter name="name" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdksurface-x11.c"
                 line="3011">Property name, will be interned as an X atom</doc>
            <type name="utf8" c:type="const char*"/>
          </parameter>
          <parameter name="value"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1">
            <doc xml:space="preserve"
                 filename="gdk/x11/gdksurface-x11.c"
                 line="3012">Property value, or %NULL to delete</doc>
            <type name="utf8" c:type="const char*"/>
          </parameter>
        </parameters>
      </method>
    </class>
    <record name="X11SurfaceClass"
            c:type="GdkX11SurfaceClass"
            disguised="1"
            opaque="1"
            glib:is-gtype-struct-for="X11Surface">
      <source-position filename="gdk/x11/gdkx11surface.h" line="50"/>
    </record>
    <function-macro name="X11_APP_LAUNCH_CONTEXT"
                    c:identifier="GDK_X11_APP_LAUNCH_CONTEXT"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11applaunchcontext.h" line="29"/>
      <parameters>
        <parameter name="object">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="X11_APP_LAUNCH_CONTEXT_CLASS"
                    c:identifier="GDK_X11_APP_LAUNCH_CONTEXT_CLASS"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11applaunchcontext.h" line="30"/>
      <parameters>
        <parameter name="klass">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="X11_APP_LAUNCH_CONTEXT_GET_CLASS"
                    c:identifier="GDK_X11_APP_LAUNCH_CONTEXT_GET_CLASS"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11applaunchcontext.h" line="33"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="X11_DEVICE_MANAGER_XI2"
                    c:identifier="GDK_X11_DEVICE_MANAGER_XI2"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11devicemanager-xi2.h" line="25"/>
      <parameters>
        <parameter name="o">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="X11_DEVICE_MANAGER_XI2_CLASS"
                    c:identifier="GDK_X11_DEVICE_MANAGER_XI2_CLASS"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11devicemanager-xi2.h" line="26"/>
      <parameters>
        <parameter name="c">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="X11_DEVICE_MANAGER_XI2_GET_CLASS"
                    c:identifier="GDK_X11_DEVICE_MANAGER_XI2_GET_CLASS"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11devicemanager-xi2.h" line="29"/>
      <parameters>
        <parameter name="o">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="X11_DEVICE_XI2"
                    c:identifier="GDK_X11_DEVICE_XI2"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11device-xi2.h" line="25"/>
      <parameters>
        <parameter name="o">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="X11_DEVICE_XI2_CLASS"
                    c:identifier="GDK_X11_DEVICE_XI2_CLASS"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11device-xi2.h" line="26"/>
      <parameters>
        <parameter name="c">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="X11_DEVICE_XI2_GET_CLASS"
                    c:identifier="GDK_X11_DEVICE_XI2_GET_CLASS"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11device-xi2.h" line="29"/>
      <parameters>
        <parameter name="o">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="X11_DISPLAY"
                    c:identifier="GDK_X11_DISPLAY"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11display.h" line="47"/>
      <parameters>
        <parameter name="object">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="X11_DISPLAY_CLASS"
                    c:identifier="GDK_X11_DISPLAY_CLASS"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11display.h" line="48"/>
      <parameters>
        <parameter name="klass">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="X11_DISPLAY_GET_CLASS"
                    c:identifier="GDK_X11_DISPLAY_GET_CLASS"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11display.h" line="51"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="X11_DRAG"
                    c:identifier="GDK_X11_DRAG"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11dnd.h" line="29"/>
      <parameters>
        <parameter name="object">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="X11_DRAG_CLASS"
                    c:identifier="GDK_X11_DRAG_CLASS"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11dnd.h" line="30"/>
      <parameters>
        <parameter name="klass">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="X11_DRAG_GET_CLASS"
                    c:identifier="GDK_X11_DRAG_GET_CLASS"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11dnd.h" line="33"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="X11_GL_CONTEXT"
                    c:identifier="GDK_X11_GL_CONTEXT"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11glcontext.h" line="32"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="X11_IS_GL_CONTEXT"
                    c:identifier="GDK_X11_IS_GL_CONTEXT"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11glcontext.h" line="33"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="X11_MONITOR"
                    c:identifier="GDK_X11_MONITOR"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11monitor.h" line="33"/>
      <parameters>
        <parameter name="object">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="X11_SCREEN"
                    c:identifier="GDK_X11_SCREEN"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11screen.h" line="39"/>
      <parameters>
        <parameter name="object">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="X11_SCREEN_CLASS"
                    c:identifier="GDK_X11_SCREEN_CLASS"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11screen.h" line="40"/>
      <parameters>
        <parameter name="klass">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="X11_SCREEN_GET_CLASS"
                    c:identifier="GDK_X11_SCREEN_GET_CLASS"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11screen.h" line="43"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="X11_SURFACE"
                    c:identifier="GDK_X11_SURFACE"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11surface.h" line="39"/>
      <parameters>
        <parameter name="object">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="X11_SURFACE_CLASS"
                    c:identifier="GDK_X11_SURFACE_CLASS"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11surface.h" line="40"/>
      <parameters>
        <parameter name="klass">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="X11_SURFACE_GET_CLASS"
                    c:identifier="GDK_X11_SURFACE_GET_CLASS"
                    introspectable="0">
      <source-position filename="gdk/x11/gdkx11surface.h" line="43"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="XID_TO_POINTER"
                    c:identifier="GDK_XID_TO_POINTER"
                    introspectable="0">
      <doc xml:space="preserve"
           filename="gdk/x11/gdkx11utils.h"
           line="38">Converts an XID into a @gpointer. This is useful with data structures
that use pointer arguments such as `GHashTable`. Use GDK_POINTER_TO_XID()
to convert the argument back to an XID.</doc>
      <source-position filename="gdk/x11/gdkx11utils.h" line="46"/>
      <parameters>
        <parameter name="xid">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkx11utils.h"
               line="40">XID to stuff into the pointer</doc>
        </parameter>
      </parameters>
    </function-macro>
    <function name="x11_device_get_id" c:identifier="gdk_x11_device_get_id">
      <doc xml:space="preserve"
           filename="gdk/x11/gdkdevicemanager-x11.c"
           line="88">Returns the device ID as seen by XInput2.</doc>
      <source-position filename="gdk/x11/gdkx11device.h" line="29"/>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkdevicemanager-x11.c"
             line="94">the XInput2 device ID</doc>
        <type name="gint" c:type="int"/>
      </return-value>
      <parameters>
        <parameter name="device" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkdevicemanager-x11.c"
               line="90">a `GdkDevice`</doc>
          <type name="X11DeviceXI2" c:type="GdkDevice*"/>
        </parameter>
      </parameters>
    </function>
    <function name="x11_device_manager_lookup"
              c:identifier="gdk_x11_device_manager_lookup">
      <doc xml:space="preserve"
           filename="gdk/x11/gdkdevicemanager-x11.c"
           line="67">Returns the `GdkDevice` that wraps the given device ID.</doc>
      <source-position filename="gdk/x11/gdkx11devicemanager.h" line="33"/>
      <return-value transfer-ownership="none" nullable="1">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkdevicemanager-x11.c"
             line="74">The
  `GdkDevice` wrapping the device ID, or %NULL if the given ID
  doesn’t currently represent a device.</doc>
        <type name="X11DeviceXI2" c:type="GdkDevice*"/>
      </return-value>
      <parameters>
        <parameter name="device_manager" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkdevicemanager-x11.c"
               line="69">a `GdkDeviceManager`</doc>
          <type name="X11DeviceManagerXI2" c:type="GdkX11DeviceManagerXI2*"/>
        </parameter>
        <parameter name="device_id" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkdevicemanager-x11.c"
               line="70">a device ID, as understood by the XInput2 protocol</doc>
          <type name="gint" c:type="int"/>
        </parameter>
      </parameters>
    </function>
    <function name="x11_free_compound_text"
              c:identifier="gdk_x11_free_compound_text">
      <doc xml:space="preserve"
           filename="gdk/x11/gdkselection-x11.c"
           line="402">Frees the data returned from gdk_x11_display_string_to_compound_text().</doc>
      <source-position filename="gdk/x11/gdkx11selection.h" line="62"/>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="ctext" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkselection-x11.c"
               line="404">The pointer stored in @ctext from a call to
  gdk_x11_display_string_to_compound_text().</doc>
          <type name="guint8" c:type="guchar*"/>
        </parameter>
      </parameters>
    </function>
    <function name="x11_free_text_list" c:identifier="gdk_x11_free_text_list">
      <doc xml:space="preserve"
           filename="gdk/x11/gdkselection-x11.c"
           line="95">Frees the array of strings created by
gdk_x11_display_text_property_to_text_list().</doc>
      <source-position filename="gdk/x11/gdkx11selection.h" line="46"/>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="list" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkselection-x11.c"
               line="97">the value stored in the @list parameter by
  a call to gdk_x11_display_text_property_to_text_list().</doc>
          <type name="utf8" c:type="char**"/>
        </parameter>
      </parameters>
    </function>
    <function name="x11_get_server_time"
              c:identifier="gdk_x11_get_server_time">
      <doc xml:space="preserve"
           filename="gdk/x11/gdksurface-x11.c"
           line="4575">Routine to get the current X server time stamp.</doc>
      <source-position filename="gdk/x11/gdkx11surface.h" line="101"/>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve"
             filename="gdk/x11/gdksurface-x11.c"
             line="4583">the time stamp</doc>
        <type name="guint32" c:type="guint32"/>
      </return-value>
      <parameters>
        <parameter name="surface" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gdk/x11/gdksurface-x11.c"
               line="4577">a `GdkSurface`, used for communication
  with the server. The surface must have `GDK_PROPERTY_CHANGE_MASK` in
  its events mask or a hang will result.</doc>
          <type name="X11Surface" c:type="GdkSurface*"/>
        </parameter>
      </parameters>
    </function>
    <function name="x11_get_xatom_by_name_for_display"
              c:identifier="gdk_x11_get_xatom_by_name_for_display">
      <doc xml:space="preserve"
           filename="gdk/x11/gdkproperty-x11.c"
           line="66">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.</doc>
      <source-position filename="gdk/x11/gdkx11property.h" line="39"/>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkproperty-x11.c"
             line="75">a X atom for a `GdkDisplay`</doc>
        <type name="xlib.Atom" c:type="Atom"/>
      </return-value>
      <parameters>
        <parameter name="display" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkproperty-x11.c"
               line="68">a `GdkDisplay`</doc>
          <type name="X11Display" c:type="GdkDisplay*"/>
        </parameter>
        <parameter name="atom_name" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkproperty-x11.c"
               line="69">a string</doc>
          <type name="utf8" c:type="const char*"/>
        </parameter>
      </parameters>
    </function>
    <function name="x11_get_xatom_name_for_display"
              c:identifier="gdk_x11_get_xatom_name_for_display">
      <doc xml:space="preserve"
           filename="gdk/x11/gdkproperty-x11.c"
           line="136">Returns the name of an X atom for its display. This
function is meant mainly for debugging, so for convenience, unlike
XAtomName() and the result doesn’t need to
be freed.</doc>
      <source-position filename="gdk/x11/gdkx11property.h" line="42"/>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkproperty-x11.c"
             line="146">name of the X atom; this string is owned by GDK,
  so it shouldn’t be modified or freed.</doc>
        <type name="utf8" c:type="const char*"/>
      </return-value>
      <parameters>
        <parameter name="display" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkproperty-x11.c"
               line="138">the `GdkDisplay` where @xatom is defined</doc>
          <type name="X11Display" c:type="GdkDisplay*"/>
        </parameter>
        <parameter name="xatom" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkproperty-x11.c"
               line="139">an X atom</doc>
          <type name="xlib.Atom" c:type="Atom"/>
        </parameter>
      </parameters>
    </function>
    <function name="x11_lookup_xdisplay"
              c:identifier="gdk_x11_lookup_xdisplay">
      <doc xml:space="preserve"
           filename="gdk/x11/gdkdisplay-x11.c"
           line="2002">Find the `GdkDisplay` corresponding to @xdisplay, if any exists.</doc>
      <source-position filename="gdk/x11/gdkx11display.h" line="102"/>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve"
             filename="gdk/x11/gdkdisplay-x11.c"
             line="2008">the `GdkDisplay`, if found, otherwise %NULL.</doc>
        <type name="X11Display" c:type="GdkDisplay*"/>
      </return-value>
      <parameters>
        <parameter name="xdisplay" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkdisplay-x11.c"
               line="2004">a pointer to an X Display</doc>
          <type name="xlib.Display" c:type="Display*"/>
        </parameter>
      </parameters>
    </function>
    <function name="x11_set_sm_client_id"
              c:identifier="gdk_x11_set_sm_client_id">
      <doc xml:space="preserve"
           filename="gdk/x11/gdkdisplay-x11.c"
           line="2714">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</doc>
      <source-position filename="gdk/x11/gdkx11display.h" line="128"/>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="sm_client_id"
                   transfer-ownership="none"
                   nullable="1"
                   allow-none="1">
          <doc xml:space="preserve"
               filename="gdk/x11/gdkdisplay-x11.c"
               line="2716">the client id assigned by the session manager
   when the connection was opened, or %NULL to remove the property.</doc>
          <type name="utf8" c:type="const char*"/>
        </parameter>
      </parameters>
    </function>
  </namespace>
</repository>
