Rect *a;
guint i;
- i = client_xinerama_area(self);
- a = screen_physical_area_xinerama(i);
+ i = client_monitor(self);
+ a = screen_physical_area_monitor(i);
#ifdef VIDMODE
if (i == 0 && /* primary head */
} else {
Rect *a;
- a = screen_area_xinerama(self->desktop, client_xinerama_area(self));
+ a = screen_area_monitor(self->desktop, client_monitor(self));
/* set the size and position if maximized */
if (self->max_horz) {
Rect *a;
/* pick some fallbacks... */
- a = screen_area_xinerama(self->desktop, 0);
+ a = screen_area_monitor(self->desktop, 0);
x = a->x + a->width / 4;
y = a->y + a->height / 4;
w = a->width / 2;
Rect *a;
/* pick some fallbacks... */
- a = screen_area_xinerama(self->desktop, 0);
+ a = screen_area_monitor(self->desktop, 0);
if (dir == 0 || dir == 1) { /* horz */
x = a->x + a->width / 4;
w = a->width / 2;
client_change_state(self); /* reflect this in the state hints */
}
-guint client_xinerama_area(Client *self)
+guint client_monitor(Client *self)
{
guint i;
- for (i = 0; i < screen_num_xin_areas; ++i) {
- Rect *area = screen_physical_area_xinerama(i);
+ for (i = 0; i < screen_num_monitors; ++i) {
+ Rect *area = screen_physical_area_monitor(i);
if (RECT_INTERSECTS_RECT(*area, self->frame->area))
break;
}
- if (i == screen_num_xin_areas) i = 0;
- g_assert(i < screen_num_xin_areas);
+ if (i == screen_num_monitors) i = 0;
+ g_assert(i < screen_num_monitors);
return i;
}