mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-04 04:44:16 +01:00
fixes to comply to ANSI C
This commit is contained in:
@@ -135,17 +135,17 @@ wGetRectPlacementInfo(WScreen *scr, WMRect rect, int *flags)
|
||||
|
||||
totalArea += a;
|
||||
if (a > area) {
|
||||
if ( best != -1)
|
||||
if (best != -1)
|
||||
*flags |= XFLAG_MULTIPLE;
|
||||
area = a;
|
||||
best = i;
|
||||
}
|
||||
}
|
||||
|
||||
if ( best == -1) {
|
||||
if (best == -1) {
|
||||
*flags |= XFLAG_DEAD;
|
||||
best = wGetHeadForPointerLocation(scr);
|
||||
} else if ( totalArea != rw*rh)
|
||||
} else if (totalArea != rw*rh)
|
||||
*flags |= XFLAG_PARTIAL;
|
||||
|
||||
return best;
|
||||
@@ -242,7 +242,7 @@ wGetHeadForPoint(WScreen *scr, WMPoint point, int *flags)
|
||||
int i;
|
||||
|
||||
// paranoia
|
||||
if ( flags == NULL) {
|
||||
if (flags == NULL) {
|
||||
static int tmp;
|
||||
flags = &tmp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user