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
1 changed files with 1 additions and 1 deletions

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 );