mirror of
https://github.com/xmonad/xmonad.git
synced 2025-08-01 04:31:53 -07:00
allow mouse to change current workspace
This commit is contained in:
@@ -163,11 +163,11 @@ delete k w = maybe w tweak (M.lookup k (cache w))
|
||||
, focus = M.update (\k' -> if k == k' then elemAfter k (stacks w M.! i) else Just k') i (focus w) }
|
||||
|
||||
-- | /O(log n)/. If the given window is contained in a workspace, make it the
|
||||
-- focused window of that workspace.
|
||||
-- focused window of that workspace, and make that workspace the current one.
|
||||
raiseFocus :: Ord a => a -> StackSet a -> StackSet a
|
||||
raiseFocus k w = case M.lookup k (cache w) of
|
||||
Nothing -> w
|
||||
Just i -> w { focus = M.insert i k (focus w) }
|
||||
Just i -> w { focus = M.insert i k (focus w), current = i }
|
||||
|
||||
-- | Move a window to the top of its workspace.
|
||||
promote :: Ord a => a -> StackSet a -> StackSet a
|
||||
|
3
TODO
3
TODO
@@ -25,8 +25,5 @@
|
||||
- change focus in the StackSet structure on EnterNotify
|
||||
- let mod+enter demote a master window
|
||||
- borders (low priority, maybe wait until 0.2)
|
||||
- let focus-follows-mouse also change the active workspace (not just the
|
||||
active window); note that this currently also makes click-to-focus appear
|
||||
slightly buggy, since sometimes, the wrong window is exempted from setButtonGrab
|
||||
|
||||
* Tile vertically/ resize height.
|
||||
|
Reference in New Issue
Block a user