
Dear xmonad users, After a recent pull, I found out that the `manageHook' works quite good with gimp, mplayer, acrobat reader and etc. However, the extra borders showing at the top and left when in full screen mode are quite annoying. I tried to make a change as { hunk ./Operations.hs 535 - rr = W.RationalRect ((fi (wa_x wa) - fi (rect_x sr)) % fi (rect_width sr)) - ((fi (wa_y wa) - fi (rect_y sr)) % fi (rect_height sr)) + rr = W.RationalRect ((fi (wa_x wa - bw) - fi (rect_x sr)) % fi (rect_width sr)) + ((fi (wa_y wa - bw) - fi (rect_y sr)) % fi (rect_height sr)) } which works for acrobat reader. But mplayer in full screen mode shows extra borders at the right and bottom. I guess probably I'm looking in a wrong place? BTW, I found a small bug in the code for `adjust' and this should fix it. { hunk ./Operations.hs 59 - let adjust (W.RationalRect x y wid h) | x + wid >= 1 || y + wid >= 1 || x <= 0 || y <= 0 + let adjust (W.RationalRect x y wid h) | x + wid >= 1 || y + h >= 1 || x <= 0 || y <= 0 } Xiao-Yong -- c/* __o/* <\ * (__ */\ <

Hi Xiao-Yong, On Wed, Oct 10, 2007 at 02:07:22AM -0400, Xiao-Yong Jin wrote:
BTW, I found a small bug in the code for `adjust' and this should fix it.
{ hunk ./Operations.hs 59 - let adjust (W.RationalRect x y wid h) | x + wid >= 1 || y + wid >= 1 || x <= 0 || y <= 0 + let adjust (W.RationalRect x y wid h) | x + wid >= 1 || y + h >= 1 || x <= 0 || y <= 0 }
I think you should send the patch. Also to be credited for the fix, as it should be. Cheer, Andrea

On Wednesday 10 October 2007 01:07:22 Xiao-Yong Jin wrote:
Dear xmonad users,
After a recent pull, I found out that the `manageHook' works quite good with gimp, mplayer, acrobat reader and etc. However, the extra borders showing at the top and left when in full screen mode are quite annoying. I tried to make a change as
{ hunk ./Operations.hs 535 - rr = W.RationalRect ((fi (wa_x wa) - fi (rect_x sr)) % fi (rect_width sr)) - ((fi (wa_y wa) - fi (rect_y sr)) % fi (rect_height sr)) + rr = W.RationalRect ((fi (wa_x wa - bw) - fi (rect_x sr)) % fi (rect_width sr)) + ((fi (wa_y wa - bw) - fi (rect_y sr)) % fi (rect_height sr)) }
I'm not sure if this is the right fix, I'll have to think about it a bit.
which works for acrobat reader. But mplayer in full screen mode shows extra borders at the right and bottom. I guess probably I'm looking in a wrong place?
BTW, I found a small bug in the code for `adjust' and this should fix it.
{ hunk ./Operations.hs 59 - let adjust (W.RationalRect x y wid h) | x + wid >= 1 || y + wid >= 1 || x <= 0 || y <= 0 + let adjust (W.RationalRect x y wid h) | x + wid >= 1 || y + h >= 1 || x <= 0 || y <= 0 }
Nice catch, I've fixed this and a related issue in darcs. Cheers, Spencer Janssen

Spencer Janssen
On Wednesday 10 October 2007 01:07:22 Xiao-Yong Jin wrote:
Dear xmonad users,
After a recent pull, I found out that the `manageHook' works quite good with gimp, mplayer, acrobat reader and etc. However, the extra borders showing at the top and left when in full screen mode are quite annoying. I tried to make a change as
{ hunk ./Operations.hs 535 - rr = W.RationalRect ((fi (wa_x wa) - fi (rect_x sr)) % fi (rect_width sr)) - ((fi (wa_y wa) - fi (rect_y sr)) % fi (rect_height sr)) + rr = W.RationalRect ((fi (wa_x wa - bw) - fi (rect_x sr)) % fi (rect_width sr)) + ((fi (wa_y wa - bw) - fi (rect_y sr)) % fi (rect_height sr)) }
I'm not sure if this is the right fix, I'll have to think about it a bit.
It could be, but definitely not the only place that has to be altered. Actually after this change, if you click a float window while modKey pressed, the float window just moves toward top-left one pixel. I guess I have to change some more places, but I don't know where they are. Xiao-Yong -- c/* __o/* <\ * (__ */\ <

sjanssen:
On Wednesday 10 October 2007 01:07:22 Xiao-Yong Jin wrote:
Dear xmonad users,
After a recent pull, I found out that the `manageHook' works quite good with gimp, mplayer, acrobat reader and etc. However, the extra borders showing at the top and left when in full screen mode are quite annoying. I tried to make a change as
{ hunk ./Operations.hs 535 - rr = W.RationalRect ((fi (wa_x wa) - fi (rect_x sr)) % fi (rect_width sr)) - ((fi (wa_y wa) - fi (rect_y sr)) % fi (rect_height sr)) + rr = W.RationalRect ((fi (wa_x wa - bw) - fi (rect_x sr)) % fi (rect_width sr)) + ((fi (wa_y wa - bw) - fi (rect_y sr)) % fi (rect_height sr)) }
I'm not sure if this is the right fix, I'll have to think about it a bit.
which works for acrobat reader. But mplayer in full screen mode shows extra borders at the right and bottom. I guess probably I'm looking in a wrong place?
BTW, I found a small bug in the code for `adjust' and this should fix it.
{ hunk ./Operations.hs 59 - let adjust (W.RationalRect x y wid h) | x + wid >= 1 || y + wid >= 1 || x <= 0 || y <= 0 + let adjust (W.RationalRect x y wid h) | x + wid >= 1 || y + h >= 1 || x <= 0 || y <= 0 }
Nice catch, I've fixed this and a related issue in darcs.
Spencer, can you elaborate on what the issue is here? -- Don
participants (4)
-
Andrea Rossato
-
Don Stewart
-
Spencer Janssen
-
Xiao-Yong Jin