#include "plugin.h"
#include "render.h"
+#include "openbox/config.h"
+#include "openbox/openbox.h"
+
/* Needed for the _() function */
#include <gettext.h>
g_hash_table_remove(window_map, &self->rgriptop);
g_hash_table_remove(window_map, &self->rgripbottom);
- obt_main_loop_timeout_remove_data(plugin.ob_main_loop, flash_timeout, self,
+ obt_main_loop_timeout_remove_data(ob_main_loop, flash_timeout, self,
TRUE);
}
self->flash_on = self->focused;
if (!self->flashing)
- obt_main_loop_timeout_add(plugin.ob_main_loop, G_USEC_PER_SEC * 0.6,
+ obt_main_loop_timeout_add(ob_main_loop, G_USEC_PER_SEC * 0.6,
flash_timeout, self, g_direct_equal, flash_done);
g_get_current_time(&self->flash_end);
g_time_val_add(&self->flash_end, G_USEC_PER_SEC * 5);
frame_adjust_cursors(self);
if (self->decorations & OB_FRAME_DECOR_BORDER
- || (plugin.config_theme_keepborder)) {
+ || (config_theme_keepborder)) {
self->bwidth = theme_config.fbwidth;
}
else {
gint dir)
{
ObDefaultFrame * self = (ObDefaultFrame *) _self;
- for (; *lc != '\0' && lc >= plugin.config_title_layout; lc += dir) {
+ for (; *lc != '\0' && lc >= config_title_layout; lc += dir) {
if (*lc == ' ')
continue; /* it was invalid */
if (*lc == 'N' && self->decorations & OB_FRAME_DECOR_ICON)
if (i > 0) {
x = left;
- lc = plugin.config_title_layout;
+ lc = config_title_layout;
firstcon = &self->leftmost;
}
else {
x = right;
- lc = plugin.config_title_layout
- + strlen(plugin.config_title_layout)-1;
+ lc = config_title_layout
+ + strlen(config_title_layout)-1;
firstcon = &self->rightmost;
}
/* stop at the end of the string (or the label, which calls break) */
- for (; *lc != '\0' && lc >= plugin.config_title_layout; lc+=i) {
+ for (; *lc != '\0' && lc >= config_title_layout; lc+=i) {
if (*lc == 'L') {
if (i > 0) {
self->label_on = TRUE;
frame_trigger, /* */
load_theme_config, /* */
/* This fields are fill by openbox. */
- 0, /*gboolean config_theme_keepborder; */
0, /*struct _ObClient *focus_cycle_target; */
- 0, /*gchar *config_title_layout; */
FALSE, /*gboolean moveresize_in_progress;*/
- 0, /*struct _ObMainLoop *ob_main_loop;*/
};
ObFrameEngine * get_info()
//self->ob_display = obt_display;
//self->ob_screen = ob_screen;
//self->ob_rr_inst = ob_rr_inst;
- self->config_theme_keepborder = config_theme_keepborder;
- self->config_title_layout = config_title_layout;
- self->ob_main_loop = ob_main_loop;
+ //self->config_theme_keepborder = config_theme_keepborder;
+ //self->config_title_layout = config_title_layout;
+ //self->ob_main_loop = ob_main_loop;
}
ObFrameEngine * load_frame_plugin(const gchar * filename)
RrFont *menu_item_font, RrFont *osd_font);
/* Filled by openbox-core */
- //Display * ob_display;
- //gint ob_screen;
- //RrInstance *ob_rr_inst;
- // Not more needed
- //struct _RrTheme * ob_rr_theme;
- gboolean config_theme_keepborder;
struct _ObClient *focus_cycle_target;
- gchar *config_title_layout;
gboolean moveresize_in_progress;
- struct _ObtMainLoop *ob_main_loop;
+ //struct _ObtMainLoop *ob_main_loop;
};
/* Define how to draw the current windows */
enum _ObStyle