From ac40942a45fc8c425fb349b25119a607a7b150a0 Mon Sep 17 00:00:00 2001 From: joshua Date: Sat, 23 Dec 2023 21:48:11 -0500 Subject: initial commits complete, need to fix where clicking a status bar makes one of the status windows go away --- config.h | 7 +------ dwm.c | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/config.h b/config.h index 843566b..6591889 100644 --- a/config.h +++ b/config.h @@ -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} }, diff --git a/dwm.c b/dwm.c index 7ff8f2e..1653da8 100644 --- a/dwm.c +++ b/dwm.c @@ -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) < ' ') { -- cgit v1.2.3