docs: update

This commit is contained in:
Dylan Araps 2019-10-12 23:42:37 +03:00
parent ecd096fb04
commit 68970c9544

6
sowm.c
View File

@ -97,11 +97,9 @@ void notify_enter(XEvent *e) {
} }
void notify_motion(XEvent *e) { void notify_motion(XEvent *e) {
XButtonEvent bu = e->xbutton;
if (start.subwindow != None) { if (start.subwindow != None) {
int xdiff = bu.x_root - start.x_root; int xdiff = e->xbutton.x_root - start.x_root;
int ydiff = bu.y_root - start.y_root; int ydiff = e->xbutton.y_root - start.y_root;
XMoveResizeWindow(dis, start.subwindow, XMoveResizeWindow(dis, start.subwindow,
attr.x + (start.button==1 ? xdiff : 0), attr.x + (start.button==1 ? xdiff : 0),