Fix issue: #347.

This commit is contained in:
Dave Davenport 2016-02-23 21:14:15 +01:00
parent 319524c7c5
commit 3b58c3a26a
3 changed files with 15 additions and 14 deletions

View File

@ -537,6 +537,7 @@ static ModeMode window_mode_result ( Mode *sw, int mretv, G_GNUC_UNUSED char **i
window_send_message ( display, root, rmpd->ids->array[selected_line], netatoms[_NET_ACTIVE_WINDOW], 2, // 2 = pager
SubstructureNotifyMask | SubstructureRedirectMask, 0 );
XFlush ( display );
}
}
return retv;

View File

@ -252,9 +252,6 @@ void process_result ( RofiViewState *state )
}
// Cleanup
g_free ( input );
for ( unsigned int i = 0; i < num_modi; i++ ) {
mode_destroy ( modi[i] );
}
}
}
void process_result_error ( RofiViewState *state )
@ -356,6 +353,9 @@ static int grab_global_keybindings ()
*/
static void cleanup ()
{
for ( unsigned int i = 0; i < num_modi; i++ ) {
mode_destroy ( modi[i] );
}
rofi_view_workers_finalize ();
if ( main_loop != NULL ) {
if ( main_loop_source ) {