view: Make sure we always have a surface around

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
This commit is contained in:
Quentin Glidic 2017-06-03 12:36:14 +02:00
parent e774f7653b
commit 416031e71f
No known key found for this signature in database
GPG Key ID: AC203F96E2C34BB7
1 changed files with 1 additions and 0 deletions

View File

@ -204,6 +204,7 @@ static gboolean rofi_view_repaint ( G_GNUC_UNUSED void * data )
g_debug ( "expose event" );
TICK_N ( "Expose" );
display_surface_commit ( CacheState.edit_surf );
CacheState.edit_surf = display_buffer_pool_get_next_buffer(CacheState.pool);
TICK_N ( "flush" );
CacheState.repaint_source = 0;
}