summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2015-09-20 06:23:46 +0300
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2015-09-20 06:23:46 +0300
commit6405e891ba739e4c0ac66e91ce5d35740c7c9f90 (patch)
tree4ea5a19c39ea1c00dc24356d5daeeed2e876e4f5 /src
parentd23722b016a4fd8f52c6bb6c8555d7b0146a5c67 (diff)
downloadmetacity-6405e891ba739e4c0ac66e91ce5d35740c7c9f90.tar.gz
place: fix build warnings
Diffstat (limited to 'src')
-rw-r--r--src/core/place.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/core/place.c b/src/core/place.c
index d70cdd42..dc3ad1dc 100644
--- a/src/core/place.c
+++ b/src/core/place.c
@@ -320,6 +320,8 @@ find_most_freespace (MetaWindow *window,
else
*new_y = work_area.y + work_area.height - outer.height + frame_size_top;
break;
+ default:
+ break;
}
}
@@ -395,6 +397,9 @@ rectangle_overlaps_some_window (MetaRectangle *rect,
if (meta_rectangle_intersect (rect, &other_rect, &dest))
return TRUE;
break;
+
+ default:
+ break;
}
tmp = tmp->next;
@@ -705,6 +710,10 @@ find_preferred_position (MetaWindow *window,
*new_y += work_area.y;
break;
+ case META_PLACEMENT_MODE_SMART:
+ case META_PLACEMENT_MODE_CASCADE:
+ break;
+
default:
meta_warning ("Unknown window-placement option chosen.\n");
return FALSE;
@@ -763,6 +772,9 @@ meta_window_place (MetaWindow *window,
case META_WINDOW_MENU:
case META_WINDOW_UTILITY:
goto done_no_constraints;
+
+ default:
+ goto done_no_constraints;
}
if (meta_prefs_get_disable_workarounds ())
@@ -802,6 +814,9 @@ meta_window_place (MetaWindow *window,
goto done_no_constraints;
}
break;
+
+ default:
+ break;
}
}
else