mirror of
https://github.com/amiwm/amiwm.git
synced 2026-04-14 11:04:18 +00:00
[amiwm] Do another pass to clean up build warnings
This is mostly a "dangling if" cleanup, but I did add some other comments here and there!
This commit is contained in:
12
menu.c
12
menu.c
@@ -46,6 +46,7 @@ extern void select_all_icons(Scrn *i);
|
||||
extern void mod_menuselect(struct module *, int, int, int);
|
||||
extern void setfocus(Window);
|
||||
extern void flushmodules();
|
||||
extern void wberror(Scrn *, char *);
|
||||
|
||||
Scrn *mbdclick=NULL, *mbdscr=NULL;
|
||||
|
||||
@@ -361,7 +362,8 @@ void redraw_item(struct Item *i, Window w)
|
||||
void createmenubar()
|
||||
{
|
||||
XSetWindowAttributes attr;
|
||||
struct Menu *m, *sm1, *sm2, *sm3;
|
||||
struct Menu *m, *sm1;
|
||||
// struct Menu *sm2, *sm3;
|
||||
struct ToolItem *ti;
|
||||
GC gc;
|
||||
|
||||
@@ -575,11 +577,13 @@ static void leave_item(struct Item *i, Window w)
|
||||
{
|
||||
if(i==activesubitem)
|
||||
activesubitem=NULL;
|
||||
if(i==activeitem)
|
||||
if(activesubmenu && i->sub==activesubmenu)
|
||||
if(i==activeitem) {
|
||||
if(activesubmenu && i->sub==activesubmenu) {
|
||||
return;
|
||||
else
|
||||
} else {
|
||||
activeitem=NULL;
|
||||
}
|
||||
}
|
||||
XSetWindowBackground(dpy, i->win, scr->dri.dri_Pens[BARBLOCKPEN]);
|
||||
XClearWindow(dpy, i->win);
|
||||
redraw_item(i, i->win);
|
||||
|
||||
Reference in New Issue
Block a user