xcb: Restore focus in more places

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
This commit is contained in:
Quentin Glidic 2020-12-20 14:11:56 +01:00
parent 11b677b521
commit 2e18133667
No known key found for this signature in database
GPG Key ID: AC203F96E2C34BB7
1 changed files with 1 additions and 0 deletions

View File

@ -1984,6 +1984,7 @@ void rofi_view_cleanup ()
if ( CacheState.main_window != XCB_WINDOW_NONE ) {
g_debug ( "Unmapping and free'ing window" );
xcb_unmap_window ( xcb->connection, CacheState.main_window );
rofi_xcb_revert_input_focus();
xcb_free_gc ( xcb->connection, CacheState.gc );
xcb_free_pixmap ( xcb->connection, CacheState.edit_pixmap );
xcb_destroy_window ( xcb->connection, CacheState.main_window );