Re: [hackers] [dwm][PATCH] Simplify client y-offset correction

2022-08-10 Thread Hiltjo Posthuma
On Wed, Aug 10, 2022 at 11:02:45AM +0200, Stein Gunnar Bakkeby wrote: >Hi Hijito, >I wasn't sure how big of a wall of text to put in the commit comment. >Let me clarify this first. >We have a block of code adjusting the client's starting position for >floating windows where: >

Re: [hackers] [dwm][PATCH] Simplify client y-offset correction

2022-08-10 Thread Stein Gunnar Bakkeby
Hi Hijito, I wasn't sure how big of a wall of text to put in the commit comment. Let me clarify this first. We have a block of code adjusting the client's starting position for floating windows where: - if the window position and size exceeds the right hand side of the monitor, then we move i

Re: [hackers] [dwm][PATCH] Simplify client y-offset correction

2022-08-09 Thread Hiltjo Posthuma
On Tue, Aug 09, 2022 at 10:38:08AM +0200, Stein wrote: > The reasoning behind the original line may be lost to time as > it does not make much sense checking the position on the x-axis > to determine how to position the client on the y-axis. > > In the context of multi-monitor setups the monitor y

[hackers] [dwm][PATCH] Simplify client y-offset correction

2022-08-09 Thread Stein
The reasoning behind the original line may be lost to time as it does not make much sense checking the position on the x-axis to determine how to position the client on the y-axis. In the context of multi-monitor setups the monitor y position (m->my) may be greater than 0 (say 500), in which case