Debian Codegraph @

data/org.freedesktop.portal.InputCapture.xml

raw
1 <?xml version="1.0"?>
2 <!--
3 Copyright (C) 2022 Red Hat, Inc.
4
5 SPDX-License-Identifier: LGPL-2.1-or-later
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or (at your option) any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public
18 License along with this library. If not, see <http://www.gnu.org/licenses/>.
19
20 Author: Matthias Clasen <[email protected]>
21 -->
22
23 <node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd">
24 <!--
25 org.freedesktop.portal.InputCapture:
26 @short_description: Portal for permitting input capture
27
28 The InputCapture portal allows capturing input events from connected
29 physical or logical devices. Capturing input has two distinct states:
30 "enabled" where an application has requested that input should be captured
31 once certain conditions are met (but no input events are being delivered
32 yet) and "active", when input events are being delivered to the application.
33 An application can only control the "enabled" state, the compositor decides
34 when to switch into the "active" state - and which devices to capture.
35
36 Once the compositor activates input capturing, events from physical or
37 logical devices are sent directly to the application instead of using
38 those events to update the pointer position on-screen. The compositor
39 is in control of the input capturing and may filter events and/or stop
40 capturing at any time.
41
42 Input capturing is an asynchronous operation using "triggers". An
43 application sets up a number of triggers but it is the compositor who
44 decides when the trigger conditions are met. Currently, the only defined
45 trigger are pointer barriers: horizontal or vertical "lines" on the screen
46 that should trigger when the cursor moves across those lines.
47 See org.freedesktop.portal.InputCapture.SetPointerBarriers().
48
49 There is currently no way for an application to activate immediate input
50 capture.
51
52 The InputCapture portal merely *manages* the logic when input should be
53 captured. The transport of actual input events is delegated to a
54 transport layer, specifically libei. See org.freedesktop.portal.InputCapture.ConnectToEIS().
55
56 This documentation describes version 2 of this interface.
57 -->
58 <interface name="org.freedesktop.portal.InputCapture">
59 <!--
60 CreateSession:
61 @parent_window: Identifier for the application window, see :doc:`window-identifiers`
62 @options: Vardict with optional further information
63 @handle: Object path for the :ref:`org.freedesktop.portal.Request` object representing this call
64
65 This method was deprecated in version 2 of this interface, see
66 CreateSession2 instead.
67
68 Create an input capture session. A successfully created session can at
69 any time be closed using :ref:`org.freedesktop.portal.Session.Close`, or may
70 at any time be closed by the portal implementation, which will be
71 signalled via :ref:`org.freedesktop.portal.Session::Closed`.
72
73 Supported keys in the @options vardict include:
74
75 * ``handle_token`` (``s``)
76
77 A string that will be used as the last element of the @handle. Must be a valid
78 object path element. See the :ref:`org.freedesktop.portal.Request` documentation for
79 more information about the @handle.
80
81 * ``session_handle_token`` (``s``)
82
83 A string that will be used as the last element of the session handle. Must be a valid
84 object path element. See the :ref:`org.freedesktop.portal.Session` documentation for
85 more information about the session handle.
86
87 * ``capabilities`` (``u``)
88
89 Bitmask of requested capabilities, see the SupportedCapabilities property.
90 This value is required and must not be zero.
91
92 The following results get returned via the :ref:`org.freedesktop.portal.Request::Response` signal:
93
94 * ``session_handle`` (``o``)
95
96 The session handle. An object path for the
97 :ref:`org.freedesktop.portal.Session` object representing the created
98 session.
99
100 * ``capabilities`` (``u``)
101
102 The capabilities available to this session. This is always a
103 subset of the requested capabilities.
104 See the SupportedCapabilities property for details. Note that
105 while a capability may be available to a session, there is no
106 guarantee a device with that capability is currently available
107 or if one does become available that it will trigger input capture.
108
109 It is best to view this set as a negative confirmation - a
110 capability that was requested but is missing is an indication that
111 this application may not capture events of that capability.
112 -->
113 <method name="CreateSession">
114 <annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
115 <arg type="s" name="parent_window" direction="in"/>
116 <annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/>
117 <arg type="a{sv}" name="options" direction="in"/>
118 <arg type="o" name="handle" direction="out"/>
119 </method>
120
121 <!--
122 CreateSession2:
123 @options: Vardict with optional further information
124 @session_handle: Object path for the session.
125
126 Create an input capture session. A successfully created session can at
127 any time be closed using :ref:`org.freedesktop.portal.Session.Close`, or may
128 at any time be closed by the portal implementation, which will be
129 signalled via :ref:`org.freedesktop.portal.Session::Closed`.
130
131 The session must be started with :ref:`org.freedesktop.portal.InputCapture.Start`
132 before using methods in this interface which take a session.
133
134 To capture clipboard content, you can call
135 :ref:`org.freedesktop.portal.Clipboard.RequestClipboard`. When clipboard
136 access has been granted (see `clipboard_enabled` in
137 :ref:`org.freedesktop.portal.InputCapture.Start`), the clipboard may be
138 accessed, but only when the session is active. See
139 :ref:`org.freedesktop.portal.Clipboard` for more information on the
140 clipboard integration.
141
142 Supported keys in the @options vardict include:
143
144 * ``session_handle_token`` (``s``)
145
146 A string that will be used as the last element of the session handle. Must be a valid
147 object path element. See the :ref:`org.freedesktop.portal.Session` documentation for
148 more information about the session handle.
149
150 Supported keys in the @results vardict may include:
151
152 * ``session_handle`` (``o``)
153
154 The session handle. An object path for the
155 :ref:`org.freedesktop.portal.Session` object representing the created
156 session. Required.
157
158 This method was added in version 2 of this interface.
159 -->
160 <method name="CreateSession2">
161 <annotation name="org.qtproject.QtDBus.QtTypeName.In0" value="QVariantMap"/>
162 <arg type="a{sv}" name="options" direction="in"/>
163 <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QVariantMap"/>
164 <arg type="a{sv}" name="results" direction="out"/>
165 </method>
166
167 <!--
168 Start:
169 @session_handle: Object path for the :ref:`org.freedesktop.portal.Session` object
170 @parent_window: Identifier for the application window, see :doc:`window-identifiers`
171 @options: Vardict with optional further information
172 @handle: Object path for the :ref:org.freedesktop.portal.Request object representing this call
173
174 Start the input capture session. This will typically result in the portal
175 presenting a dialog letting the user decide whether they want to allow the
176 input of the session to be captured, and what capabilities to support.
177
178 This method may only be called once on a session previously created with CreateSession2.
179 Sessions created by the deprecated CreateSession are immediately started.
180
181 Supported keys in the @options vardict include:
182
183 * ``handle_token`` (``s``)
184
185 A string that will be used as the last element of the @handle. Must be a valid
186 object path element. See the :ref:`org.freedesktop.portal.Request` documentation for
187 more information about the @handle.
188
189 * ``capabilities`` (``u``)
190
191 Bitmask of requested capabilities, see the SupportedCapabilities property.
192 This value is required and must not be zero.
193
194 * ``restore_token`` (``s``)
195
196 The token to restore a previous session.
197
198 If the stored session cannot be restored, this value is ignored
199 and the user will be prompted normally. This may happen when, for
200 example, the session contains capabilities that are not available
201 anymore, or when the stored permissions are withdrawn.
202
203 The restore token is invalidated after using it once. To restore
204 the same session again, use the new restore token sent in response
205 to starting this session.
206
207 This option was added in version 2 of this interface.
208
209 * ``persist_mode`` (``u``)
210
211 How this session should persist. Default is 0. Accepted values are:
212
213 - ``0``: Do not persist (default)
214 - ``1``: Permissions persist as long as the application is running
215 - ``2``: Permissions persist until explicitly revoked
216
217 If the permission for the session to persist is granted, a restore token will
218 be returned via the :ref:`org.freedesktop.portal.Request::Response` signal of the
219 start method used to start the session.
220
221 This option was added in version 2 of this interface.
222
223 The following results get returned via the :ref:`org.freedesktop.portal.Request::Response` signal:
224
225 * ``capabilities`` (``u``)
226
227 The capabilities available to this session. This is always a
228 subset of the requested capabilities.
229 See the SupportedCapabilities property for details. Note that
230 while a capability may be available to a session, there is no
231 guarantee a device with that capability is currently available
232 or if one does become available that it will trigger input capture.
233
234 It is best to view this set as a negative confirmation - a
235 capability that was requested but is missing is an indication that
236 this application may not capture events of that capability.
237
238 * ``clipboard_enabled`` (``b``)
239
240 A boolean for whether the clipboard was enabled ('true') or not ('false').
241 See the :ref:`org.freedesktop.portal.Clipboard` documentation for more
242 information.
243
244 * ``restore_token`` (``s``)
245
246 The restore token. This token is a single use token that can later
247 be used to restore a session. See
248 :ref:`org.freedesktop.portal.RemoteDesktop.SelectDevices` for details.
249
250 This response option was added in version 2 of this interface.
251
252 This method was added in version 2 of this interface.
253 -->
254 <method name="Start">
255 <arg type="o" name="session_handle" direction="in"/>
256 <arg type="s" name="parent_window" direction="in"/>
257 <annotation name="org.qtproject.QtDBus.QtTypeName.In2" value="QVariantMap"/>
258 <arg type="a{sv}" name="options" direction="in"/>
259 <arg type="o" name="handle" direction="out"/>
260 </method>
261
262 <!--
263 GetZones:
264 @session_handle: Object path for the :ref:`org.freedesktop.portal.Session` object
265 @options: Vardict with optional further information
266 @handle: Object path for the :ref:`org.freedesktop.portal.Request` object representing this call
267
268 Retrieve the set of currently available input zones for this session.
269 The zones may not be continuous and may be a logical representation
270 of the physical screens (e.g. a 4k screen may be represented as
271 low-resolution screen instead). A set of zones is identified by a unique
272 zone_set ID.
273
274 The name "Zone" was chosen to provide distinction with the libei
275 "Region".
276
277 If the zones change (e.g. a monitor is unplugged), the
278 #org.freedesktop.portal.InputCapture::ZonesChanged signal is emitted
279 and the application should re-request the current zones to update its
280 internal state.
281
282 Note that zones are session-specific, there is no guarantee that two
283 applications see the same screen zones. An empty zone list implies
284 that no pointer barriers can be set.
285
286 Whenever the application calls GetZones, the current
287 zone_set ID is returned that references the current set of zones. To
288 establish a pointer barrier, the application must pass this ID to
289 org.freedesktop.portal.InputCapture.SetPointerBarriers(). A mismatch of
290 zone_set IDs implies the application is not using the current zone set and
291 pointer barriers will fail.
292
293 The zone_set ID increases by an unspecified amount with each change to
294 the set of zones. Applications must be able to handle the zone_set ID
295 wrapping around. Implementations of this portal must to increase
296 the zone_set ID by a sensible amount to allow for
297 wrapping detection.
298
299 The following results get returned via the :ref:`org.freedesktop.portal.Request::Response` signal:
300
301 * ``zones`` (``a(uuii)``)
302
303 An array of regions, each specifying that zone's width, height,
304 x/y offset.
305
306 * ``zone_set`` (``u``)
307
308 A unique ID to be used in the
309 org.freedesktop.portal.InputCapture.SetPointerBarriers() method to refer to
310 this set of zones. This id increases by an unspecified
311 amount whenever the zones change and pointer barriers can only be set up
312 if the zone_set matches the most recent returned zone_set.
313 -->
314 <method name="GetZones">
315 <arg type="o" name="session_handle" direction="in"/>
316 <annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/>
317 <arg type="a{sv}" name="options" direction="in"/>
318 <arg type="o" name="handle" direction="out"/>
319 </method>
320
321 <!--
322 SetPointerBarriers:
323 @session_handle: Object path for the :ref:`org.freedesktop.portal.Session` object
324 @options: Vardict with optional further information
325 @barriers: An array of vardicts, each specifying one barrier
326 @zone_set: A unique zone_set ID referring to the zone set
327 @handle: Object path for the :ref:`org.freedesktop.portal.Request` object representing this call
328
329 Set up zero or more pointer barriers. Pointer barriers are horizontal
330 or vertical "lines" that should trigger the start of input capture when the cursor moves
331 across the pointer barrier. After a successful
332 org.freedesktop.portal.InputCapture.Enable() call and when the
333 compositor has deemed the pointer barrier to be crossed, input events
334 (from compositor-determined input devices) are sent to the application
335 via the transport layer.
336
337 Pointer barriers are situated on the top (for horizontal barriers) or left
338 (for vertical barriers) edge of their respective pixels and their width or height
339 is inclusive each pixel's width or height. In other words, a barrier spanning
340 x1=0, x2=1 is exactly two pixels wide. A pointer barrier must be situated at the
341 outside boundary of the union of all zones.
342 A pointer barrier must be fully contained within one zone.
343
344 For example, consider two zones of size 1920x1080 with offsets
345 0,0 and 1920,0, respectively. (i.e. a left-right dual-monitor setup).
346 The following pointer barriers are permitted:
347
348 - top edge of left screen: `x1=0, y1=0, x2=1919, y1=0`
349 - bottom edge of left screen: `x1=0, y1=1080, x2=1919, y1=1080`
350 - top edge of right screen: `x1=1920, y1=0, x2=3839, y1=0`
351 - bottom edge of right screen: `x1=1920, y1=1080, x2=3839, y1=1080`
352 - left edge of left screen: `x1=0, y1=0, x2=0, y1=1079`
353 - right edge of right screen: `x1=3840, y1=0, x2=3840, y1=1079`
354
355 A pointer barrier is considered triggered when the pointer would
356 logically move off that zone, even if the actual cursor movement is
357 clipped to the zone.
358
359 A zero-sized array of pointer barriers removes all existing pointer barriers
360 for this session. Setting pointer barriers immediately suspends the
361 current session and the application must call org.freedesktop.portal.InputCapture.Enable()
362 after this method.
363
364 The @zone_set must be equivalent to the last returned zone_set of the
365 org.freedesktop.portal.InputCapture.GetZones() method. A mismatch of ids
366 implies the application is not using the current zone set and
367 pointer barriers will fail.
368
369 Supported keys in the @options vardict include:
370
371 * ``handle_token`` (``s``)
372
373 A string that will be used as the last element of the @handle. Must be a valid
374 object path element. See the :ref:`org.freedesktop.portal.Request` documentation for
375 more information about the @handle.
376
377 Supported keys in the @barriers vardicts include:
378
379 * ``barrier_id`` (``u``)
380
381 The non-zero id of this barrier. This id is used in the
382 #org.freedesktop.portal.InputCapture::Activated signal to inform
383 which barrier triggered input capture.
384
385 * ``position`` (``(iiii)``)
386
387 The x1/y1 x2/y2 position of the pointer barrier. A horizontal
388 pointer barrier must have y1 == y2, a vertical pointer barrier
389 must have x1 == x2. Diagonal pointer barriers are not supported.
390
391 The following results get returned via the :ref:`org.freedesktop.portal.Request::Response` signal:
392
393 * ``failed_barriers`` (``au``)
394
395 An array of barrier_ids of pointer barriers that have been denied. The
396 id matches the barrier_id of the entries in the @barriers argument.
397 -->
398 <method name="SetPointerBarriers">
399 <arg type="o" name="session_handle" direction="in"/>
400 <annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/>
401 <arg type="a{sv}" name="options" direction="in"/>
402 <annotation name="org.qtproject.QtDBus.QtTypeName.In2" value="QList&lt;QVariantMap&gt;"/>
403 <arg type="aa{sv}" name="barriers" direction="in"/>
404 <arg type="u" name="zone_set" direction="in"/>
405 <arg type="o" name="handle" direction="out"/>
406 </method>
407
408 <!--
409 Enable:
410 @session_handle: Object path for the :ref:`org.freedesktop.portal.Session` object
411 @options: Vardict with optional further information
412
413 Enable input capturing. This does not immediately trigger capture, it
414 merely enables the capturing to be triggered at some future point
415 (e.g. by the cursor moving across a barrier). If and when that happens,
416 the #org.freedesktop.portal.InputCapture::Activated signal is emitted.
417 -->
418 <method name="Enable">
419 <arg type="o" name="session_handle" direction="in"/>
420 <annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/>
421 <arg type="a{sv}" name="options" direction="in"/>
422 </method>
423
424 <!--
425 Disable:
426 @session_handle: Object path for the :ref:`org.freedesktop.portal.Session` object
427 @options: Vardict with optional further information
428
429 Disable input capturing. No
430 #org.freedesktop.portal.InputCapture::Disabled signal will be emitted.
431
432 If input capturing is currently ongoing, no
433 #org.freedesktop.portal.InputCapture::Deactivated signal will be
434 emitted.
435
436 Due to the asynchronous nature of this protocol,
437 #org.freedesktop.portal.InputCapture::Deactivated
438 and/or #org.freedesktop.portal.InputCapture::Deactivated signals may
439 nevertheless be received by the application after a call to
440 org.freedesktop.portal.InputCapture.Enable().
441
442 Input events will not be captured until a subsequent
443 org.freedesktop.portal.InputCapture.Enable() call.
444 -->
445 <method name="Disable">
446 <arg type="o" name="session_handle" direction="in"/>
447 <annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/>
448 <arg type="a{sv}" name="options" direction="in"/>
449 </method>
450
451 <!--
452 Release:
453 @session_handle: Object path for the :ref:`org.freedesktop.portal.Session` object
454 @options: Vardict with optional further information
455
456 Release any ongoing input capture. No
457 #org.freedesktop.portal.InputCapture::Deactivated signal will be emitted.
458
459 Due to the asynchronous nature of this protocol, a
460 #org.freedesktop.portal.InputCapture::Deactivated
461 signal may
462 nevertheless be received by the application after a call to
463 org.freedesktop.portal.InputCapture.Release().
464
465 The activation_id provided in the @options vardict specifies which
466 currently ongoing input capture should be terminated. The asynchronous
467 nature of this portal allows for an input capture to be Deactivated and
468 a new input capture to be Activated before the client requests the
469 Release for the previous input capture.
470
471 A compositor should ignore a
472 org.freedesktop.portal.InputCapture.Release() request for a no longer active
473 activation_id.
474
475 Supported keys in the @options vardict include:
476
477 * ``activation_id`` (``u``)
478
479 The same activation_id number as in the
480 #org.freedesktop.portal.InputCapture::Activated signal.
481
482 * ``cursor_position`` (``(dd)``)
483
484 The suggested cursor position within the Zones available in
485 this session.
486
487 This is a suggestion to the compositor to place the cursor in
488 the correct position to allow for fluent movement between virtual
489 screens. The compositor is not required to honor this suggestion.
490 -->
491 <method name="Release">
492 <arg type="o" name="session_handle" direction="in"/>
493 <annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/>
494 <arg type="a{sv}" name="options" direction="in"/>
495 </method>
496
497 <!--
498 ConnectToEIS:
499 @session_handle: Object path for the :ref:`org.freedesktop.portal.Session` object
500 @options: Vardict with optional further information
501 @fd: A file descriptor to an active EIS implementation that can be passed to a passive libei context
502
503 Set up the connection to an active EIS implementation. Once input capturing starts,
504 input events are sent via the EI protocol between the compositor and the application.
505 This call must be invoked before org.freedesktop.portal.InputCapture.Enable().
506
507 A session only needs to set this up once, the EIS implementation is not affected by
508 calls to org.freedesktop.portal.InputCapture.Disable() and org.freedesktop.portal.InputCapture.Enable() -
509 the same connection can be re-used until the session is closed.
510 -->
511 <method name="ConnectToEIS">
512 <annotation name="org.gtk.GDBus.C.Name" value="connect_to_eis"/>
513 <annotation name="org.gtk.GDBus.C.UnixFD" value="true"/>
514 <arg type="o" name="session_handle" direction="in"/>
515 <annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/>
516 <arg type="a{sv}" name="options" direction="in"/>
517 <arg type="h" name="fd" direction="out"/>
518 </method>
519
520 <!--
521 Disabled:
522 @session_handle: Object path for the :ref:`org.freedesktop.portal.Session` object
523 @options: Vardict with optional further information
524
525 The Disabled signal is emitted when the application will no longer
526 receive captured input. If input capturing is currently ongoing, the
527 #org.freedesktop.portal.InputCapture::Deactivated signal is emitted
528 before this signal.
529
530 Applications must call org.freedesktop.portal.InputCapture.Enable() to
531 request future input capturing for this session.
532 -->
533 <signal name="Disabled">
534 <arg type="o" name="session_handle" direction="out"/>
535 <annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="QVariantMap"/>
536 <arg type="a{sv}" name="options" direction="out"/>
537 </signal>
538
539 <!--
540 Activated:
541 @session_handle: Object path for the :ref:`org.freedesktop.portal.Session` object
542 @options: Vardict with optional further information
543
544 The Activated signal is emitted when input capture starts and input events
545 are about to be sent to the application.
546
547 This signal is only emitted after a prior call
548 to org.freedesktop.portal.InputCapture.Enable().
549
550 Supported keys in the @options vardict include:
551
552 * ``activation_id`` (``u``)
553
554 A number that can be used to synchronize with the
555 transport-layer. This number has no intrinsic meaning but
556 is guaranteed to increase by an unspecified amount on each call.
557
558 In particular: if the compositor sends a activation_id of N as
559 part of this request it will also set the sequence in EIS'
560 start_emulating event the same value N on the EIS connection
561 before the first event from a device is sent.
562 This allows an application to have a synchronization point and
563 attribute an event sequence to the portal interaction.
564
565 Applications must be able to handle the activation_id number
566 wrapping around. Implementations of this portal must increase
567 the activation_id number by a sensible amount to allow for
568 wrapping detection.
569
570 * ``cursor_position`` (``(dd)``)
571
572 The current cursor position in the same coordinate space as
573 the Zones. Note that this position is usually outside the Zones
574 available to this session as all PointerBarriers are at the edge
575 of their respective Zones.
576
577 For example, a fast movement against a barrier on the right edge
578 of a screen may logically put the cursor dozens of pixels into
579 the (non-existing) screen on the other side of the barrier.
580 It is the application's responsibility to calculate and adjust the
581 cursor position as necessary.
582
583 * ``barrier_id`` (``u``)
584
585 The barrier id of the barrier that triggered. If the value is
586 nonzero, it matches the barrier id as specified in
587 org.freedesktop.portal.InputCapture.SetPointerBarriers().
588
589 If the id is zero, the pointer barrier could not be determined.
590 If the id is missing, the input capture was not triggered by a
591 pointer barrier.
592
593 Where more than one pointer barrier are triggered by the same
594 movement it is up to the compositor to choose one barrier (or use
595 a barrier id of zero).
596 -->
597 <signal name="Activated">
598 <arg type="o" name="session_handle" direction="out"/>
599 <annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="QVariantMap"/>
600 <arg type="a{sv}" name="options" direction="out"/>
601 </signal>
602
603 <!--
604 Deactivated:
605 @session_handle: Object path for the :ref:`org.freedesktop.portal.Session` object
606 @options: Vardict with optional further information
607
608 The Deactivated signal is emitted when input capture stopped and input events
609 are no longer sent to the application. To prevent future input
610 capture, an application must call org.freedesktop.portal.InputCapture.Disable().
611
612 Supported keys in the @options vardict include:
613
614 * ``activation_id`` (``u``)
615
616 The same activation_id number as in the corresponding
617 #org.freedesktop.portal.InputCapture::Activated signal.
618 -->
619 <signal name="Deactivated">
620 <arg type="o" name="session_handle" direction="out"/>
621 <annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="QVariantMap"/>
622 <arg type="a{sv}" name="options" direction="out"/>
623 </signal>
624
625 <!--
626 ZonesChanged:
627 @session_handle: Object path for the :ref:`org.freedesktop.portal.Session` object
628 @options: Vardict with optional further information
629
630 The ZonesChanged signal is emitted when the set of zones
631 available **to this session** change. An application should immediately
632 call org.freedesktop.portal.InputCapture.GetZones() to update its state
633 of the zones followed by
634 org.freedesktop.portal.InputCapture.SetPointerBarriers() to re-establish
635 the pointer barriers.
636
637 The ZonesChanged signal includes the zone_set ID of the set of zones
638 invalidated, see #org.freedesktop.portal.InputCapture.GetZones().
639 Due to the asynchronous nature of this protocol, the zone_set ID may
640 identify a set of zones that the application has never (or not yet) seen.
641 Applications must be able to handle unknown zone_set IDs. In particular,
642 because the zone_set ID is guaranteed to increment, an application holding
643 a zone_set ID higher than the ID in this signal can usually simply
644 discard the signal.
645
646 Supported keys in the @options vardict include:
647
648 * ``zone_set`` (``u``)
649
650 The zone_set ID of the invalidated zone set as described in
651 org.freedesktop.portal.InputCapture.GetZones()
652 -->
653 <signal name="ZonesChanged">
654 <arg type="o" name="session_handle" direction="out"/>
655 <annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="QVariantMap"/>
656 <arg type="a{sv}" name="options" direction="out"/>
657 </signal>
658
659 <!--
660 SupportedCapabilities:
661
662 A bitmask of supported capabilities. This list is constant, it is not the list of
663 capabilities currently available but rather which capabilies are
664 implemented by the portal.
665
666 Applications must ignore unknown capabilities.
667
668 Currently defined types are:
669
670 - ``1``: KEYBOARD
671 - ``2``: POINTER
672 - ``4``: TOUCHSCREEN
673 -->
674 <property name="SupportedCapabilities" type="u" access="read"/>
675 <property name="version" type="u" access="read"/>
676 </interface>
677 </node>