mirror of
https://github.com/dylanaraps/sowm.git
synced 2026-11-06 15:50:51 +00:00
patches: Added normal kill.
This commit is contained in:
1 file changed
+2
-2
@@ -7,7 +7,7 @@ index 0d74d4b..ff70968 100644
|
|||||||
*/
|
*/
|
||||||
void win_kill() {
|
void win_kill() {
|
||||||
- if (win_current() != root) XKillClient(d, cur);
|
- if (win_current() != root) XKillClient(d, cur);
|
||||||
+ if (win_current() == root) return;
|
+ if (win_current() == root) return;
|
||||||
+
|
+
|
||||||
+ XEvent ev = { .type = ClientMessage };
|
+ XEvent ev = { .type = ClientMessage };
|
||||||
+
|
+
|
||||||
@@ -19,5 +19,5 @@ index 0d74d4b..ff70968 100644
|
|||||||
+
|
+
|
||||||
+ XSendEvent(d, cur, False, NoEventMask, &ev);
|
+ XSendEvent(d, cur, False, NoEventMask, &ev);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Reference in new issue
Block a user