Adapted buttonrelease()
Use the current hit test (c->mousepos) to determine where the mouse pointer is. It is possible to link an action to a click and still propagate the event after that by setting the “stop event” parameter of a Button to 0.
This commit is contained in:
parent
96188f83f0
commit
f6a35e5fbf
2 changed files with 23 additions and 24 deletions
|
|
@ -129,9 +129,9 @@ static Key keys[] = {
|
|||
};
|
||||
|
||||
/* button definitions */
|
||||
/* where can be OnDoc, OnLink, OnImg, OnMedia, OnEdit, OnBar, OnSel, OnAny */
|
||||
/* target can be OnDoc, OnLink, OnImg, OnMedia, OnEdit, OnBar, OnSel, OnAny */
|
||||
static Button buttons[] = {
|
||||
/* where event mask button function argument stop event */
|
||||
/* target event mask button function argument stop event */
|
||||
{ OnLink, 0, 2, linkopenembed, { 0 }, 1 },
|
||||
{ OnLink, MODKEY, 2, linkopen, { 0 }, 1 },
|
||||
{ OnLink, MODKEY, 1, linkopen, { 0 }, 1 },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue