Skip to content
Snippets Groups Projects
Commit 5d874d67 authored by Olivier Fourdan's avatar Olivier Fourdan
Browse files

Fix a (small) bug in button mask.

(Old svn revision: 10579)
parent df2fb383
No related branches found
No related tags found
No related merge requests found
......@@ -442,11 +442,11 @@ static void frameSetShape(Client * c, int state, MyPixmap * title, MyPixmap pm_s
}
for(i = 0; i < BUTTON_COUNT; i++)
{
if((c->button_pressed[i]) && (buttons[i][PRESSED].mask))
if(c->button_pressed[i])
{
XShapeCombineMask(dpy, c->buttons[i], ShapeBounding, 0, 0, buttons[i][PRESSED].mask, ShapeSet);
}
else if (buttons[i][state].mask)
else
{
XShapeCombineMask(dpy, c->buttons[i], ShapeBounding, 0, 0, buttons[i][state].mask, ShapeSet);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment