summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@gnugeneration.com>2017-03-25 01:28:51 -0700
committerVito Caputo <vcaputo@gnugeneration.com>2017-03-25 01:28:51 -0700
commit58aa58b6a7b641f851335ae2af28315ac2de2c50 (patch)
tree80f2c5104372ab7d73123b76b0611b343d898947 /src/window.c
parente17db88db54aafd9298c6db48a48569840acd328 (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.c4
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;
}
© All Rights Reserved