mirror of
https://github.com/amiwm/amiwm.git
synced 2026-04-14 11:04:18 +00:00
[amiwm] Fix NULL scr issue
If the clock timer fires when global scr is NULL then we end up calling redrawmenubar() with a NULL global scr, but a valid local scr. So just pass in the scr used when doing "stuff" into redrawmenubar(), making the 'scr' in redrawmenubar() also local scope.
This commit is contained in:
2
menu.c
2
menu.c
@@ -494,7 +494,7 @@ void createmenubar()
|
||||
* This takes in the target window, which may be the basic menubar,
|
||||
* a clicked-on menu, or the depth widget.
|
||||
*/
|
||||
void redrawmenubar(Window w)
|
||||
void redrawmenubar(Scrn *scr, Window w)
|
||||
{
|
||||
static const char defaultTimeFormat[] = "%c";
|
||||
int widget_rhs;
|
||||
|
||||
Reference in New Issue
Block a user