mirror of
https://github.com/dylanaraps/sowm.git
synced 2025-05-19 01:20:23 -07:00
docs: update
This commit is contained in:
parent
771dafe473
commit
d85dfbdb8a
14
sowm.c
14
sowm.c
@ -94,16 +94,16 @@ void notify_motion(XEvent *e) {
|
||||
client *c;
|
||||
|
||||
if (start.subwindow != None) {
|
||||
int xdiff = e->xbutton.x_root - start.x_root;
|
||||
int ydiff = e->xbutton.y_root - start.y_root;
|
||||
int xd = e->xbutton.x_root - start.x_root;
|
||||
int yd = e->xbutton.y_root - start.y_root;
|
||||
|
||||
while(XCheckTypedEvent(dis, MotionNotify, e));
|
||||
|
||||
XMoveResizeWindow(dis, start.subwindow,
|
||||
attr.x + (start.button==1 ? xdiff : 0),
|
||||
attr.y + (start.button==1 ? ydiff : 0),
|
||||
attr.width + (start.button==3 ? xdiff : 0),
|
||||
attr.height + (start.button==3 ? ydiff : 0));
|
||||
attr.x + (start.button==1 ? xd : 0),
|
||||
attr.y + (start.button==1 ? yd : 0),
|
||||
attr.width + (start.button==3 ? xd : 0),
|
||||
attr.height + (start.button==3 ? yd : 0));
|
||||
}
|
||||
|
||||
for WIN if (c->win == start.subwindow) c->f = 0;
|
||||
@ -244,8 +244,6 @@ void win_next() {
|
||||
win_current();
|
||||
client *c;
|
||||
|
||||
if (cur == root) return;
|
||||
|
||||
if (list) {
|
||||
for WIN if (c->win == cur) break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user