[xmonad] keeping focus on window after shifting to new screen
wagnerdm at seas.upenn.edu
wagnerdm at seas.upenn.edu
Fri Aug 3 00:51:27 CEST 2012
In my config, I have defined
viewShift i = view i . shift i
and bound my "move window" key to use viewShift instead of view. If
you are importing StackSet qualified as W (as it seems you are below),
both view and shift will need to be qualified in the definition of
viewShift, of course.
~d
Quoting Bryan Huh <bhh1988 at gmail.com>:
> Currently, I move my windows to the left and right screens using the
> following keybinding:
>
> [((m .|. modm, key), screenWorkspace sc >>= flip whenJust (windows . f))
> | (key, sc) <- zip [xK_h, xK_l, xK_r] [0..]
> , (f, m) <- [(W.view, 0), (W.shift, shiftMask)]]
>
> But if I try to move a window from one screen to the next using
> mod-shift-{h,l}, it annoys me that that window loses focus. I would
> like it for the window to remain in focus on the new screen (i.e.
> the new screen should be put in focus). I really like how when you
> shift a window up and down the stack with shift-mod-{j,k} that the
> same window remains in focus at all times. Is there an easy way to
> maintain this behavior across screens?
>
> Thanks!
>
> _______________________________________________
> xmonad mailing list
> xmonad at haskell.org
> http://www.haskell.org/mailman/listinfo/xmonad
>
>
More information about the xmonad
mailing list