# This patch adds some parantheses in the code to avoid some compiler
# warnings.

diff -Naur flwm-1.02+cvs20080422.orig/Frame.C flwm-1.02+cvs20080422/Frame.C
--- flwm-1.02+cvs20080422.orig/Frame.C	2008-05-14 14:40:28.000000000 +0200
+++ flwm-1.02+cvs20080422/Frame.C	2008-05-14 14:43:34.000000000 +0200
@@ -915,7 +915,7 @@
   // preserving stacking order:
   for (p = &first; *p;) {
     Frame* f = *p;
-    if (f == this || f->is_transient_for(this) && f->state() != UNMAPPED) {
+    if (f == this || (f->is_transient_for(this) && f->state() != UNMAPPED)) {
       *p = f->next; // remove it from list
       if (previous) {
 	XWindowChanges w;
@@ -970,7 +970,7 @@
 
 void Frame::iconize() {
   for (Frame* c = first; c; c = c->next) {
-    if (c == this || c->is_transient_for(this) && c->state() != UNMAPPED)
+    if (c == this || (c->is_transient_for(this) && c->state() != UNMAPPED))
       c->state(ICONIC);
   }
 }
@@ -1163,7 +1163,7 @@
 #endif
   }
   if (min_h == max_h || flag(KEEP_ASPECT|NO_RESIZE) ||
-      !max_h_button.value() && by+label_w+2*BUTTON_H > h()-BUTTON_BOTTOM) {
+      (!max_h_button.value() && by+label_w+2*BUTTON_H > h()-BUTTON_BOTTOM)) {
     max_h_button.hide();
   } else {
     max_h_button.position(BUTTON_LEFT,by);
@@ -1171,7 +1171,7 @@
     by += BUTTON_H;
   }
   if (min_w == max_w || flag(KEEP_ASPECT|NO_RESIZE) ||
-      !max_w_button.value() && by+label_w+2*BUTTON_H > h()-BUTTON_BOTTOM) {
+      (!max_w_button.value() && by+label_w+2*BUTTON_H > h()-BUTTON_BOTTOM)) {
     max_w_button.hide();
   } else {
     max_w_button.position(BUTTON_LEFT,by);
@@ -1646,8 +1646,8 @@
 	nh = iy+ih-(Fl::event_y_root()-dy);
       else {ny = y(); nh = h();}
       if (flag(KEEP_ASPECT)) {
-	if (nw-dwidth > nh-dwidth
-	    && (what&(FL_ALIGN_LEFT|FL_ALIGN_RIGHT))
+	if ((nw-dwidth > nh-dwidth
+	    && (what&(FL_ALIGN_LEFT|FL_ALIGN_RIGHT)))
 	    || !(what&(FL_ALIGN_TOP|FL_ALIGN_BOTTOM)))
 	  nh = nw-dwidth+dheight;
 	else
diff -Naur flwm-1.02+cvs20080422.orig/Hotkeys.C flwm-1.02+cvs20080422/Hotkeys.C
--- flwm-1.02+cvs20080422.orig/Hotkeys.C	2008-05-14 14:40:28.000000000 +0200
+++ flwm-1.02+cvs20080422/Hotkeys.C	2008-05-14 14:46:58.000000000 +0200
@@ -182,8 +182,8 @@
 int Handle_Hotkey() {
   for (int i = 0; keybindings[i].key; i++) {
     if (Fl::test_shortcut(keybindings[i].key) ||
-	(keybindings[i].key & 0xFFFF) == FL_Delete
-	&& Fl::event_key() == FL_BackSpace// fltk bug?
+	((keybindings[i].key & 0xFFFF) == FL_Delete
+	&& Fl::event_key() == FL_BackSpace)// fltk bug?
 	) {
       keybindings[i].func();
       return 1;
diff -Naur flwm-1.02+cvs20080422.orig/Menu.C flwm-1.02+cvs20080422/Menu.C
--- flwm-1.02+cvs20080422.orig/Menu.C	2008-05-14 14:40:28.000000000 +0200
+++ flwm-1.02+cvs20080422/Menu.C	2008-05-14 14:45:50.000000000 +0200
@@ -568,7 +568,7 @@
       if (d == Desktop::current()) first_on_desk = menu+n;
       for (c = Frame::first; c; c = c->next) {
 	if (c->state() == UNMAPPED || c->transient_for()) continue;
-	if (c->desktop() == d || !c->desktop() && d == Desktop::current()) {
+	if (c->desktop() == d || (!c->desktop() && d == Desktop::current())) {
 	  init(menu[n],(char*)c);
 #if FL_MAJOR_VERSION < 2
 	  init(menu[n],(char*)c);
