X.L.VoidBorders: Improve doc a bit

This commit is contained in:
Tomas Janousek
2022-02-01 18:39:33 +00:00
parent a3012eaa27
commit c4d718be9a
2 changed files with 7 additions and 5 deletions

View File

@@ -110,7 +110,7 @@
different X property) to communicate trayer resize events to different X property) to communicate trayer resize events to
XMobar so that padding space may be reserved on xmobar for the XMobar so that padding space may be reserved on xmobar for the
tray. Requires `xmobar` version 0.40 or higher. tray. Requires `xmobar` version 0.40 or higher.
- `XMonad.Layout.VoidBorders` - `XMonad.Layout.VoidBorders`
- Added new layout modifier `normalBorders` which can be used for - Added new layout modifier `normalBorders` which can be used for

View File

@@ -13,11 +13,14 @@
-- Portability : unportable -- Portability : unportable
-- --
-- Modifies a layout to set borders to 0 for all windows in the workspace. -- Modifies a layout to set borders to 0 for all windows in the workspace.
-- It can also restore the window border if the window is moved to a different --
-- workspace or if the layout is changed. -- Unlike "XMonad.Layout.NoBorders", the 'voidBorders' modifier will not
-- restore the window border if the windows are moved to a different workspace
-- or the layout is changed. There is, however, a companion 'normalBorders'
-- modifier which explicitly restores the border.
-- --
-- This modifier's primary use is to eliminate the "border flash" you get -- This modifier's primary use is to eliminate the "border flash" you get
-- while switching workspaces with the `noBorders` modifier. -- while switching workspaces with the "XMonad.Layout.NoBorders" modifier.
-- --
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
@@ -83,4 +86,3 @@ resetBorders w = asks (borderWidth . config) >>= setBorders w
setBorders :: Window -> Dimension -> X () setBorders :: Window -> Dimension -> X ()
setBorders w bw = withDisplay $ \d -> io $ setWindowBorderWidth d w bw setBorders w bw = withDisplay $ \d -> io $ setWindowBorderWidth d w bw