Issue 566 in xmonad: xmonad gives bogus configure events

Status: New
Owner: ----
New issue 566 by StevensE...@gmail.com: xmonad gives bogus configure events
http://code.google.com/p/xmonad/issues/detail?id=566
What steps will reproduce the problem?
1. Compile the program below.
2. Run it.
3. Move the mouse pointer between windows.
What is the expected output? What do you see instead?
I don't expect to see configure events being generated and I certainly
don't expect bogus broken ones to be generated.
What version of the product are you using? On what operating system?
xmonad 0.10, Linux
Are you using an xmonad.hs? Please attach it and the output of "xmonad
--recompile".
import XMonad
import qualified XMonad.StackSet as W
import XMonad.Layout.MouseResizableTile
import XMonad.Layout.WindowNavigation
import XMonad.Layout.LayoutHints
import XMonad.Layout.Fullscreen
import XMonad.Hooks.Minimize
import XMonad.Layout.Minimize
import XMonad.Hooks.ManageHelpers
import XMonad.Hooks.ManageDocks
import XMonad.Hooks.FadeInactive
import XMonad.Util.EZConfig
import XMonad.Util.Run
import XMonad.Prompt
import XMonad.Prompt.RunOrRaise
import XMonad.Prompt.Shell
import XMonad.Config.Kde
main = do
spawn "xmodmap -e 'keycode 135 = Super_R'"
xmonad myConfig
baseConfig = kde4Config
myConfig = baseConfig
{ modMask = mod4Mask
, borderWidth = 0
, workspaces = fmap show [1 .. 4]
, handleEventHook = myEventHook (handleEventHook baseConfig)
, layoutHook = myLayout
, manageHook = myManageHook (manageHook baseConfig)
, logHook = myLogHook (logHook baseConfig)
} `additionalKeysP`
[ ("M-a", windows W.focusUp)
, ("M-e", windows W.focusDown)
, ("M-C-a", windows W.swapUp)
, ("M-C-e", windows W.swapDown)
, ("M-k", sendMessage ShrinkSlave)
, ("M-j", sendMessage ExpandSlave)
, ("M-p", shellPrompt $ defaultXPConfig {
position = Top,
height = 20
})
, ("M-<Return>", spawn "exec emacs")
, ("M-S-<Return>", spawn "exec abrowser")
]
myEventHook baseHook =
minimizeEventHook
<+> hintsEventHook
<+> baseHook
<+> fullscreenEventHook
myManageHook baseHook = composeAll [
baseHook
, className =? "Do" --> doFloat
, className =? "plasma-desktop" --> doFloat
, className =? "Plasma-desktop" --> doFloat
, className =? "klipper" --> doFloat
, className =? "Klipper" --> doFloat
, fullscreenManageHook]
myLayout =
( fullscreenFull
. windowNavigation
. avoidStrutsOn []
. layoutHintsToCenter
. minimize
) myBasicLayout
myBasicLayout = tileLayout ||| tileLayout { isMirrored = True } ||| Full
where
tileLayout = mouseResizableTile {
draggerType = FixedDragger {
gapWidth = 5
, draggerWidth = 6
}
}
myLogHook baseLogHook = do
baseLogHook
fadeInactiveLogHook 0xee000000
Please provide any additional information below.
The C program:
#include

Comment #1 on issue 566 by StevensE...@gmail.com: xmonad gives bogus
configure events
http://code.google.com/p/xmonad/issues/detail?id=566
I should mention that the windows need to be console windows (the kind that
have to be multiples of the console character size) to trigger the
configure events.
Also, here is a much simpler version of the code.
#include

Comment #2 on issue 566 by daniel.w...@gmail.com: xmonad gives bogus configure events http://code.google.com/p/xmonad/issues/detail?id=566 Does this happen with the default configuration? If not, could you spend a little bit of time to try to minimize your config for us? For others reading: compiling the given C program requires -lX11 -lGL in the compile line. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings

Comment #3 on issue 566 by daniel.w...@gmail.com: xmonad gives bogus configure events http://code.google.com/p/xmonad/issues/detail?id=566 (I do not see configure events happening in my config, even when testing with a terminal and a gvim open, which both specify resize increments in their window manager hints.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings

Comment #4 on issue 566 by allber...@gmail.com: xmonad gives bogus configure events http://code.google.com/p/xmonad/issues/detail?id=566 I'm not having a good weekend so have not been looking closely at this, but the first comment points to (and my initial suspicion was) the layout hints module, and probably hintsEventHook in particular. (Also my personal observation is that that module seems to cause more problems than it fixes....) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings

Comment #5 on issue 566 by StevensE...@gmail.com: xmonad gives bogus configure events http://code.google.com/p/xmonad/issues/detail?id=566 Yep layoutHints seems to be causing the problem. Thank you, very much. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings
participants (1)
-
codesite-noreply@google.com