Skip to content

Commit

Permalink
fixup! Add X.A.ToggleFullFloat - state-remembering fullscreen hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
liskin committed Mar 27, 2023
1 parent d19450b commit b6c9b62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions XMonad/Actions/ToggleFullFloat.hs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ import qualified XMonad.Util.ExtensibleState as XS
-- $usage
--
-- The main use-case is to make 'ewmhFullscreen' (re)store the size and
-- position of floating windows instead of just uncontitionally sinking them
-- position of floating windows instead of just unconditionally sinking them
-- into the floating layer. To enable this, you'll need this in your
-- @~\/.xmonad\/xmonad.hs@:
-- @xmonad.hs@:
--
-- > import XMonad
-- > import XMonad.Actions.ToggleFullFloat
Expand Down Expand Up @@ -96,7 +96,7 @@ doFullFloatRestore = do
-- using the 'toggleFullFloat' separately from the EWMH hook.
gcToggleFullFloat :: XConfig a -> XConfig a
gcToggleFullFloat c = c { startupHook = startupHook c <> gcToggleFullFloatStartupHook
, handleEventHook = handleEventHook c <> gcToggleFullFloatEventHook }
, handleEventHook = handleEventHook c <> gcToggleFullFloatEventHook }

-- | ToggleFullFloat garbage collection: drop windows when they're destroyed.
gcToggleFullFloatEventHook :: Event -> X All
Expand Down

0 comments on commit b6c9b62

Please sign in to comment.