diff options
author | okan | 2013-06-10 20:11:43 +0000 |
---|---|---|
committer | okan | 2013-06-10 20:11:43 +0000 |
commit | 047b95bd58c952fb5fbf9a6f97782a916cc9fe87 (patch) | |
tree | e49003e31d2e431619ab1571aa74191686f441d2 /xevents.c | |
parent | 98651cd92782ee121b55843cb83bd25c406ab84e (diff) | |
download | cwm-047b95bd58c952fb5fbf9a6f97782a916cc9fe87.tar.gz |
Check for, and honour, CWStackMode and CWSibling change requests during a
ConfigureRequest event. Additionally, honour a border width change;
detailed report and patch from Mike Small.
Diffstat (limited to '')
-rw-r--r-- | xevents.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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.83 2013/05/23 16:52:39 okan Exp $ + * $OpenBSD: xevents.c,v 1.84 2013/06/10 20:11:43 okan Exp $ */ /* @@ -150,7 +150,11 @@ xev_handle_configurerequest(XEvent *ee) if (e->value_mask & CWY) cc->geom.y = e->y; if (e->value_mask & CWBorderWidth) - wc.border_width = e->border_width; + cc->bwidth = e->border_width; + if (e->value_mask & CWSibling) + wc.sibling = e->above; + if (e->value_mask & CWStackMode) + wc.stack_mode = e->detail; if (cc->geom.x == 0 && cc->geom.w >= sc->view.w) cc->geom.x -= cc->bwidth; |