aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-12-15 00:05:05 +0100
committeremersion <contact@emersion.fr>2017-12-15 00:05:05 +0100
commit5584f42c1ef1bbc4bf9f8184ddeeb7ac2d308aed (patch)
treeb07425d8e6d3385e2d467091ec9b2a0e7052023e
parent6b42bfad18f7bcb08ef031c699159d40ff6ac2a0 (diff)
Destroy xwm selection window on destroy
-rw-r--r--xwayland/xwm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xwayland/xwm.c b/xwayland/xwm.c
index 2e859460..6cbe9bda 100644
--- a/xwayland/xwm.c
+++ b/xwayland/xwm.c
@@ -1090,6 +1090,9 @@ void xwm_destroy(struct wlr_xwm *xwm) {
if (!xwm) {
return;
}
+ if (xwm->selection_window) {
+ xcb_destroy_window(xwm->xcb_conn, xwm->selection_window);
+ }
if (xwm->cursor) {
xcb_free_cursor(xwm->xcb_conn, xwm->cursor);
}