1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2025-01-27 15:25:24 -05:00

Do not release keyboard when switching between switchers.

This commit is contained in:
QC 2015-03-27 20:33:25 +01:00
parent b21368c005
commit f5c8c3a55d

View file

@ -1263,7 +1263,6 @@ MenuReturn menu ( char **lines, unsigned int num_lines, char **input, char *prom
} }
} }
release_keyboard ( display );
// Update input string. // Update input string.
g_free ( *input ); g_free ( *input );
*input = g_strdup ( state.text->text ); *input = g_strdup ( state.text->text );
@ -1522,6 +1521,7 @@ static void cleanup ()
// Cleanup // Cleanup
if ( display != NULL ) { if ( display != NULL ) {
if ( main_window != None ) { if ( main_window != None ) {
release_keyboard ( display );
XFreeGC ( display, gc ); XFreeGC ( display, gc );
XDestroyWindow ( display, main_window ); XDestroyWindow ( display, main_window );
XCloseDisplay ( display ); XCloseDisplay ( display );