Issue 375 in xmonad: keysResizeWindow doesn't always work
Status: New Owner: ---- New issue 375 by wei.hoo: keysResizeWindow doesn't always work http://code.google.com/p/xmonad/issues/detail?id=375 It seems that scaling a window down always work, but scaling up often fails. Here's my relevant keybinding: , ("M-<KP_Left>", withFocused (keysResizeWindow (-10, 0) (1%2, 1%2))) , ("M-<KP_Right>", withFocused (keysResizeWindow (10, 0) (1%2, 1%2))) , ("M-<KP_Up>", withFocused (keysResizeWindow (0, 10) (1%2, 1%2))) , ("M-<KP_Down>", withFocused (keysResizeWindow (0, -10) (1%2, 1%2))) I tested the operations on Google Chrome, Emacs, and urxvt: All four work on Chrome. M-U and M-R fail on urxvt; M-L and M-D work. M-U fail on Emacs; others work. What version of the product are you using? On what operating system? Darcs. Arch. Are you using an xmonad.hs? Please attach it and the output of "xmonad --recompile". Please provide any additional information below. Attachments: xmonad.hs 9.1 KB -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings
Comment #1 on issue 375 by ankaan: keysResizeWindow doesn't always work http://code.google.com/p/xmonad/issues/detail?id=375 I recognize this as something I have run into before. I am quite sure that it has to do with the window size hints that the resize function tries to respect. You are requesting a change in window size that is so small that after applying the window hints the window get the same size and therefore does not seem to work. A workaround is increasing the delta and/or using another point to resize around (second tuple). But it should be changed so that the window is always resized and never rounded back to what it was before the change. That is the sane behaviour. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings
Comment #2 on issue 375 by wei.hoo: keysResizeWindow doesn't always work http://code.google.com/p/xmonad/issues/detail?id=375 ankaan, you're absolutely right. I hacked the FloatKeys module to ignore the size hint and everything is fine now. For those who're interested, my code is at http://github.com/wh5a/arch/commit/3ea2702785a6197c6fc5d5fba4207c13c87 f0fa5 -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings
participants (1)
-
codesite-noreply@google.com