Re: [dev] [dwm] Hide window content when moving/resizing windows

2021-02-10 Thread Страхиња Радић
On 21/02/10 08:09, Κράκ Άουτ wrote: > resources. So if the if-block is removed you get the opposite of 0/sec. > The if block includes not only the condition "if (/*...*/)", but also the line or a block of code following it, whose execution is controlled by the condition. signature.asc D

Re: [dev] [dwm] Hide window content when moving/resizing windows

2021-02-10 Thread Κράκ Άουτ
Στις 10/2/21 4:46 μ.μ., ο/η Страхиња Радић έγραψε: On 21/02/10 01:10, Κράκ Άουτ wrote: So, looking at your code, can I limit updates to 1/sec instead of 60/sec? Changing this line, `if ((ev.xmotion.time - lasttime) <= (1000 / 60))` to `if ((ev.xmotion.time - lasttime) <= (1000 / 1))` would be en

Re: [dev] [dwm] Hide window content when moving/resizing windows

2021-02-10 Thread Страхиња Радић
On 21/02/10 03:46, Страхиња Радић wrote: > time. The check succeeds if the difference is 1000/60 ~ 17 in the first case > and > 1000 in the second case. As the divisor gets closer to zero, the threshold *is lesser than or equal to signature.asc Description: PGP signature

Re: [dev] [dwm] Hide window content when moving/resizing windows

2021-02-10 Thread Страхиња Радић
On 21/02/10 01:10, Κράκ Άουτ wrote: > So, looking at your code, can I limit updates to 1/sec instead of > 60/sec? Changing this line, > `if ((ev.xmotion.time - lasttime) <= (1000 / 60))` > to > `if ((ev.xmotion.time - lasttime) <= (1000 / 1))` > would be enough? > > Can I also achieve 0/sec someho

Re: [dev] [dwm] Hide window content when moving/resizing windows

2021-02-10 Thread Κράκ Άουτ
Στις 10/2/21 2:57 μ.μ., ο/η Hiltjo Posthuma έγραψε: On Wed, Feb 10, 2021 at 01:10:40PM +0200, Κράκ Άουτ wrote: Στις 10/2/21 12:34 μ.μ., ο/η Hiltjo Posthuma έγραψε: On Wed, Feb 10, 2021 at 10:40:39AM +0200, Κράκ Άουτ wrote: I started using dwm a couple of months ago, switching from xfce4. Since

Re: [dev] [dwm] Hide window content when moving/resizing windows

2021-02-10 Thread Hiltjo Posthuma
On Wed, Feb 10, 2021 at 01:10:40PM +0200, Κράκ Άουτ wrote: > Στις 10/2/21 12:34 μ.μ., ο/η Hiltjo Posthuma έγραψε: > > On Wed, Feb 10, 2021 at 10:40:39AM +0200, Κράκ Άουτ wrote: > > > I started using dwm a couple of months ago, switching from xfce4. Since > > > my pc is a bit constrained on resource

Re: [dev] [dwm] Hide window content when moving/resizing windows

2021-02-10 Thread Κράκ Άουτ
Στις 10/2/21 12:34 μ.μ., ο/η Hiltjo Posthuma έγραψε: On Wed, Feb 10, 2021 at 10:40:39AM +0200, Κράκ Άουτ wrote: I started using dwm a couple of months ago, switching from xfce4. Since my pc is a bit constrained on resources I really appreciate the low memory footprint of dwm. But I've noticed th

Re: [dev] Hide window content when moving/resizing windows

2021-02-10 Thread Hiltjo Posthuma
On Wed, Feb 10, 2021 at 10:40:39AM +0200, Κράκ Άουτ wrote: > I started using dwm a couple of months ago, switching from xfce4. Since > my pc is a bit constrained on resources I really appreciate the low > memory footprint of dwm. But I've noticed that it's slower than > xfce/xfwm when resizing/movi

[dev] Hide window content when moving/resizing windows

2021-02-10 Thread Κράκ Άουτ
I started using dwm a couple of months ago, switching from xfce4. Since my pc is a bit constrained on resources I really appreciate the low memory footprint of dwm. But I've noticed that it's slower than xfce/xfwm when resizing/moving floating windows. Also on converting tiled to floating and vice