mirror of
https://github.com/amiwm/amiwm.git
synced 2026-04-14 11:04:18 +00:00
[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.
This commit is contained in:
3
main.c
3
main.c
@@ -820,9 +820,12 @@ void internal_broker(XEvent *e)
|
|||||||
|
|
||||||
static void update_clock(void *dontcare)
|
static void update_clock(void *dontcare)
|
||||||
{
|
{
|
||||||
|
Scrn *scr;
|
||||||
|
|
||||||
if(server_grabs)
|
if(server_grabs)
|
||||||
return;
|
return;
|
||||||
call_out(prefs.titleclockinterval, 0, update_clock, dontcare);
|
call_out(prefs.titleclockinterval, 0, update_clock, dontcare);
|
||||||
|
|
||||||
scr = get_front_scr();
|
scr = get_front_scr();
|
||||||
do {
|
do {
|
||||||
redrawmenubar(scr->menubar);
|
redrawmenubar(scr->menubar);
|
||||||
|
|||||||
Reference in New Issue
Block a user