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
850f131aca
commit
48e4fcbdfc
12
sowm.c
12
sowm.c
@ -94,9 +94,7 @@ void notify_destroy(XEvent *e) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void notify_enter(XEvent *e) {
|
void notify_enter(XEvent *e) {
|
||||||
if (e->xcrossing.window != root &&
|
if (e->xcrossing.window != root) FOC(e->xcrossing.window)
|
||||||
e->xcrossing.type == EnterNotify)
|
|
||||||
FOC(e->xcrossing.window)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void notify_motion(XEvent *e) {
|
void notify_motion(XEvent *e) {
|
||||||
@ -137,11 +135,7 @@ void button_press(XEvent *e) {
|
|||||||
if (e->xbutton.subwindow == None) return;
|
if (e->xbutton.subwindow == None) return;
|
||||||
|
|
||||||
XGetWindowAttributes(dis, e->xbutton.subwindow, &attr);
|
XGetWindowAttributes(dis, e->xbutton.subwindow, &attr);
|
||||||
FOC(e->xbutton.subwindow);
|
XRaiseWindow(dis, e->xbutton.subwindow);
|
||||||
|
|
||||||
if (e->xbutton.state == Mod4Mask)
|
|
||||||
XRaiseWindow(dis, e->xbutton.subwindow);
|
|
||||||
|
|
||||||
start = e->xbutton;
|
start = e->xbutton;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -365,7 +359,7 @@ int main(void) {
|
|||||||
XSelectInput(dis, root, SubstructureNotifyMask|
|
XSelectInput(dis, root, SubstructureNotifyMask|
|
||||||
SubstructureRedirectMask|EnterWindowMask|LeaveWindowMask);
|
SubstructureRedirectMask|EnterWindowMask|LeaveWindowMask);
|
||||||
|
|
||||||
XGrabButton(dis, 1, AnyModifier, root, True,
|
XGrabButton(dis, 1, Mod4Mask, root, True,
|
||||||
ButtonPressMask|ButtonReleaseMask|PointerMotionMask,
|
ButtonPressMask|ButtonReleaseMask|PointerMotionMask,
|
||||||
GrabModeAsync, GrabModeAsync, None, None);
|
GrabModeAsync, GrabModeAsync, None, None);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user