mirror of
https://github.com/xmonad/xmonad.git
synced 2025-07-31 04:01:52 -07:00
new QC properties: floating a window is reversible, screens includes current screen
This commit is contained in:
@@ -524,6 +524,21 @@ prop_shift_win_fix_current i w (x :: T) =
|
||||
where
|
||||
n = tag (workspace $ current x)
|
||||
|
||||
------------------------------------------------------------------------
|
||||
-- properties for the floating layer:
|
||||
|
||||
prop_float_reversible n (x :: T) =
|
||||
n `member` x ==> sink n (float n geom x) == x
|
||||
where
|
||||
geom = RationalRect 100 100 100 100
|
||||
|
||||
------------------------------------------------------------------------
|
||||
|
||||
prop_screens (x :: T) = n `elem` screens x
|
||||
where
|
||||
n = current x
|
||||
|
||||
|
||||
------------------------------------------------------------------------
|
||||
-- some properties for layouts:
|
||||
|
||||
@@ -652,6 +667,9 @@ main = do
|
||||
,("shiftWin is shift on focus" , mytest prop_shift_win_focus)
|
||||
,("shiftWin fix current" , mytest prop_shift_win_fix_current)
|
||||
|
||||
,("floating is reversible" , mytest prop_float_reversible)
|
||||
,("screens includes current", mytest prop_screens)
|
||||
|
||||
{-
|
||||
,("tile 1 window fullsize", mytest prop_tile_fullscreen)
|
||||
,("tiles never overlap", mytest prop_tile_non_overlap)
|
||||
|
Reference in New Issue
Block a user