summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-11-29 16:09:26 +0100
committerDave Davenport <qball@gmpclient.org>2016-11-29 16:09:26 +0100
commit4889b5f7bc495bbbc3368c2611b4e18dd6541ee5 (patch)
tree8805dba7b5a06647b1eb03040c8f3758a4f4158c
parent4f7e9b3811cdd266ea841908f315fc59c9cd17a5 (diff)
Don't destroy the window, but send close request to window.
-rw-r--r--source/dialogs/window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/dialogs/window.c b/source/dialogs/window.c
index 375f79d2..5b2a7a79 100644
--- a/source/dialogs/window.c
+++ b/source/dialogs/window.c
@@ -593,6 +593,7 @@ static ModeMode window_mode_result ( Mode *sw, int mretv, G_GNUC_UNUSED char **i
if ( wmdesktop != current_desktop ) {
xcb_ewmh_request_change_current_desktop ( &xcb->ewmh,
xcb->screen_nbr,
+
wmdesktop,
XCB_CURRENT_TIME );
}
@@ -605,7 +606,7 @@ static ModeMode window_mode_result ( Mode *sw, int mretv, G_GNUC_UNUSED char **i
}
}
else if ( ( mretv & ( MENU_ENTRY_DELETE ) ) == MENU_ENTRY_DELETE ) {
- xcb_destroy_window ( xcb->connection, rmpd->ids->array[selected_line] );
+ xcb_ewmh_request_close_window ( &(xcb->ewmh), xcb->screen_nbr, rmpd->ids->array[selected_line], XCB_CURRENT_TIME, XCB_EWMH_CLIENT_SOURCE_TYPE_OTHER);
xcb_flush ( xcb->connection );
}
return retv;