2006-02-14
* Drastically simplified own_window=yes window creation code.
+ * on_bottom and wm_class_name deprecated (they do nothing)
2006-02-13
* Fixed typo bug in portmon code that caused incorrect monitor data
#ifdef X11
update_text_area(); /* to get initial size of the window */
-#if defined OWN_WINDOW
- init_window
- (own_window,
- wm_class_name,
- text_width + border_margin * 2 + 1,
- text_height + border_margin * 2 + 1,
- on_bottom, fixed_pos, set_transparent, background_colour, info.uname_s.nodename);
-#else
init_window
(own_window,
text_width + border_margin * 2 + 1,
text_height + border_margin * 2 + 1,
- on_bottom, set_transparent, background_colour, info.uname_s.nodename);
+ set_transparent, background_colour, info.uname_s.nodename);
-#endif
-
update_text_area(); /* to position text/window on screen */
#endif /* X11 */
extern struct conky_window window;
void init_X11();
-#if defined OWN_WINDOW
-void init_window(int use_own_window, char* wm_class_name, int width, int height, int on_bottom, int fixed_pos, int set_trans, int back_colour, char * nodename);
-#else
-void init_window(int use_own_window, int width, int height, int on_bottom, int set_trans, int back_colour, char * nodename);
-#endif
+void init_window(int use_own_window, int width, int height, int set_trans, int back_colour, char * nodename);
void create_gc();
void set_transparent_background(Window win);
long get_x11_color(const char *);
//XClearWindow(display, win); not sure why this was here
}
-#if defined OWN_WINDOW
-void init_window(int own_window, char* wm_class_name, int w, int h, int l, int fixed_pos, int set_trans, int back_colour, char * nodename)
-#else
-void init_window(int own_window, int w, int h, int l, int set_trans, int back_colour, char * nodename)
-#endif
+void init_window(int own_window, int w, int h, int set_trans, int back_colour, char * nodename)
{
/* There seems to be some problems with setting transparent background (on
* fluxbox this time). It doesn't happen always and I don't know why it
set_transparent = set_trans;
background_colour = back_colour;
- wm_class_name = (char *)wm_class_name;
- l = (int)l;
- fixed_pos = (int)fixed_pos;
nodename = (char *)nodename;
#ifdef OWN_WINDOW