Re: [dwm] CPU comsumption

2007-06-26 Thread Stanislav Maslovski
On Mon, Jun 25, 2007 at 03:08:37PM +0200, Michel Verdier wrote:
 Hi,
 
 When testing dwm (and wmii) I got a problem for 2 applications xemacs and
 firefox.
 
 When starting xemacs tiled it starts using CPU. Right and bottom borders
 are flickering. When starting or switching to float all is ok. The same
 problem occurs with wmii. A long time ago I have had this bug with another
 wm, I can't remember which one. So I suppose it's xemacs which behave
 badly.
 
 With firefox the same appears when reducing width of its windows down to
 ~150px.
 
 I have a 4.2 compiled. I can test patches.

Check the version of GTK, maybe it is related to this:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=421183

Maybe not.

-- 
Stanislav



Re: [dwm] CPU comsumption

2007-06-25 Thread Engin Tola

Michel Verdier [EMAIL PROTECTED] writes:

 Hi,

 When testing dwm (and wmii) I got a problem for 2 applications xemacs and
 firefox.

 When starting xemacs tiled it starts using CPU. Right and bottom borders
 are flickering. When starting or switching to float all is ok. The same
 problem occurs with wmii. A long time ago I have had this bug with another
 wm, I can't remember which one. So I suppose it's xemacs which behave
 badly.

 With firefox the same appears when reducing width of its windows down to
 ~150px.

 I have a 4.2 compiled. I can test patches.

 Thanks

I haven't used xemacs but with emacs I don't have this problem. 

I'm also using firefox and I don't have this problem. Do you have
flickering with firefox as well ? or just the cpu ?

I also have 4.2. 

Maybe its related with your graphics card ?

-- 
engin tola - http://cvlab.epfl.ch/~tola/
emacs  - http://www.gnu.org/software/emacs/tour/



Re: [dwm] CPU comsumption

2007-06-25 Thread Michel Verdier
 Sounds like applications behaving bad when the wm gives them a size
 they'd rather not have. If so, moving them to the floating layer is
 probably your only option (or nag the application's authors to fix
 their stuff).

Yes I agree it should be something like that rather than an X problem.
But dwm (and wmii) could behave better with those broken applications.
With ion, larswm, ratpoison I have no problem.



pgpjuvqGzijeW.pgp
Description: PGP signature


Re: [dwm] CPU comsumption

2007-06-25 Thread Anselm R. Garbe
On Mon, Jun 25, 2007 at 06:03:59PM +0200, Michel Verdier wrote:
  Sounds like applications behaving bad when the wm gives them a size
  they'd rather not have. If so, moving them to the floating layer is
  probably your only option (or nag the application's authors to fix
  their stuff).
 
 Yes I agree it should be something like that rather than an X problem.
 But dwm (and wmii) could behave better with those broken applications.
 With ion, larswm, ratpoison I have no problem.

If it annoys you, there is an easy fix. Change client.c:resize()
as follows:

  Replace if(sizehints) with if(1)

This will introduce gaps between windows, but fix your bug.
However, don't expect this being pushed into vanilla dwm, simply
because the side-effect you notice is wanted by design of dwm.

Hope this helps,
-- 
 Anselm R. Garbe  http://www.suckless.org/  GPG key: 0D73F361