1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

Don't destroy the window, but send close request to window.

This commit is contained in:
Dave Davenport 2016-11-29 16:09:26 +01:00
parent 4f7e9b3811
commit 4889b5f7bc

View file

@ -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;