Skip to content

Commit

Permalink
Map right mouse button to item-menu action
Browse files Browse the repository at this point in the history
  • Loading branch information
andoma committed Mar 3, 2015
1 parent b04a68c commit a94f86a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ui/glw/glw.c
Expand Up @@ -1706,7 +1706,9 @@ glw_pointer_event0(glw_root_t *gr, glw_t *w, glw_pointer_event_t *gpe,
switch(gpe->type) {

case GLW_POINTER_RIGHT_PRESS:
glw_focus_set(gr, w, GLW_FOCUS_SET_INTERACTIVE);
e = event_create_action(ACTION_ITEMMENU);
glw_event_to_widget(w, e);
event_release(e);
return 1;

case GLW_POINTER_LEFT_PRESS:
Expand Down

0 comments on commit a94f86a

Please sign in to comment.