Skip to content

Commit 50f1c36

Browse files
authored
fix topbar x position when taskbar is docked on left (#47)
1 parent 0fc60a5 commit 50f1c36

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/dwm-win32.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ static HWINEVENTHOOK wineventhook;
207207
static HFONT font;
208208
static wchar_t stext[256];
209209
static int sx, sy, sw, sh; /* X display screen geometry x, y, width, height */
210-
static int by, bh, blw; /* bar geometry y, height and layout symbol width */
210+
static int bx, by, bh, blw; /* bar geometry x, y, height and layout symbol width */
211211
static int wx, wy, ww, wh; /* window area geometry x, y, width, height, bar excluded */
212212
static unsigned int seltags, sellt;
213213

@@ -1527,7 +1527,7 @@ unmanage(Client *c) {
15271527

15281528
void
15291529
updatebar(void) {
1530-
SetWindowPos(barhwnd, showbar ? HWND_TOPMOST : HWND_NOTOPMOST, 0, by, ww, bh, (showbar ? SWP_SHOWWINDOW : SWP_HIDEWINDOW) | SWP_NOACTIVATE | SWP_NOSENDCHANGING);
1530+
SetWindowPos(barhwnd, showbar ? HWND_TOPMOST : HWND_NOTOPMOST, bx, by, ww, bh, (showbar ? SWP_SHOWWINDOW : SWP_HIDEWINDOW) | SWP_NOACTIVATE | SWP_NOSENDCHANGING);
15311531
}
15321532

15331533
void
@@ -1550,6 +1550,7 @@ updategeom(void) {
15501550
sh = GetSystemMetrics(SM_CYVIRTUALSCREEN);
15511551
}
15521552

1553+
bx = sx;
15531554
bh = 20; /* XXX: fixed value */
15541555

15551556
/* window area geometry */

0 commit comments

Comments
 (0)