Fix some signed/unsigned warnings (and keep stuff within 80 columns).

This commit is contained in:
Dana Jansens 2009-11-21 15:16:37 -05:00
parent 00cb161ec6
commit 056295a8ad

View file

@ -119,16 +119,24 @@ static gboolean run_func(ObActionsData *data, gpointer options)
if (data->client) { if (data->client) {
Rect *area, *carea; Rect *area, *carea;
ObClient *c; ObClient *c;
gint mon, cmon; guint mon, cmon;
gint x, y, lw, lh, w, h; gint x, y, lw, lh, w, h;
c = data->client; c = data->client;
mon = o->monitor; mon = o->monitor;
cmon = client_monitor(c); cmon = client_monitor(c);
if (mon == CURRENT_MONITOR) mon = cmon; switch (mon) {
else if (mon == ALL_MONITORS) mon = SCREEN_AREA_ALL_MONITORS; case CURRENT_MONITOR:
else if (mon == NEXT_MONITOR) mon = (cmon + 1 > screen_num_monitors - 1) ? 0 : (cmon + 1); mon = cmon; break;
else if (mon == PREV_MONITOR) mon = (cmon == 0) ? (screen_num_monitors - 1) : (cmon - 1); case ALL_MONITORS:
mon = SCREEN_AREA_ALL_MONITORS; break;
case NEXT_MONITOR:
mon = (cmon + 1 > screen_num_monitors - 1) ? 0 : (cmon + 1); break;
case PREV_MONITOR:
mon = (cmon == 0) ? (screen_num_monitors - 1) : (cmon - 1); break;
default:
g_assert_not_reached();
}
area = screen_area(c->desktop, mon, NULL); area = screen_area(c->desktop, mon, NULL);
carea = screen_area(c->desktop, cmon, NULL); carea = screen_area(c->desktop, cmon, NULL);