mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
allow to refresh layout when resizing to see in live what's happening
This commit is contained in:
parent
914e908aa8
commit
6ab7121c49
1 changed files with 3 additions and 1 deletions
4
mouse.c
4
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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue