Skip to content

Commit

Permalink
Add instance Default StandardCommand.
Browse files Browse the repository at this point in the history
  • Loading branch information
portnov committed Dec 22, 2023
1 parent a1e21a6 commit 333acc9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions XMonad/Layout/DecorationEx/Widgets.hs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ data StandardCommand =
| GridWindowMenu -- ^ Show window menu via "XMonad.Actions.GridSelect" (see "XMonad.Actions.WindowMenu")
deriving (Eq, Show, Read)

instance Default StandardCommand where
def = FocusWindow

instance WindowCommand StandardCommand where
executeWindowCommand FocusWindow w = do
focus w
Expand Down

0 comments on commit 333acc9

Please sign in to comment.