patches: Added normal kill.

This commit is contained in:
Dylan Araps 2019-10-15 20:03:50 +03:00
parent cd37b0ad39
commit d271e266e6
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ index 0d74d4b..ff70968 100644
*/
void win_kill() {
- if (win_current() != root) XKillClient(d, cur);
+ if (win_current() == root) return;
+ if (win_current() == root) return;
+
+ XEvent ev = { .type = ClientMessage };
+
@ -19,5 +19,5 @@ index 0d74d4b..ff70968 100644
+
+ XSendEvent(d, cur, False, NoEventMask, &ev);
}
/*