mirror of
https://github.com/xmonad/xmonad.git
synced 2025-08-01 12:41:53 -07:00
don't try to change the current workspace based on an enterNotify event
This commit is contained in:
9
Main.hs
9
Main.hs
@@ -181,11 +181,10 @@ handle e@(MappingNotifyEvent {window = w}) = do
|
|||||||
handle e@(CrossingEvent {window = w, event_type = t})
|
handle e@(CrossingEvent {window = w, event_type = t})
|
||||||
| t == enterNotify && mode e == notifyNormal && detail e /= notifyInferior
|
| t == enterNotify && mode e == notifyNormal && detail e /= notifyInferior
|
||||||
= do ws <- gets workspace
|
= do ws <- gets workspace
|
||||||
case W.lookup w ws of
|
if W.member w ws
|
||||||
Just n -> do setFocus w
|
then setFocus w
|
||||||
windows $ W.view n
|
else do b <- isRoot w
|
||||||
Nothing -> do b <- isRoot w
|
when b setTopFocus
|
||||||
when b setTopFocus
|
|
||||||
|
|
||||||
-- left a window, check if we need to focus root
|
-- left a window, check if we need to focus root
|
||||||
handle e@(CrossingEvent {event_type = t})
|
handle e@(CrossingEvent {event_type = t})
|
||||||
|
Reference in New Issue
Block a user