mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-05 14:41:54 -07:00
Fix typo and remove +1 from resizeWindow
This commit is contained in:
@@ -35,7 +35,7 @@ import Control.Monad (when)
|
|||||||
-- Windowed fullscreen describes the behaviour in which XMonad,
|
-- Windowed fullscreen describes the behaviour in which XMonad,
|
||||||
-- by default, does not automatically put windows that request being fullscreened
|
-- by default, does not automatically put windows that request being fullscreened
|
||||||
-- into actual fullscreen, but keeps them constrained
|
-- into actual fullscreen, but keeps them constrained
|
||||||
-- to their noral window dimensions, still rendering them in fullscreen.
|
-- to their normal window dimensions, still rendering them in fullscreen.
|
||||||
--
|
--
|
||||||
-- With chromium based applications like Chrome, Discord and others this
|
-- With chromium based applications like Chrome, Discord and others this
|
||||||
-- can cause issues, where the window does not correctly see the size of the window
|
-- can cause issues, where the window does not correctly see the size of the window
|
||||||
@@ -62,6 +62,6 @@ windowedFullscreenFixEventHook (ClientMessageEvent _ _ _ dpy win typ (_:dats)) =
|
|||||||
withWindowAttributes dpy win $ \attrs ->
|
withWindowAttributes dpy win $ \attrs ->
|
||||||
liftIO $ do
|
liftIO $ do
|
||||||
resizeWindow dpy win (fromIntegral $ wa_width attrs - 1) (fromIntegral $ wa_height attrs)
|
resizeWindow dpy win (fromIntegral $ wa_width attrs - 1) (fromIntegral $ wa_height attrs)
|
||||||
resizeWindow dpy win (fromIntegral $ wa_width attrs + 1) (fromIntegral $ wa_height attrs)
|
resizeWindow dpy win (fromIntegral $ wa_width attrs) (fromIntegral $ wa_height attrs)
|
||||||
return $ All True
|
return $ All True
|
||||||
windowedFullscreenFixEventHook _ = return $ All True
|
windowedFullscreenFixEventHook _ = return $ All True
|
||||||
|
Reference in New Issue
Block a user