summaryrefslogtreecommitdiff
path: root/openbox/frame.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-07-30 16:25:08 +0000
committerDana Jansens <danakj@orodu.net>2003-07-30 16:25:08 +0000
commit54ad34a039d5d83d61c481aaef18d1ea7876d36e (patch)
tree789780d745ce38950ca0fdcc7aa1bbff0b62ca95 /openbox/frame.c
parent9e9e6278d5497b62ee29e60a1a6b79a1d89048e1 (diff)
move the titlebar layout from the theme to the rc file
Diffstat (limited to 'openbox/frame.c')
-rw-r--r--openbox/frame.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/openbox/frame.c b/openbox/frame.c
index 05ac3c71..a66bef93 100644
--- a/openbox/frame.c
+++ b/openbox/frame.c
@@ -2,6 +2,7 @@
#include "client.h"
#include "openbox.h"
#include "extensions.h"
+#include "config.h"
#include "framerender.h"
#include "render/theme.h"
@@ -429,7 +430,7 @@ static void layout_title(ObFrame *self)
/* 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 */
@@ -487,7 +488,7 @@ static void layout_title(ObFrame *self)
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;