mirror of
https://github.com/Cloudef/bemenu
synced 2024-11-23 09:21:59 +01:00
Trigger pointer selection on button release instead
This allow successive bemenu to not register the same PRESSED successive events.
This commit is contained in:
parent
e128c21ebb
commit
14e11e8a35
@ -1170,7 +1170,7 @@ bm_menu_run_with_pointer(struct bm_menu *menu, struct bm_pointer pointer)
|
||||
menu_prev(menu, count, menu->wrap);
|
||||
}
|
||||
}
|
||||
if (pointer.event_mask & POINTER_EVENT_BUTTON && pointer.state == POINTER_STATE_PRESSED) {
|
||||
if (pointer.event_mask & POINTER_EVENT_BUTTON && pointer.state == POINTER_STATE_RELEASED) {
|
||||
switch (pointer.button) {
|
||||
case BM_POINTER_KEY_PRIMARY:
|
||||
{
|
||||
@ -1196,7 +1196,7 @@ bm_menu_run_with_pointer(struct bm_menu *menu, struct bm_pointer pointer)
|
||||
menu_point_select(menu, pointer.pos_x, pointer.pos_y, displayed);
|
||||
}
|
||||
|
||||
if (pointer.event_mask & POINTER_EVENT_BUTTON && pointer.state == POINTER_STATE_PRESSED) {
|
||||
if (pointer.event_mask & POINTER_EVENT_BUTTON && pointer.state == POINTER_STATE_RELEASED) {
|
||||
switch (pointer.button) {
|
||||
case BM_POINTER_KEY_PRIMARY:
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user