mirror of
https://github.com/dylanaraps/sowm.git
synced 2025-08-01 20:52:01 -07:00
compress enter events and clean up code
This commit is contained in:
6
sowm.c
6
sowm.c
@@ -91,6 +91,8 @@ void notify_destroy(XEvent *e) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void notify_enter(XEvent *e) {
|
void notify_enter(XEvent *e) {
|
||||||
|
while(XCheckTypedEvent(d, EnterNotify, e));
|
||||||
|
|
||||||
if (e->xcrossing.window != root) FOC(e->xcrossing.window)
|
if (e->xcrossing.window != root) FOC(e->xcrossing.window)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -196,9 +198,7 @@ void win_del(Window w) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void win_kill() {
|
void win_kill() {
|
||||||
win_current();
|
if (win_current() != root) XKillClient(d, cur);
|
||||||
|
|
||||||
if (cur != root) XKillClient(d, cur);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void win_center(Window w) {
|
void win_center(Window w) {
|
||||||
|
Reference in New Issue
Block a user