mirror of
https://github.com/xmonad/xmonad.git
synced 2025-08-05 14:41:56 -07:00
float fixed size windows
This commit is contained in:
@@ -55,8 +55,10 @@ manage w = withDisplay $ \d -> do
|
|||||||
-- before the call to float, because that will resize the window and
|
-- before the call to float, because that will resize the window and
|
||||||
-- lose the default sizing.
|
-- lose the default sizing.
|
||||||
|
|
||||||
|
sh <- io $ getWMNormalHints d w
|
||||||
|
let isFixedSize = sh_min_size sh /= Nothing && sh_min_size sh == sh_max_size sh
|
||||||
isTransient <- isJust `liftM` io (getTransientForHint d w)
|
isTransient <- isJust `liftM` io (getTransientForHint d w)
|
||||||
if isTransient
|
if isFixedSize || isTransient
|
||||||
then do modify $ \s -> s { windowset = W.insertUp w (windowset s) }
|
then do modify $ \s -> s { windowset = W.insertUp w (windowset s) }
|
||||||
float w -- \^^ now go the refresh.
|
float w -- \^^ now go the refresh.
|
||||||
else windows $ W.insertUp w
|
else windows $ W.insertUp w
|
||||||
|
Reference in New Issue
Block a user