Play with dmenu black screen

This commit is contained in:
Dave Davenport 2016-01-27 23:28:14 +01:00
parent eab4e1438f
commit afc056ecc5
2 changed files with 6 additions and 1 deletions

View File

@ -399,6 +399,11 @@ int dmenu_switcher_dialog ( void )
}
MenuState *state = menu ( &dmenu_mode, input, pd->prompt, pd->message, menu_flags );
while ( XPending (display) ){
XEvent ev;
XNextEvent ( display, &ev );
menu_state_itterrate ( state, &ev );
}
do {
menu_state_restart ( state );
menu_state_set_selected_line ( state, pd->selected_line );

View File

@ -18,7 +18,7 @@ static gboolean x11_event_source_prepare ( GSource * base, gint * timeout )
{
X11EventSource *xs = (X11EventSource *) base;
*timeout = -1;
return XPending ( xs->display ) || g_source_query_unix_fd ( base, xs->fd_x11 );
return /*XPending ( xs->display ) || */g_source_query_unix_fd ( base, xs->fd_x11 );
}
static gboolean x11_event_source_check ( GSource * base )