aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-04-08 16:30:45 -0400
committerGitHub <noreply@github.com>2018-04-08 16:30:45 -0400
commit7efd9885b65d0115e30f2253a30f165c12a07d2a (patch)
tree46d130e9382680c05f8bf9758c242f611d723856 /include
parent902d859c674769d93efafd595419432c0a1dd267 (diff)
parent17d0440b757a504f72028d2a12724da33277a6f7 (diff)
Merge pull request #853 from emersion/xwayland-client-timeout
Add wlr_xwayland_surface_ping
Diffstat (limited to 'include')
-rw-r--r--include/wlr/xwayland.h8
-rw-r--r--include/xwayland/xwm.h2
2 files changed, 9 insertions, 1 deletions
diff --git a/include/wlr/xwayland.h b/include/wlr/xwayland.h
index 66622de3..1fad54d1 100644
--- a/include/wlr/xwayland.h
+++ b/include/wlr/xwayland.h
@@ -111,6 +111,9 @@ struct wlr_xwayland_surface {
uint32_t hints_urgency;
struct wlr_xwayland_surface_size_hints *size_hints;
+ bool pinging;
+ struct wl_event_source *ping_timer;
+
// _NET_WM_STATE
bool fullscreen;
bool maximized_vert;
@@ -133,6 +136,7 @@ struct wlr_xwayland_surface {
struct wl_signal set_parent;
struct wl_signal set_pid;
struct wl_signal set_window_type;
+ struct wl_signal ping_timeout;
} events;
struct wl_listener surface_destroy;
@@ -188,6 +192,8 @@ bool wlr_xwayland_surface_is_unmanaged(
bool wlr_surface_is_xwayland_surface(struct wlr_surface *surface);
struct wlr_xwayland_surface *wlr_xwayland_surface_from_wlr_surface(
- struct wlr_surface *surface);
+ struct wlr_surface *surface);
+
+void wlr_xwayland_surface_ping(struct wlr_xwayland_surface *surface);
#endif
diff --git a/include/xwayland/xwm.h b/include/xwayland/xwm.h
index c733c13c..82bf726c 100644
--- a/include/xwayland/xwm.h
+++ b/include/xwayland/xwm.h
@@ -43,6 +43,7 @@ enum atom_name {
_NET_WM_STATE_FULLSCREEN,
_NET_WM_STATE_MAXIMIZED_VERT,
_NET_WM_STATE_MAXIMIZED_HORZ,
+ _NET_WM_PING,
WM_STATE,
CLIPBOARD,
PRIMARY,
@@ -90,6 +91,7 @@ struct wlr_xwm {
struct wlr_xwayland *xwayland;
struct wl_event_source *event_source;
struct wlr_seat *seat;
+ uint32_t ping_timeout;
xcb_atom_t atoms[ATOM_LAST];
xcb_connection_t *xcb_conn;