From e42512c034fd17a4a0b33595b2de65d979878f5a Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Mon, 25 Apr 2022 19:03:50 -0700 Subject: [PATCH] [amiwm] Don't use global scr for this iteration The global scr is a bit of an overused thing. It's definitely not needed here. Don't use it here. --- main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.c b/main.c index 6c8f90f..a6f43d1 100644 --- a/main.c +++ b/main.c @@ -820,9 +820,12 @@ void internal_broker(XEvent *e) static void update_clock(void *dontcare) { + Scrn *scr; + if(server_grabs) return; call_out(prefs.titleclockinterval, 0, update_clock, dontcare); + scr = get_front_scr(); do { redrawmenubar(scr->menubar);