1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2025-07-31 21:59:25 -04:00

Rasi patch, allowing special keys, modifying return value.

In dmenu pressing alt-[1-9 will return the selected entry and set the return value to the
        pressed number.
This commit is contained in:
QC 2015-05-03 13:04:03 +02:00
parent a974db887a
commit 8d4e1ee8fa
9 changed files with 42 additions and 20 deletions

View file

@ -243,7 +243,7 @@ int window_send_message ( Display *display, Window target,
int take_keyboard ( Display *display, Window w )
{
for ( int i = 0; i < 500; i++) {
for ( int i = 0; i < 500; i++ ) {
if ( XGrabKeyboard ( display, w, True, GrabModeAsync, GrabModeAsync, CurrentTime ) == GrabSuccess ) {
return 1;
}