Executor: send click coordinates via environment variables

This commit is contained in:
o9000
2016-01-24 15:11:49 +01:00
parent 8af45bf3e6
commit 5966b198b6
3 changed files with 14 additions and 4 deletions

View File

@@ -808,7 +808,7 @@ void event_button_release(XEvent *e)
Execp *execp = click_execp(panel, e->xbutton.x, e->xbutton.y);
if (execp) {
execp_action(execp, e->xbutton.button);
execp_action(execp, e->xbutton.button, e->xbutton.x - execp->area.posx, e->xbutton.y - execp->area.posy);
if (panel_layer == BOTTOM_LAYER)
XLowerWindow(server.display, panel->main_win);
task_drag = 0;