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:
@@ -296,11 +296,12 @@ int main(int argc, char *argv[])
|
||||
XNextEvent(dpy, &event);
|
||||
switch(event.type) {
|
||||
case Expose:
|
||||
if(!event.xexpose.count)
|
||||
if(!event.xexpose.count) {
|
||||
if(event.xexpose.window == textwin)
|
||||
refresh_text();
|
||||
else if((c=getchoice(event.xexpose.window)))
|
||||
refresh_choice(c);
|
||||
}
|
||||
break;
|
||||
case LeaveNotify:
|
||||
if(depressed && event.xcrossing.window==selected->win) {
|
||||
@@ -323,11 +324,12 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
break;
|
||||
case ButtonRelease:
|
||||
if(event.xbutton.button==Button1 && selected)
|
||||
if(event.xbutton.button==Button1 && selected) {
|
||||
if(depressed)
|
||||
endchoice();
|
||||
else
|
||||
abortchoice();
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user