On Sun, Sep 23, 2012 at 03:28:30PM +0200, Axel Rohde wrote:
> FIX for fvwm burning CPU on resize/move unresizable/unmovable windows
> 
> Hi Thomas, FVWM Workers,

Can you please send unified diffs, please?

> *** fvwm-2.6.5/fvwm/events.c_orig       2012-09-22 12:54:50.838388626 +0200
> --- fvwm-2.6.5/fvwm/events.c    2012-09-22 12:55:00.818388316 +0200
> ***************
> *** 4729,4736 ****
>                                  * okay here */
>                         }
>                         mask &= DEFAULT_ALL_BUTTONS_MASK;
> !                       usleep(1);
> !               }
>                 if (use_wait_cursor == 0 && count == 20)
>                 {
>                         GrabEm(CRS_WAIT, GRAB_NORMAL);
> --- 4729,4738 ----
>                                  * okay here */
>                         }
>                         mask &= DEFAULT_ALL_BUTTONS_MASK;
> !                       usleep(10000); /* fixes 50% to 100% (P4) CPU load 
> when trying */ 
> !             /* to move/resize unmovable/unresizable windows. Tested on */
> !             /* P4 3GHz/HT, ATi X550, and core i5-3550. Axel Rohde Sep. 22 
> 2012 */
> !               }                  

This is not a correct solution.  usleep() is hiding the problem further, not
fixing it.

I do not have the time to help you though.

-- Thomas Adam

Reply via email to