From a3c7fd29ed44719addc853056a2a1d588e615b06 Mon Sep 17 00:00:00 2001 From: okan Date: Fri, 22 Feb 2019 19:40:32 +0000 Subject: 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. --- xevents.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'xevents.c') diff --git a/xevents.c b/xevents.c index 8ce32cd..a697e9f 100644 --- a/xevents.c +++ b/xevents.c @@ -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) { -- cgit v1.2.3-2-gb3c3