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/xwindow.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/xwindow.c')
-rw-r--r-- | src/xwindow.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xwindow.c b/src/xwindow.c index 552d9aa..1564cfe 100644 --- a/src/xwindow.c +++ b/src/xwindow.c @@ -68,8 +68,8 @@ int vwm_xwin_is_mapped(vwm_t *vwm, vwm_xwindow_t *xwin) vwm_window_t *vwin = xwin->managed; int ret = 0; - if (!xwin->mapped || !vwin) - return xwin->mapped; + if (!xwin->client_mapped || !vwin) + return xwin->client_mapped; switch (vwm->focused_context) { case VWM_CONTEXT_SHELF: @@ -166,14 +166,14 @@ vwm_xwindow_t * vwm_xwin_create(vwm_t *vwm, Window win, vwm_grab_mode_t grabbed) * in the case of override_redirect windows they may be unmapped (invisible) or mapped (visible) like menus without being managed. * otherwise we could just use !xwin.managed to indicate unmapped, which is more vwm2-like, but insufficient when compositing. */ - xwin->mapped = (attrs.map_state != IsUnmapped); + xwin->client_mapped = (attrs.map_state != IsUnmapped); vwm_xwin_setup_overlay(vwm, xwin); vwm_composite_xwin_create(vwm, xwin); list_add_tail(&xwin->xwindows, &vwm->xwindows); /* created windows are always placed on the top of the stacking order */ - if (!attrs.override_redirect && xwin->mapped) + if (!attrs.override_redirect && xwin->client_mapped) vwm_win_manage_xwin(vwm, xwin); _out_grabbed: |