mirror of
https://github.com/dylanaraps/sowm.git
synced 2025-08-01 12:41:57 -07:00
sowm: simpler delete
This commit is contained in:
13
sowm.c
13
sowm.c
@@ -200,18 +200,7 @@ void win_to_ws(const Arg arg) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void notify_destroy(XEvent *e) {
|
void notify_destroy(XEvent *e) {
|
||||||
int i = 0;
|
win_del(e->xdestroywindow.window);
|
||||||
client *c;
|
|
||||||
|
|
||||||
XDestroyWindowEvent *ev = &e->xdestroywindow;
|
|
||||||
|
|
||||||
for WIN
|
|
||||||
if(ev->window == c->win) i++;
|
|
||||||
|
|
||||||
if (i == 0)
|
|
||||||
return;
|
|
||||||
|
|
||||||
win_del(ev->window);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void configure_request(XEvent *e) {
|
void configure_request(XEvent *e) {
|
||||||
|
Reference in New Issue
Block a user