From 6ab7121c49675bd6261826042f219770495012d4 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 28 Jan 2008 11:05:32 +0100 Subject: [PATCH] allow to refresh layout when resizing to see in live what's happening --- mouse.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mouse.c b/mouse.c index ff474c614..02a98a563 100644 --- a/mouse.c +++ b/mouse.c @@ -236,10 +236,12 @@ uicb_client_resizemouse(int screen, char *arg __attribute__ ((unused))) mwfact = 1 - (double) (ev.xmotion.y - area.y) / area.height; if(mwfact < 0.1) mwfact = 0.1; else if(mwfact > 0.9) mwfact = 0.9; - if(fabs(curtags[0]->mwfact - mwfact) >= 0.05) + if(fabs(curtags[0]->mwfact - mwfact) >= 0.01) { curtags[0]->mwfact = mwfact; globalconf.screens[screen].need_arrange = True; + layout_refresh(); + while(XCheckMaskEvent(globalconf.display, PointerMotionMask, &ev)); } }