mirror of https://github.com/davatorium/rofi.git
Test fix for issue #167
This commit is contained in:
parent
09e4a64780
commit
0e7009bcad
|
@ -23,12 +23,12 @@ typedef struct
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
TB_AUTOHEIGHT = 1 << 0,
|
TB_AUTOHEIGHT = 1 << 0,
|
||||||
TB_AUTOWIDTH = 1 << 1,
|
TB_AUTOWIDTH = 1 << 1,
|
||||||
TB_LEFT = 1 << 16,
|
TB_LEFT = 1 << 16,
|
||||||
TB_RIGHT = 1 << 17,
|
TB_RIGHT = 1 << 17,
|
||||||
TB_CENTER = 1 << 18,
|
TB_CENTER = 1 << 18,
|
||||||
TB_EDITABLE = 1 << 19,
|
TB_EDITABLE = 1 << 19,
|
||||||
} TextboxFlags;
|
} TextboxFlags;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1304,6 +1304,14 @@ MenuReturn menu ( char **lines, unsigned int num_lines, char **input, char *prom
|
||||||
} while ( XCheckTypedEvent ( display, KeyPress, &ev ) );
|
} while ( XCheckTypedEvent ( display, KeyPress, &ev ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Wait for final release?
|
||||||
|
{
|
||||||
|
XEvent ev;
|
||||||
|
do {
|
||||||
|
XNextEvent ( display, &ev );
|
||||||
|
} while ( ev.type != KeyRelease );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Update input string.
|
// Update input string.
|
||||||
g_free ( *input );
|
g_free ( *input );
|
||||||
|
|
Loading…
Reference in New Issue