diff options
author | Vito Caputo <vcaputo@gnugeneration.com> | 2017-03-25 01:28:51 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@gnugeneration.com> | 2017-03-25 01:28:51 -0700 |
commit | 58aa58b6a7b641f851335ae2af28315ac2de2c50 (patch) | |
tree | 80f2c5104372ab7d73123b76b0611b343d898947 /src/window.c | |
parent | e17db88db54aafd9298c6db48a48569840acd328 (diff) |
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.
Diffstat (limited to 'src/window.c')
-rw-r--r-- | src/window.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |