1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2025-02-10 15:44:41 -05:00

Do an extra log before calling unmap and destroy window

This commit is contained in:
Dave Davenport 2017-03-21 19:59:40 +01:00
parent 606f4e89c5
commit 5c42f7f626

View file

@ -1739,6 +1739,7 @@ void rofi_view_cleanup ()
CacheState.edit_surf = NULL;
}
if ( CacheState.main_window != XCB_WINDOW_NONE ) {
g_log ( LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "Unmapping and free'ing window");
xcb_unmap_window ( xcb->connection, CacheState.main_window );
xcb_free_gc ( xcb->connection, CacheState.gc );
xcb_free_pixmap ( xcb->connection, CacheState.edit_pixmap );
@ -1749,6 +1750,7 @@ void rofi_view_cleanup ()
xcb_free_colormap ( xcb->connection, map );
map = XCB_COLORMAP_NONE;
}
xcb_flush ( xcb->connection );
g_assert ( g_queue_is_empty ( &( CacheState.views ) ) );
}
void rofi_view_workers_initialize ( void )