[xmonad] Issue 449 in xmonad: Off-by-2*wa_border_width error in XMonad.Actions.UpdatePointer
codesite-noreply at google.com
codesite-noreply at google.com
Fri May 6 06:31:20 CEST 2011
Status: New
Owner: ----
New issue 449 by beneficial.terminator: Off-by-2*wa_border_width error in
XMonad.Actions.UpdatePointer
http://code.google.com/p/xmonad/issues/detail?id=449
What steps will reproduce the problem?
1. Enable XMonad.Actions.UpdatePointer
2. Set borderWidth to 100 (or some other large number) in xmonad config
3. Move the mouse pointer to the right of or below a window, then switch
focus to that window
What is the expected output? What do you see instead?
The pointer should move to the edge or center of the newly focused window.
Instead it moves as if the focused window is 200 pixels narrower on the
right and 200 pixels shorter at the bottom.
In XMonad.Actions.UpdatePointer.windowAttributesToRectangle, because of the
way WindowAttributes is calculated, the dimension
wa_width wa
should be
2 * wa_border_width wa + wa_width wa
and analogously the dimension
wa_height wa
should be
2 * wa_border_width wa + wa_height wa
.
Please use labels and text to provide additional information.
If this error is due to a module from XMonadContrib, please tag this issue
with 'Component-Contrib' below.
More information about the xmonad
mailing list