diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-07-10 05:44:23 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-07-10 05:44:23 +0000 |
| commit | 6357583c396382dd6ed8ac42004177f204fabe62 (patch) | |
| tree | 0164f35e5fd59bdc2092b0d63dc35db8ae4152c5 /openbox/client.c | |
| parent | 416b9d5f5f53468f954abbdffbc40003032c7f9a (diff) | |
rename 'xinerama' stuff to 'monitors' to be more generic and descriptive.
Diffstat (limited to 'openbox/client.c')
| -rw-r--r-- | openbox/client.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/openbox/client.c b/openbox/client.c index 13b2e9c0..bdf9ed0d 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -1613,8 +1613,8 @@ void client_configure(Client *self, Corner anchor, int x, int y, int w, int h, 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 */ @@ -1640,7 +1640,7 @@ void client_configure(Client *self, Corner anchor, int x, int y, int w, int h, } 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) { @@ -1845,7 +1845,7 @@ void client_fullscreen(Client *self, gboolean fs, gboolean savearea) 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; @@ -2004,7 +2004,7 @@ void client_maximize(Client *self, gboolean max, int dir, gboolean savearea) 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; @@ -2566,17 +2566,17 @@ void client_set_layer(Client *self, int layer) 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; } |
