#include "client.h"
#include "openbox.h"
#include "extensions.h"
+#include "config.h"
#include "framerender.h"
#include "render/theme.h"
/* figure out whats being shown, and the width of the label */
self->label_width = self->width - (ob_rr_theme->bevel + 1) * 2;
- for (lc = ob_rr_theme->title_layout; *lc != '\0'; ++lc) {
+ for (lc = config_title_layout; *lc != '\0'; ++lc) {
switch (*lc) {
case 'N':
if (n) { *lc = ' '; break; } /* rm duplicates */
if (!c) XUnmapWindow(ob_display, self->close);
x = ob_rr_theme->bevel + 1;
- for (lc = ob_rr_theme->title_layout; *lc != '\0'; ++lc) {
+ for (lc = config_title_layout; *lc != '\0'; ++lc) {
switch (*lc) {
case 'N':
if (!n) break;
switch (self->client->gravity) {
default:
case NorthWestGravity:
- case WestGravity:
- case SouthWestGravity:
- break;
case NorthGravity:
+ case NorthEastGravity:
+ break;
+ case WestGravity:
case CenterGravity:
- case SouthGravity:
+ case EastGravity:
*y += (self->size.top + self->size.bottom) / 2;
break;
- case NorthEastGravity:
- case EastGravity:
+ case SouthWestGravity:
+ case SouthGravity:
case SouthEastGravity:
*y += self->size.top + self->size.bottom;
break;