From 4889b5f7bc495bbbc3368c2611b4e18dd6541ee5 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Tue, 29 Nov 2016 16:09:26 +0100 Subject: [PATCH] Don't destroy the window, but send close request to window. --- source/dialogs/window.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;