diff options
author | okan | 2019-02-22 19:40:32 +0000 |
---|---|---|
committer | okan | 2019-02-22 19:40:32 +0000 |
commit | a3c7fd29ed44719addc853056a2a1d588e615b06 (patch) | |
tree | 762b1f59f7a84d332d9143746451a3fb8386b459 /xevents.c | |
parent | b654187d11b3af398e8a6133914c426ba1fdaf6d (diff) | |
download | cwm-a3c7fd29ed44719addc853056a2a1d588e615b06.tar.gz |
Rename internal functions to delinate between client remove, delete and xproto
delete; 'window-close' is now the proper action, but 'window-delete' as an
alias will remain until more interesting changes require breaking configs.
Diffstat (limited to '')
-rw-r--r-- | xevents.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: xevents.c,v 1.135 2018/11/13 17:37:13 okan Exp $ + * $OpenBSD: xevents.c,v 1.136 2019/02/22 19:40:33 okan Exp $ */ /* @@ -102,7 +102,7 @@ xev_handle_unmapnotify(XEvent *ee) client_set_wm_state(cc, WithdrawnState); } else { if (!(cc->flags & CLIENT_HIDDEN)) - client_delete(cc); + client_remove(cc); } } } @@ -116,7 +116,7 @@ xev_handle_destroynotify(XEvent *ee) LOG_DEBUG3("window: 0x%lx", e->window); if ((cc = client_find(e->window)) != NULL) - client_delete(cc); + client_remove(cc); } static void @@ -389,7 +389,7 @@ xev_handle_clientmessage(XEvent *ee) } } else if (e->message_type == ewmh[_NET_CLOSE_WINDOW]) { if ((cc = client_find(e->window)) != NULL) { - client_send_delete(cc); + client_close(cc); } } else if (e->message_type == ewmh[_NET_ACTIVE_WINDOW]) { if ((cc = client_find(e->window)) != NULL) { |