mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-03 04:23:42 -05:00
Play with dmenu black screen
This commit is contained in:
parent
eab4e1438f
commit
afc056ecc5
2 changed files with 6 additions and 1 deletions
|
@ -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 );
|
||||
|
|
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue