Interface XdgWmBaseEventsV4
- All Superinterfaces:
XdgWmBaseEvents
,XdgWmBaseEventsV2
,XdgWmBaseEventsV3
- All Known Subinterfaces:
XdgWmBaseEventsV5
,XdgWmBaseEventsV6
The xdg_wm_base interface is exposed as a global object enabling clients to turn their wl_surfaces into windows in a desktop environment. It defines the basic functionality needed for clients and the compositor to create windows that can be dragged, resized, maximized, etc, as well as creating transient windows such as popup menus.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
ping
(XdgWmBaseProxy emitter, int serial) check if the client is alive
-
Field Details
-
VERSION
static final int VERSION- See Also:
-
-
Method Details
-
ping
check if the client is aliveThe ping event asks the client if it's still alive. Pass the serial specified in the event back to the compositor by sending a "pong" request back with the specified serial. See xdg_wm_base.pong.
Compositors can use this to determine if the client is still alive. It's unspecified what will happen if the client doesn't respond to the ping request, or in what timeframe. Clients should try to respond in a reasonable amount of time. The “unresponsive” error is provided for compositors that wish to disconnect unresponsive clients.
A compositor is free to ping in any way it wants, but a client must always respond to any xdg_wm_base object it created.
- Specified by:
ping
in interfaceXdgWmBaseEvents
- Specified by:
ping
in interfaceXdgWmBaseEventsV2
- Specified by:
ping
in interfaceXdgWmBaseEventsV3
- Parameters:
emitter
- The protocol object that emitted the event.serial
- pass this to the pong request
-