diff options
author | joshua <joshua@joshuayun.com> | 2023-12-23 21:48:11 -0500 |
---|---|---|
committer | joshua <joshua@joshuayun.com> | 2023-12-23 21:48:11 -0500 |
commit | ac40942a45fc8c425fb349b25119a607a7b150a0 (patch) | |
tree | 1661a40426b6d3b621d3b7171429b9a530aca5ee | |
parent | c35fb342aab4fef5174f56d0df634990a4b74ae8 (diff) | |
download | dwm-ac40942a45fc8c425fb349b25119a607a7b150a0.tar.gz |
initial commits complete, need to fix where clicking a status bar makes one of the status windows go away
-rw-r--r-- | config.h | 7 | ||||
-rw-r--r-- | dwm.c | 2 |
2 files changed, 2 insertions, 7 deletions
@@ -22,7 +22,7 @@ static int showbar = 1; /* 0 means no bar */ static int topbar = 1; /* 0 means bottom bar */ static char font[] = "monospace:size=10"; static char dmenufont[] = "monospace:size=10"; -static const char *fonts[] = { font, "Mononoki Nerd Font:pixelsize=16:antialias=true:autohint=true", "JoyPixels:pixelsize=16:antialias=true:autohint=true" }; +static const char *fonts[] = { font, "Mononoki Nerd Font:pixelsize=16:antialias=true:autohint=true", "JoyPixels:pixelsize=12:antialias=true:autohint=true" }; static char normbgcolor[] = "#222222"; static char normbordercolor[] = "#444444"; static char normfgcolor[] = "#bbbbbb"; @@ -264,15 +264,10 @@ static const Key keys[] = { static Button buttons[] = { /* click event mask button function argument */ -#ifndef __OpenBSD__ { ClkWinTitle, 0, Button2, zoom, {0} }, { ClkStatusText, 0, Button1, sigstatusbar, {.i = 1} }, { ClkStatusText, 0, Button2, sigstatusbar, {.i = 2} }, { ClkStatusText, 0, Button3, sigstatusbar, {.i = 3} }, - { ClkStatusText, 0, Button4, sigstatusbar, {.i = 4} }, - { ClkStatusText, 0, Button5, sigstatusbar, {.i = 5} }, - { ClkStatusText, ShiftMask, Button1, sigstatusbar, {.i = 6} }, -#endif { ClkClientWin, MODKEY, Button1, movemouse, {0} }, { ClkClientWin, MODKEY, Button2, defaultgaps, {0} }, { ClkClientWin, MODKEY, Button3, resizemouse, {0} }, @@ -589,7 +589,7 @@ buttonpress(XEvent *e) click = ClkLtSymbol; else if (ev->x > selmon->ww - statusw - getsystraywidth()) { click = ClkStatusText; - x = selmon->ww - statusw; + x = selmon->ww - statusw - getsystraywidth(); statussig = 0; for (text = s = stext; *s && x <= ev->x; s++) { if ((unsigned char)(*s) < ' ') { |