aboutsummaryrefslogtreecommitdiffstats
path: root/xevents.c
diff options
context:
space:
mode:
authorokan2013-06-10 20:11:43 +0000
committerokan2013-06-10 20:11:43 +0000
commit047b95bd58c952fb5fbf9a6f97782a916cc9fe87 (patch)
treee49003e31d2e431619ab1571aa74191686f441d2 /xevents.c
parent98651cd92782ee121b55843cb83bd25c406ab84e (diff)
downloadcwm-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 'xevents.c')
-rw-r--r--xevents.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/xevents.c b/xevents.c
index e9d819e..c7fc215 100644
--- a/xevents.c
+++ b/xevents.c
@@ -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;