From dc9cb084dce3fda08af96ac3d098020b974e7b56 Mon Sep 17 00:00:00 2001 From: Spencer Janssen Date: Wed, 16 Dec 2009 02:21:40 +0100 Subject: Determine numlockMask automatically, fixes #120 Ignore-this: d80c82dd0a23dc7a77fdc32fd2792130 darcs-hash:20091216012140-25a6b-1730d8fef04b735b04475d1772e4825fa44cb318.gz --- XMonad/Core.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'XMonad/Core.hs') diff --git a/XMonad/Core.hs b/XMonad/Core.hs index 23394f6..0961235 100644 --- a/XMonad/Core.hs +++ b/XMonad/Core.hs @@ -64,12 +64,14 @@ data XState = XState , mapped :: !(S.Set Window) -- ^ the Set of mapped windows , waitingUnmap :: !(M.Map Window Int) -- ^ the number of expected UnmapEvents , dragging :: !(Maybe (Position -> Position -> X (), X ())) + , numlockMask :: !KeyMask -- ^ The numlock modifier , extensibleState :: !(M.Map String (Either String StateExtension)) -- ^ stores custom state information. -- -- The module XMonad.Utils.ExtensibleState in xmonad-contrib -- provides additional information and a simple interface for using this. } + -- | XConf, the (read-only) window manager configuration. data XConf = XConf { display :: Display -- ^ the X11 display @@ -98,7 +100,6 @@ data XConfig l = XConfig -- should also be run afterwards. mappend should be used for combining -- event hooks in most cases. , workspaces :: ![String] -- ^ The list of workspaces' names - , numlockMask :: !KeyMask -- ^ The numlock modifier , modMask :: !KeyMask -- ^ the mod modifier , keys :: !(XConfig Layout -> M.Map (ButtonMask,KeySym) (X ())) -- ^ The key binding: a map from key presses and actions -- cgit v1.2.3