-
-
Notifications
You must be signed in to change notification settings - Fork 46
/
GdkX11-4.0.gir
1460 lines (1439 loc) · 71.4 KB
/
GdkX11-4.0.gir
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?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 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" version="1.2">
<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="libgtk-4.so.1" c:identifier-prefixes="Gdk" c:symbol-prefixes="gdk">
<function-macro name="DISPLAY_XDISPLAY" c:identifier="GDK_DISPLAY_XDISPLAY" introspectable="0">
<doc xml:space="preserve">Returns the display of a `GdkDisplay`.</doc>
<parameters>
<parameter name="display">
<doc xml:space="preserve">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">
<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">
<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">
<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">
<parameters>
<parameter name="c">
</parameter>
</parameters>
</function-macro>
<function-macro name="IS_X11_DEVICE_XI2" c:identifier="GDK_IS_X11_DEVICE_XI2" introspectable="0">
<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">
<parameters>
<parameter name="c">
</parameter>
</parameters>
</function-macro>
<function-macro name="IS_X11_DISPLAY" c:identifier="GDK_IS_X11_DISPLAY" introspectable="0">
<parameters>
<parameter name="object">
</parameter>
</parameters>
</function-macro>
<function-macro name="IS_X11_DISPLAY_CLASS" c:identifier="GDK_IS_X11_DISPLAY_CLASS" introspectable="0">
<parameters>
<parameter name="klass">
</parameter>
</parameters>
</function-macro>
<function-macro name="IS_X11_DRAG" c:identifier="GDK_IS_X11_DRAG" introspectable="0">
<parameters>
<parameter name="object">
</parameter>
</parameters>
</function-macro>
<function-macro name="IS_X11_DRAG_CLASS" c:identifier="GDK_IS_X11_DRAG_CLASS" introspectable="0">
<parameters>
<parameter name="klass">
</parameter>
</parameters>
</function-macro>
<function-macro name="IS_X11_MONITOR" c:identifier="GDK_IS_X11_MONITOR" introspectable="0">
<parameters>
<parameter name="object">
</parameter>
</parameters>
</function-macro>
<function-macro name="IS_X11_SCREEN" c:identifier="GDK_IS_X11_SCREEN" introspectable="0">
<parameters>
<parameter name="object">
</parameter>
</parameters>
</function-macro>
<function-macro name="IS_X11_SCREEN_CLASS" c:identifier="GDK_IS_X11_SCREEN_CLASS" introspectable="0">
<parameters>
<parameter name="klass">
</parameter>
</parameters>
</function-macro>
<function-macro name="IS_X11_SURFACE" c:identifier="GDK_IS_X11_SURFACE" introspectable="0">
<parameters>
<parameter name="object">
</parameter>
</parameters>
</function-macro>
<function-macro name="IS_X11_SURFACE_CLASS" c:identifier="GDK_IS_X11_SURFACE_CLASS" introspectable="0">
<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">Converts a @gpointer back to an XID that was previously converted
using GDK_XID_TO_POINTER().</doc>
<parameters>
<parameter name="pointer">
<doc xml:space="preserve">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">Returns the display of a `GdkSurface`.</doc>
<parameters>
<parameter name="win">
<doc xml:space="preserve">a `GdkSurface`</doc>
</parameter>
</parameters>
</function-macro>
<function-macro name="SURFACE_XID" c:identifier="GDK_SURFACE_XID" introspectable="0">
<doc xml:space="preserve">Returns the X window belonging to a `GdkSurface`.</doc>
<parameters>
<parameter name="win">
<doc xml:space="preserve">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"/>
<record name="X11AppLaunchContextClass" c:type="GdkX11AppLaunchContextClass" disguised="1" opaque="1" glib:is-gtype-struct-for="X11AppLaunchContext"/>
<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">
<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"/>
<enumeration name="X11DeviceType" c:type="GdkX11DeviceType">
<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">
<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"/>
<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">
<function name="open" c:identifier="gdk_x11_display_open">
<doc xml:space="preserve">Tries to open a new display to the X server given by
@display_name. If opening the display fails, %NULL is
returned.</doc>
<return-value transfer-ownership="full" nullable="1">
<doc xml:space="preserve">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">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">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>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="display" transfer-ownership="none">
<doc xml:space="preserve">a `GdkDisplay`</doc>
<type name="Gdk.Display" c:type="GdkDisplay*"/>
</parameter>
<parameter name="program_class" transfer-ownership="none">
<doc xml:space="preserve">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">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>
<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">a `GdkDisplay`</doc>
<type name="X11Display" c:type="GdkDisplay*"/>
</instance-parameter>
<parameter name="message_type" transfer-ownership="none">
<doc xml:space="preserve">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">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">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>
<return-value transfer-ownership="none">
<doc xml:space="preserve">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">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">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>
<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">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">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>
<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">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">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>
<return-value transfer-ownership="none">
<doc xml:space="preserve">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">a `GdkDisplay`</doc>
<type name="X11Display" c:type="GdkDisplay*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_egl_display" c:identifier="gdk_x11_display_get_egl_display" version="4.4">
<doc xml:space="preserve">Retrieves the EGL display connection object for the given GDK display.
This function returns `NULL` if GDK is using GLX.</doc>
<return-value transfer-ownership="none" nullable="1">
<doc xml:space="preserve">the EGL display object</doc>
<type name="gpointer" c:type="gpointer"/>
</return-value>
<parameters>
<instance-parameter name="display" transfer-ownership="none">
<doc xml:space="preserve">an X11 display</doc>
<type name="X11Display" c:type="GdkDisplay*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_egl_version" c:identifier="gdk_x11_display_get_egl_version" version="4.4">
<doc xml:space="preserve">Retrieves the version of the EGL implementation.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE if EGL is available</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="display" transfer-ownership="none">
<doc xml:space="preserve">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">return location for the EGL 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">return location for the EGL minor version</doc>
<type name="gint" c:type="int*"/>
</parameter>
</parameters>
</method>
<method name="get_glx_version" c:identifier="gdk_x11_display_get_glx_version">
<doc xml:space="preserve">Retrieves the version of the GLX implementation.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%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">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">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">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">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>
<return-value transfer-ownership="none">
<doc xml:space="preserve">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">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">Retrieves the `GdkX11Screen` of the @display.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the `GdkX11Screen`</doc>
<type name="X11Screen" c:type="GdkX11Screen*"/>
</return-value>
<parameters>
<instance-parameter name="display" transfer-ownership="none">
<doc xml:space="preserve">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">Gets the startup notification ID for a display.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">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">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">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>
<return-value transfer-ownership="none">
<doc xml:space="preserve">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">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">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>
<return-value transfer-ownership="none">
<doc xml:space="preserve">an Xlib Cursor.</doc>
<type name="xlib.Cursor" c:type="gulong"/>
</return-value>
<parameters>
<instance-parameter name="display" transfer-ownership="none">
<doc xml:space="preserve">a `GdkDisplay`</doc>
<type name="X11Display" c:type="GdkDisplay*"/>
</instance-parameter>
<parameter name="cursor" transfer-ownership="none">
<doc xml:space="preserve">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">Returns the X display of a `GdkDisplay`.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">an X display</doc>
<type name="xlib.Display" c:type="gpointer"/>
</return-value>
<parameters>
<instance-parameter name="display" transfer-ownership="none">
<doc xml:space="preserve">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">Returns the root X window used by `GdkDisplay`.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">an X Window</doc>
<type name="xlib.Window" c:type="gulong"/>
</return-value>
<parameters>
<instance-parameter name="display" transfer-ownership="none">
<doc xml:space="preserve">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">Returns the X Screen used by `GdkDisplay`.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">an X Screen</doc>
<type name="xlib.Screen" c:type="gpointer"/>
</return-value>
<parameters>
<instance-parameter name="display" transfer-ownership="none">
<doc xml:space="preserve">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">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>
<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">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" deprecated="1" deprecated-version="4.16">
<doc xml:space="preserve">Sets the cursor theme from which the images for cursor
should be taken.
If the windowing system supports it, existing cursors created
with [[email protected]_from_name] are updated to reflect the theme
change. Custom cursors constructed with [[email protected]_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>
<doc-deprecated xml:space="preserve">Use the cursor-related properties of
[GtkSettings](../gtk4/class.Settings.html) to set the cursor theme</doc-deprecated>
<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">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">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">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">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 [[email protected]_startup_id] is sufficient</doc-deprecated>
<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">a `GdkDisplay`</doc>
<type name="X11Display" c:type="GdkDisplay*"/>
</instance-parameter>
<parameter name="startup_id" transfer-ownership="none">
<doc xml:space="preserve">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">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>
<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">the display</doc>
<type name="X11Display" c:type="GdkDisplay*"/>
</instance-parameter>
<parameter name="scale" transfer-ownership="none">
<doc xml:space="preserve">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">Convert a string from the encoding of the current
locale into a form suitable for storing in a window property.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">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">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">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">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">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">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">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">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>
<return-value transfer-ownership="none">
<doc xml:space="preserve">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">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">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">the format of the property</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="text" transfer-ownership="none">
<doc xml:space="preserve">The text data</doc>
<type name="guint8" c:type="const guchar*"/>
</parameter>
<parameter name="length" transfer-ownership="none">
<doc xml:space="preserve">The number of items to transform</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="list" transfer-ownership="none">
<doc xml:space="preserve">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">Ungrab @display after it has been grabbed with
gdk_x11_display_grab().</doc>
<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">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">Converts from UTF-8 to compound text.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%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">a `GdkDisplay`</doc>
<type name="X11Display" c:type="GdkDisplay*"/>
</instance-parameter>
<parameter name="str" transfer-ownership="none">
<doc xml:space="preserve">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">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">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">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">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">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">%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">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"/>
<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"/>
<record name="X11DragClass" c:type="GdkX11DragClass" disguised="1" opaque="1" glib:is-gtype-struct-for="X11Drag"/>
<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"/>
<record name="X11GLContextClass" c:type="GdkX11GLContextClass" disguised="1" opaque="1" glib:is-gtype-struct-for="X11GLContext"/>
<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">
<method name="get_output" c:identifier="gdk_x11_monitor_get_output">
<doc xml:space="preserve">Returns the XID of the Output corresponding to @monitor.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the XID of @monitor</doc>
<type name="xlib.XID" c:type="gulong"/>
</return-value>
<parameters>
<instance-parameter name="monitor" transfer-ownership="none">
<doc xml:space="preserve">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">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 [[email protected]_scale_factor]).</doc>
<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">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">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"/>
<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">
<method name="get_current_desktop" c:identifier="gdk_x11_screen_get_current_desktop">
<doc xml:space="preserve">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>
<return-value transfer-ownership="none">
<doc xml:space="preserve">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">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">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>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the XID of the monitor</doc>
<type name="xlib.XID" c:type="gulong"/>
</return-value>
<parameters>
<instance-parameter name="screen" transfer-ownership="none">
<doc xml:space="preserve">a `GdkX11Screen`</doc>
<type name="X11Screen" c:type="GdkX11Screen*"/>
</instance-parameter>
<parameter name="monitor_num" transfer-ownership="none">
<doc xml:space="preserve">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">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>
<return-value transfer-ownership="none">
<doc xml:space="preserve">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">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">Returns the index of a `GdkX11Screen`.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">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">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">Returns the name of the window manager for @screen.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">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">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">Returns the screen of a `GdkX11Screen`.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">an Xlib Screen*</doc>
<type name="xlib.Screen" c:type="gpointer"/>
</return-value>
<parameters>
<instance-parameter name="screen" transfer-ownership="none">
<doc xml:space="preserve">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">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>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%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">the relevant `GdkX11Screen`.</doc>
<type name="X11Screen" c:type="GdkX11Screen*"/>
</instance-parameter>
<parameter name="property_name" transfer-ownership="none">
<doc xml:space="preserve">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"/>
<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">
<function name="lookup_for_display" c:identifier="gdk_x11_surface_lookup_for_display">
<doc xml:space="preserve">Looks up the `GdkSurface` that wraps the given native window handle.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">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">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">an Xlib Window</doc>
<type name="xlib.Window" c:type="gulong"/>
</parameter>
</parameters>
</function>
<method name="get_desktop" c:identifier="gdk_x11_surface_get_desktop">
<doc xml:space="preserve">Gets the number of the workspace @surface is on.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">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">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">Returns the group this surface belongs to.</doc>
<return-value transfer-ownership="none" nullable="1">
<doc xml:space="preserve">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">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">Returns the X resource (surface) belonging to a `GdkSurface`.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the ID of @drawable’s X resource.</doc>
<type name="xlib.Window" c:type="gulong"/>
</return-value>
<parameters>
<instance-parameter name="surface" transfer-ownership="none">
<doc xml:space="preserve">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">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>
<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">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">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>
<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">a `GdkSurface`</doc>
<type name="X11Surface" c:type="GdkSurface*"/>
</instance-parameter>
<parameter name="desktop" transfer-ownership="none">
<doc xml:space="preserve">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">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