mirror of
https://github.com/dylanaraps/sowm.git
synced 2025-05-19 09:30:24 -07:00
docs: update
This commit is contained in:
parent
48e4fcbdfc
commit
c12d8eb003
6
sowm.c
6
sowm.c
@ -66,7 +66,7 @@ static void run(const Arg arg);
|
|||||||
static client *list = { 0 };
|
static client *list = { 0 };
|
||||||
static ws ws_list[10];
|
static ws ws_list[10];
|
||||||
|
|
||||||
static int desk = 1, sh, sw, s, junk;
|
static int desk = 1, sh, sw, s, j;
|
||||||
|
|
||||||
static Display *dis;
|
static Display *dis;
|
||||||
static Window root, cur;
|
static Window root, cur;
|
||||||
@ -104,6 +104,8 @@ void notify_motion(XEvent *e) {
|
|||||||
int xdiff = e->xbutton.x_root - start.x_root;
|
int xdiff = e->xbutton.x_root - start.x_root;
|
||||||
int ydiff = e->xbutton.y_root - start.y_root;
|
int ydiff = e->xbutton.y_root - start.y_root;
|
||||||
|
|
||||||
|
while(XCheckTypedEvent(dis, MotionNotify, e));
|
||||||
|
|
||||||
XMoveResizeWindow(dis, start.subwindow,
|
XMoveResizeWindow(dis, start.subwindow,
|
||||||
attr.x + (start.button==1 ? xdiff : 0),
|
attr.x + (start.button==1 ? xdiff : 0),
|
||||||
attr.y + (start.button==1 ? ydiff : 0),
|
attr.y + (start.button==1 ? ydiff : 0),
|
||||||
@ -144,7 +146,7 @@ void button_release() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Window win_current() {
|
Window win_current() {
|
||||||
XGetInputFocus(dis, &cur, &junk);
|
XGetInputFocus(dis, &cur, &j);
|
||||||
return cur;
|
return cur;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user