mirror of
https://github.com/xmonad/xmonad.git
synced 2025-09-02 19:53:48 -07:00
only hide old workspace on view if the old workspace is not visible (Xinerama)
This commit is contained in:
@@ -67,7 +67,9 @@ shift n = withFocused hide >> windows (W.shift n)
|
|||||||
view :: WorkspaceId -> X ()
|
view :: WorkspaceId -> X ()
|
||||||
view n = withWorkspace $ \w -> when (n /= (W.tag (W.current w))) $ do
|
view n = withWorkspace $ \w -> when (n /= (W.tag (W.current w))) $ do
|
||||||
windows $ W.view n -- move in new workspace first, to avoid flicker
|
windows $ W.view n -- move in new workspace first, to avoid flicker
|
||||||
mapM_ hide (W.index w) -- now just hide the old workspace
|
-- Hide the old workspace if it is no longer visible
|
||||||
|
oldWsNotVisible <- (not . M.member (W.tag . W.current $ w) . W.screens) `liftM` gets workspace
|
||||||
|
when oldWsNotVisible $ mapM_ hide (W.index w)
|
||||||
clearEnterEvents -- better clear any events from the old workspace
|
clearEnterEvents -- better clear any events from the old workspace
|
||||||
|
|
||||||
-- | Kill the currently focused client. If we do kill it, we'll get a
|
-- | Kill the currently focused client. If we do kill it, we'll get a
|
||||||
|
Reference in New Issue
Block a user