File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ addTag (Tag name) (XWindowId wid) = do
5959
6060 let
6161 tags :: String
62- tags = if " not found" `elem` words result then " " else extractTags result
62+ tags = if strip result == " _XMONAD_TAGS: not found. " then " " else extractTags result
6363
6464 newTags :: String
6565 newTags = if null tags then name else tags <> " " <> name
@@ -74,5 +74,7 @@ tagSelfWith name = do
7474 pid <- PID . show <$> getProcessID
7575 result <- findAncestorWindowId pid
7676 case result of
77- Just wid -> addTag name wid
77+ Just wid -> do
78+ addTag name wid
79+ -- callProcess "xrefresh" [] -- FIXME
7880 Nothing -> exitFailure
Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ import Run
77
88main :: IO ()
99main = do
10- XMonad. tagSelfWith " sensei "
10+ XMonad. tagSelfWith " left "
1111 getArgs >>= run
You can’t perform that action at this time.
0 commit comments