Ensure that the "border" command uses logical pixels.

Until now, only the config directive for borders (new_window,
new_float) respected the DPI setting (using logical_px). This
patch makes sure we also do so for runtime "border" commands.

fixes #2202
This commit is contained in:
Ingo Bürk
2016-02-09 21:03:44 +01:00
parent 1e23e55c5e
commit 6cbff6bfd4
4 changed files with 25 additions and 25 deletions

View File

@ -86,15 +86,15 @@ state BORDER:
border_style = 'normal', 'pixel'
-> BORDER_WIDTH
border_style = 'none', 'toggle'
-> call cmd_border($border_style, "0")
-> call cmd_border($border_style, 0)
border_style = '1pixel'
-> call cmd_border($border_style, "1")
-> call cmd_border($border_style, 1)
state BORDER_WIDTH:
end
-> call cmd_border($border_style, "2")
border_width = word
-> call cmd_border($border_style, $border_width)
-> call cmd_border($border_style, 2)
border_width = number
-> call cmd_border($border_style, &border_width)
# layout default|stacked|stacking|tabbed|splitv|splith
# layout toggle [split|all]