From 58aa58b6a7b641f851335ae2af28315ac2de2c50 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sat, 25 Mar 2017 01:28:51 -0700 Subject: xwindow: s/xwindow->mapped/xwindow->client_mapped/ This member reflects if the window is mapped from the client's perspective, not necessarily if the window is currently mapped (since vwm maps and unmaps windows the client has mapped in the course of providing virtual desktops) Changing the name for better clarity, since it's a bit ambiguous as-is. --- src/window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/window.c') diff --git a/src/window.c b/src/window.c index a66c448..b90b0ae 100644 --- a/src/window.c +++ b/src/window.c @@ -31,7 +31,7 @@ /* unmap the specified window and set the unmapping-in-progress flag so we can discard vwm-generated UnmapNotify events */ void vwm_win_unmap(vwm_t *vwm, vwm_window_t *vwin) { - if (!vwin->xwindow->mapped) { + if (!vwin->xwindow->client_mapped) { VWM_TRACE("inhibited unmap of \"%s\", not mapped by client", vwin->xwindow->name); return; } @@ -45,7 +45,7 @@ void vwm_win_unmap(vwm_t *vwm, vwm_window_t *vwin) /* map the specified window and set the mapping-in-progress flag so we can discard vwm-generated MapNotify events */ void vwm_win_map(vwm_t *vwm, vwm_window_t *vwin) { - if (!vwin->xwindow->mapped) { + if (!vwin->xwindow->client_mapped) { VWM_TRACE("inhibited map of \"%s\", not mapped by client", vwin->xwindow->name); return; } -- cgit v1.2.3