Skip to content

Commit

Permalink
xmonad: don't rescreen on window config event (work around)
Browse files Browse the repository at this point in the history
Just have to remember to rescreen manually when I actually need or want it to
happen.

ref: xmonad/xmonad#243
  • Loading branch information
thomasf committed Nov 7, 2020
1 parent 355a455 commit 2519220
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .xmonad/lib/XMonad/Config/A00001.hs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import Control.Monad
import Data.Char (isSpace)
import Data.List
import qualified Data.Map as M
import Data.Monoid
import Data.Ratio ((%))
import Data.Ord
import Data.Maybe
Expand Down Expand Up @@ -589,9 +590,15 @@ myManageHook =
-- return (All True) if the default handler is to be run afterwards. To
-- combine event hooks use mappend or mconcat from Data.Monoid.
--
myHandleEventHook = ewmhDesktopsEventHook <+> fullscreenEventHook <+> serverModeEventHook
myHandleEventHook = noRescreenEventHook <+> ewmhDesktopsEventHook <+> fullscreenEventHook <+> serverModeEventHook


noRescreenEventHook (ConfigureEvent {ev_window = w}) = do
r <- asks theRoot
return $ All $ w /= r

noRescreenEventHook _ = mempty


-- Status bars and logging

Expand Down

0 comments on commit 2519220

Please sign in to comment.