1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-11 13:50:48 -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.
g_free ( *input );
*input = g_strdup ( state.text->text );
@ -1522,6 +1521,7 @@ static void cleanup ()
// Cleanup
if ( display != NULL ) {
if ( main_window != None ) {
release_keyboard ( display );
XFreeGC ( display, gc );
XDestroyWindow ( display, main_window );
XCloseDisplay ( display );