mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-31 04:01:51 -07:00
ThreeColMid - Swap slave window positions
This patch will swap the positions of the two slave windows and this will result in a more intuitive window order. When using focusDown beginning in the master pane we will move in the following graphical order 2->3->1->2->3 instead of 2->1->3->2->1. This is backwards from what is expected. The small drawback is that increasing from 2 to 3 windows (and therefore also columns) will behave in a less intuitive way. The window in the right column will jump to the left of the screen. I think that it is a good idea to make this change since I rely a lot on the window order but people using WindowNavigation may be of a different opinion. An alternative is to add an option to select in what way to behave, but that could be overkill... I leave it up to discussion and devs to decide.
This commit is contained in:
@@ -92,9 +92,9 @@ tile3 middle f r nmaster n
|
||||
split3HorizontallyBy :: Bool -> Rational -> Rectangle -> (Rectangle, Rectangle, Rectangle)
|
||||
split3HorizontallyBy middle f (Rectangle sx sy sw sh) =
|
||||
if middle
|
||||
then ( Rectangle (sx + fromIntegral r2w) sy r1w sh
|
||||
, Rectangle sx sy r2w sh
|
||||
, Rectangle (sx + fromIntegral r2w + fromIntegral r1w) sy r3w sh )
|
||||
then ( Rectangle (sx + fromIntegral r3w) sy r1w sh
|
||||
, Rectangle (sx + fromIntegral r3w + fromIntegral r1w) sy r2w sh
|
||||
, Rectangle sx sy r3w sh )
|
||||
else ( Rectangle sx sy r1w sh
|
||||
, Rectangle (sx + fromIntegral r1w) sy r2w sh
|
||||
, Rectangle (sx + fromIntegral r1w + fromIntegral r2w) sy r3w sh )
|
||||
|
Reference in New Issue
Block a user