lied about using some events it wasnt using
This commit is contained in:
parent
9a9e3f6bf6
commit
288e37b031
1 changed files with 2 additions and 2 deletions
|
@ -407,12 +407,12 @@ gboolean moveresize_event(XEvent *e)
|
||||||
start_y = e->xbutton.y_root;
|
start_y = e->xbutton.y_root;
|
||||||
button = e->xbutton.button; /* this will end it now */
|
button = e->xbutton.button; /* this will end it now */
|
||||||
}
|
}
|
||||||
used = TRUE;
|
used = e->xbutton.button == button;
|
||||||
} else if (e->type == ButtonRelease) {
|
} else if (e->type == ButtonRelease) {
|
||||||
if (!button || e->xbutton.button == button) {
|
if (!button || e->xbutton.button == button) {
|
||||||
moveresize_end(FALSE);
|
moveresize_end(FALSE);
|
||||||
}
|
|
||||||
used = TRUE;
|
used = TRUE;
|
||||||
|
}
|
||||||
} else if (e->type == MotionNotify) {
|
} else if (e->type == MotionNotify) {
|
||||||
if (moving) {
|
if (moving) {
|
||||||
cur_x = start_cx + e->xmotion.x_root - start_x;
|
cur_x = start_cx + e->xmotion.x_root - start_x;
|
||||||
|
|
Loading…
Reference in a new issue