diff --git a/src/Bar.ahk b/src/Bar.ahk
index 4452d72..35ed113 100644
--- a/src/Bar.ahk
+++ b/src/Bar.ahk
@@ -1,823 +1,835 @@
-/*
- bug.n -- tiling window management
- Copyright (c) 2010-2019 Joshua Fuhs, joten
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- @license GNU General Public License version 3
- ../LICENSE.md or
-
- @version 9.1.0
-*/
-
-Bar_init(m) {
- Local appBarMsg, anyText, color, color0, GuiN, h1, h2, i, id, id0, text, text0, titleWidth, trayWndId, w, wndId, wndTitle, wndWidth, x1, x2, y1, y2
-
- If (SubStr(Config_barWidth, 0) = "%") {
- StringTrimRight, wndWidth, Config_barWidth, 1
- wndWidth := Round(Monitor_#%m%_width * wndWidth / 100)
- } Else
- wndWidth := Config_barWidth
-
- wndWidth := Round(wndWidth / mmngr1.monitors[m].scaleX)
- If (Config_verticalBarPos = "tray" And Monitor_#%m%_taskBarClass) {
- Bar_ctrlHeight := Round(Bar_ctrlHeight / mmngr1.monitors[m].scaleY)
- Bar_height := Round(Bar_height / mmngr1.monitors[m].scaleY)
- }
-
- Monitor_#%m%_barWidth := wndWidth
- titleWidth := wndWidth
- h1 := Bar_ctrlHeight
- x1 := Config_barItemSpacing
- x2 := wndWidth
- y1 := 0
- y2 := (Bar_ctrlHeight - Bar_textHeight) / 2
- h2 := Bar_textHeight
-
- ;; Create the GUI window
- wndTitle := "bug.n_BAR_" m
- GuiN := (m - 1) + 1
- Debug_logMessage("DEBUG[6] Bar_init(): Gui, " . GuiN . ": Default", 6)
- Gui, %GuiN%: Default
- Gui, Destroy
- Gui, -Caption +LabelBar_Gui +LastFound +ToolWindow
- Gui, Color, %Config_backColor_#1_#3%
- Gui, Font, c%Config_fontColor_#1_#3% s%Config_fontSize%, %Config_fontName%
-
- ;; Views
- Loop, % Config_viewCount {
- w := Bar_getTextWidth(Config_viewNames_#%A_Index%)
- Bar_addElement(m, "view_#" A_Index, " " Config_viewNames_#%A_Index%, x1, y1, w, Config_backColor_#1_#1, Config_foreColor_#1_#1, Config_fontColor_#1_#1)
- titleWidth -= w
- x1 += w + Config_barItemSpacing
- }
- ;; Layout
- w := Bar_getTextWidth("??????")
- Bar_addElement(m, "layout", "??????", x1, y1, w, Config_backColor_#1_#2, Config_foreColor_#1_#2, Config_fontColor_#1_#2)
- titleWidth -= w
- x1 += w + Config_barItemSpacing
-
- ;; The x-position and width of the sub-windows right of the window title are set from the right.
- ;; ;;;;