added a configure flag for enabling/disabling bitmap buttons

This commit is contained in:
Scott Moynes 2002-09-14 05:43:57 +00:00
parent c196ecd878
commit e0d619e309
6 changed files with 102 additions and 27 deletions

View file

@ -249,6 +249,25 @@ if test x$TIMEDCACHE = "xyes"; then
AC_DEFINE(TIMEDCACHE,1,Use timed pixmap cache) AC_DEFINE(TIMEDCACHE,1,Use timed pixmap cache)
fi fi
dnl Check for bitmapped buttons
BITMAPBUTTONS=""
AC_MSG_CHECKING([whether to include bitmappable buttons])
AC_ARG_ENABLE(
bitmap-buttons,
[ --enable-bitmap-buttons include bitmappable buttons [default=yes]],
if test x$enableval = "xyes"; then
AC_MSG_RESULT([yes])
BITMAPBUTTONS="yes"
else
AC_MSG_RESULT([no])
fi,
AC_MSG_RESULT([yes])
BITMAPBUTTONS="yes"
)
if test x$BITMAPBUTTONS = "xyes"; then
AC_DEFINE(BITMAPBUTTONS,1,Include bitmappable buttons)
fi
dnl Determine the return type of signal handlers dnl Determine the return type of signal handlers
AC_TYPE_SIGNAL AC_TYPE_SIGNAL

View file

@ -621,6 +621,7 @@ void Basemenu::drawItem(int index, bool highlight, bool clear,
} }
if (dooppsel && item->isSelected()) { if (dooppsel && item->isSelected()) {
#ifdef BITMAPBUTTONS
if ( style->tick_image.mask != None) { if ( style->tick_image.mask != None) {
XSetClipOrigin(blackbox->getXDisplay(), pen.gc(), XSetClipOrigin(blackbox->getXDisplay(), pen.gc(),
oppsel_x, item_y + menu.item_h/2 - style->tick_image.h/2); oppsel_x, item_y + menu.item_h/2 - style->tick_image.h/2);
@ -637,6 +638,7 @@ void Basemenu::drawItem(int index, bool highlight, bool clear,
XSetClipOrigin(blackbox->getXDisplay(), pen.gc(), XSetClipOrigin(blackbox->getXDisplay(), pen.gc(),
0, 0); 0, 0);
} else { } else {
#endif // BITMAPBUTTONS
XPoint pts[6]; XPoint pts[6];
pts[0].x = oppsel_x + 0; pts[0].x = oppsel_x + 0;
@ -660,7 +662,9 @@ void Basemenu::drawItem(int index, bool highlight, bool clear,
XFillPolygon(display, menu.frame, pen.gc(), pts, 6, Nonconvex, XFillPolygon(display, menu.frame, pen.gc(), pts, 6, Nonconvex,
CoordModePrevious); CoordModePrevious);
#ifdef BITMAPBUTTONS
} }
#endif // BITMAPBUTTONS
} }
if (dotext && text) { if (dotext && text) {
@ -672,6 +676,7 @@ void Basemenu::drawItem(int index, bool highlight, bool clear,
} }
if (dosel && item->submenu()) { if (dosel && item->submenu()) {
#ifdef BITMAPBUTTONS
if ( style->bullet_image.mask != None) { if ( style->bullet_image.mask != None) {
XSetClipOrigin(blackbox->getXDisplay(), pen.gc(), XSetClipOrigin(blackbox->getXDisplay(), pen.gc(),
sel_x, item_y + menu.item_h/2 - style->bullet_image.h/2); sel_x, item_y + menu.item_h/2 - style->bullet_image.h/2);
@ -687,6 +692,7 @@ void Basemenu::drawItem(int index, bool highlight, bool clear,
XSetClipOrigin(blackbox->getXDisplay(), pen.gc(), XSetClipOrigin(blackbox->getXDisplay(), pen.gc(),
0, 0); 0, 0);
} else { } else {
#endif // BITMAPBUTTONS
const int bullet_size = 3; const int bullet_size = 3;
switch (screen->getMenuStyle()->bullet) { switch (screen->getMenuStyle()->bullet) {
@ -734,7 +740,9 @@ void Basemenu::drawItem(int index, bool highlight, bool clear,
CoordModePrevious); CoordModePrevious);
break; break;
} }
#ifdef BITMAPBUTTONS
} }
#endif // BITMAPBUTTONS
} }
} }

View file

@ -339,6 +339,7 @@ BScreen::~BScreen(void) {
if (resource.tstyle.font) if (resource.tstyle.font)
delete resource.tstyle.font; delete resource.tstyle.font;
#ifdef BITMAPBUTTONS
if (resource.wstyle.close_button.mask != None) if (resource.wstyle.close_button.mask != None)
XFreePixmap(blackbox->getXDisplay(), resource.wstyle.close_button.mask); XFreePixmap(blackbox->getXDisplay(), resource.wstyle.close_button.mask);
if (resource.wstyle.max_button.mask != None) if (resource.wstyle.max_button.mask != None)
@ -363,6 +364,7 @@ BScreen::~BScreen(void) {
resource.wstyle.stick_button.mask = None; resource.wstyle.stick_button.mask = None;
resource.tstyle.left_button.mask = resource.tstyle.right_button.mask = None; resource.tstyle.left_button.mask = resource.tstyle.right_button.mask = None;
resource.mstyle.bullet_image.mask = resource.mstyle.tick_image.mask = None; resource.mstyle.bullet_image.mask = resource.mstyle.tick_image.mask = None;
#endif // BITMAPBUTTONS
XFreeGC(blackbox->getXDisplay(), opGC); XFreeGC(blackbox->getXDisplay(), opGC);
} }
@ -1062,6 +1064,7 @@ void BScreen::LoadStyle(void) {
resource.wstyle.b_pressed = resource.wstyle.b_pressed =
readDatabaseTexture("window.button.pressed", "black", style); readDatabaseTexture("window.button.pressed", "black", style);
#ifdef BITMAPBUTTONS
if (resource.wstyle.close_button.mask != None) if (resource.wstyle.close_button.mask != None)
XFreePixmap(blackbox->getXDisplay(), resource.wstyle.close_button.mask); XFreePixmap(blackbox->getXDisplay(), resource.wstyle.close_button.mask);
if (resource.wstyle.max_button.mask != None) if (resource.wstyle.max_button.mask != None)
@ -1083,6 +1086,7 @@ void BScreen::LoadStyle(void) {
style); style);
readDatabaseMask("window.button.stick.mask", resource.wstyle.stick_button, readDatabaseMask("window.button.stick.mask", resource.wstyle.stick_button,
style); style);
#endif // BITMAPBUTTONS
// we create the window.frame texture by hand because it exists only to // we create the window.frame texture by hand because it exists only to
// make the code cleaner and is not actually used for display // make the code cleaner and is not actually used for display
@ -1124,10 +1128,12 @@ void BScreen::LoadStyle(void) {
resource.wstyle.h_unfocus = resource.wstyle.f_unfocus; resource.wstyle.h_unfocus = resource.wstyle.f_unfocus;
// load toolbar config // load toolbar config
#ifdef BITMAPBUTTONS
if (resource.tstyle.left_button.mask != None) if (resource.tstyle.left_button.mask != None)
XFreePixmap(blackbox->getXDisplay(), resource.tstyle.left_button.mask); XFreePixmap(blackbox->getXDisplay(), resource.tstyle.left_button.mask);
if (resource.tstyle.right_button.mask != None) if (resource.tstyle.right_button.mask != None)
XFreePixmap(blackbox->getXDisplay(), resource.tstyle.right_button.mask); XFreePixmap(blackbox->getXDisplay(), resource.tstyle.right_button.mask);
#endif // BITMAPBUTTONS
resource.tstyle.toolbar = resource.tstyle.toolbar =
readDatabaseTexture("toolbar", "black", style); readDatabaseTexture("toolbar", "black", style);
@ -1149,10 +1155,13 @@ void BScreen::LoadStyle(void) {
readDatabaseColor("toolbar.clock.textColor", "white", style); readDatabaseColor("toolbar.clock.textColor", "white", style);
resource.tstyle.b_pic = resource.tstyle.b_pic =
readDatabaseColor("toolbar.button.picColor", "black", style); readDatabaseColor("toolbar.button.picColor", "black", style);
#ifdef BITMAPBUTTONS
readDatabaseMask("toolbar.button.left.mask", resource.tstyle.left_button, readDatabaseMask("toolbar.button.left.mask", resource.tstyle.left_button,
style); style);
readDatabaseMask("toolbar.button.right.mask", resource.tstyle.right_button, readDatabaseMask("toolbar.button.right.mask", resource.tstyle.right_button,
style); style);
#endif // BITMAPBUTTONS
resource.tstyle.justify = LeftJustify; resource.tstyle.justify = LeftJustify;
if (style.getValue("toolbar.justify", s)) { if (style.getValue("toolbar.justify", s)) {
@ -1171,10 +1180,12 @@ void BScreen::LoadStyle(void) {
} }
// load menu config // load menu config
#ifdef BITMAPBUTTONS
if (resource.mstyle.bullet_image.mask != None) if (resource.mstyle.bullet_image.mask != None)
XFreePixmap(blackbox->getXDisplay(), resource.mstyle.bullet_image.mask); XFreePixmap(blackbox->getXDisplay(), resource.mstyle.bullet_image.mask);
if (resource.mstyle.tick_image.mask != None) if (resource.mstyle.tick_image.mask != None)
XFreePixmap(blackbox->getXDisplay(), resource.mstyle.tick_image.mask); XFreePixmap(blackbox->getXDisplay(), resource.mstyle.tick_image.mask);
#endif // BITMAPBUTTONS
resource.mstyle.title = resource.mstyle.title =
readDatabaseTexture("menu.title", "white", style); readDatabaseTexture("menu.title", "white", style);
@ -1190,8 +1201,11 @@ void BScreen::LoadStyle(void) {
readDatabaseColor("menu.frame.disableColor", "black", style); readDatabaseColor("menu.frame.disableColor", "black", style);
resource.mstyle.h_text = resource.mstyle.h_text =
readDatabaseColor("menu.hilite.textColor", "black", style); readDatabaseColor("menu.hilite.textColor", "black", style);
#ifdef BITMAPBUTTONS
readDatabaseMask("menu.arrow.mask", resource.mstyle.bullet_image, style); readDatabaseMask("menu.arrow.mask", resource.mstyle.bullet_image, style);
readDatabaseMask("menu.selected.mask", resource.mstyle.tick_image, style); readDatabaseMask("menu.selected.mask", resource.mstyle.tick_image, style);
#endif // BITMAPBUTTONS
resource.mstyle.t_justify = LeftJustify; resource.mstyle.t_justify = LeftJustify;
if (style.getValue("menu.title.justify", s)) { if (style.getValue("menu.title.justify", s)) {
@ -2629,6 +2643,7 @@ void BScreen::toggleFocusModel(FocusModel model) {
std::mem_fun(&BlackboxWindow::grabButtons)); std::mem_fun(&BlackboxWindow::grabButtons));
} }
#ifdef BITMAPBUTTONS
void BScreen::readDatabaseMask(const string &rname, PixmapMask &pixmapMask, void BScreen::readDatabaseMask(const string &rname, PixmapMask &pixmapMask,
const Configuration &style) { const Configuration &style) {
string s; string s;
@ -2655,6 +2670,7 @@ void BScreen::readDatabaseMask(const string &rname, PixmapMask &pixmapMask,
pixmapMask.mask = None; pixmapMask.mask = None;
pixmapMask.w = pixmapMask.h = 0; pixmapMask.w = pixmapMask.h = 0;
} }
#endif // BITMAPSUCCESS
BTexture BScreen::readDatabaseTexture(const string &rname, BTexture BScreen::readDatabaseTexture(const string &rname,
const string &default_color, const string &default_color,

View file

@ -61,10 +61,12 @@ struct Strut;
enum TextJustify { LeftJustify = 1, RightJustify, CenterJustify }; enum TextJustify { LeftJustify = 1, RightJustify, CenterJustify };
#ifdef BITMAPBUTTONS
struct PixmapMask { struct PixmapMask {
Pixmap mask; Pixmap mask;
unsigned int w, h; unsigned int w, h;
}; };
#endif // BITMAPBUTTONS
struct WindowStyle { struct WindowStyle {
BColor l_text_focus, l_text_unfocus, b_pic_focus, BColor l_text_focus, l_text_unfocus, b_pic_focus,
@ -72,8 +74,9 @@ struct WindowStyle {
BTexture f_focus, f_unfocus, t_focus, t_unfocus, l_focus, l_unfocus, BTexture f_focus, f_unfocus, t_focus, t_unfocus, l_focus, l_unfocus,
h_focus, h_unfocus, b_focus, b_unfocus, b_pressed, g_focus, g_unfocus; h_focus, h_unfocus, b_focus, b_unfocus, b_pressed, g_focus, g_unfocus;
#ifdef BITMAPBUTTONS
PixmapMask close_button, max_button, icon_button, stick_button; PixmapMask close_button, max_button, icon_button, stick_button;
#endif // BITMAPBUTTONS
BFont *font; BFont *font;
TextJustify justify; TextJustify justify;
@ -86,7 +89,9 @@ struct ToolbarStyle {
BColor l_text, w_text, c_text, b_pic; BColor l_text, w_text, c_text, b_pic;
BTexture toolbar, label, window, button, pressed, clock; BTexture toolbar, label, window, button, pressed, clock;
PixmapMask left_button, right_button; //these should probably be the same #ifdef BITMAPBUTTONS
PixmapMask left_button, right_button;
#endif // BITMAPBUTTONS
BFont *font; BFont *font;
@ -99,8 +104,10 @@ struct ToolbarStyle {
struct MenuStyle { struct MenuStyle {
BColor t_text, f_text, h_text, d_text; BColor t_text, f_text, h_text, d_text;
BTexture title, frame, hilite; BTexture title, frame, hilite;
#ifdef BITMAPBUTTONS
PixmapMask bullet_image, tick_image; PixmapMask bullet_image, tick_image;
#endif // BITMAPBUTTONS
BFont *t_font, *f_font; BFont *t_font, *f_font;
@ -191,9 +198,12 @@ private:
bool parseMenuFile(FILE *file, Rootmenu *menu); bool parseMenuFile(FILE *file, Rootmenu *menu);
#ifdef BITMAPBUTTONS
void readDatabaseMask(const string &rname, void readDatabaseMask(const string &rname,
PixmapMask &pixmapMask, PixmapMask &pixmapMask,
const Configuration &style); const Configuration &style);
#endif // BITMAPBUTTONS
BTexture readDatabaseTexture(const std::string &rname, BTexture readDatabaseTexture(const std::string &rname,
const std::string &default_color, const std::string &default_color,
const Configuration &style); const Configuration &style);

View file

@ -633,16 +633,8 @@ void Toolbar::drawArrow(Drawable surface, bool left) const {
if (left) { if (left) {
if (style->left_button.mask == None) { #ifdef BITMAPBUTTONS
pts[0].x = hw - bullet_size; if (style->left_button.mask != None) {
pts[0].y = hh;
pts[1].x = 2 * bullet_size;
pts[1].y = bullet_size;
pts[2].x = 0;
pts[2].y = -(2 * bullet_size);
XFillPolygon(display, surface, pen.gc(), pts, 3, Convex,
CoordModePrevious);
} else {
XSetClipMask(blackbox->getXDisplay(), pen.gc(), style->left_button.mask); XSetClipMask(blackbox->getXDisplay(), pen.gc(), style->left_button.mask);
XSetClipOrigin(blackbox->getXDisplay(), pen.gc(), XSetClipOrigin(blackbox->getXDisplay(), pen.gc(),
(frame.button_w - style->left_button.w)/2, (frame.button_w - style->left_button.w)/2,
@ -655,18 +647,22 @@ void Toolbar::drawArrow(Drawable surface, bool left) const {
XSetClipMask(blackbox->getXDisplay(), pen.gc(), None); XSetClipMask(blackbox->getXDisplay(), pen.gc(), None);
XSetClipOrigin(blackbox->getXDisplay(), pen.gc(), 0, 0); XSetClipOrigin(blackbox->getXDisplay(), pen.gc(), 0, 0);
} } else {
} else { #endif // BITMAPBUTTONS
if (style->right_button.mask == None) {
pts[0].x = hw - bullet_size; pts[0].x = hw - bullet_size;
pts[0].y = hh - bullet_size; pts[0].y = hh;
pts[1].x = (2 * bullet_size); pts[1].x = 2 * bullet_size;
pts[1].y = bullet_size; pts[1].y = bullet_size;
pts[2].x = -(2 * bullet_size); pts[2].x = 0;
pts[2].y = bullet_size; pts[2].y = -(2 * bullet_size);
XFillPolygon(display, surface, pen.gc(), pts, 3, Convex, XFillPolygon(display, surface, pen.gc(), pts, 3, Convex,
CoordModePrevious); CoordModePrevious);
} else { #ifdef BITMAPBUTTONS
}
#endif // BITMAPBUTTONS
} else {
#ifdef BITMAPBUTTONS
if (style->right_button.mask != None) {
XSetClipMask(blackbox->getXDisplay(), pen.gc(), XSetClipMask(blackbox->getXDisplay(), pen.gc(),
style->right_button.mask); style->right_button.mask);
XSetClipOrigin(blackbox->getXDisplay(), pen.gc(), XSetClipOrigin(blackbox->getXDisplay(), pen.gc(),
@ -681,7 +677,19 @@ void Toolbar::drawArrow(Drawable surface, bool left) const {
XSetClipMask(blackbox->getXDisplay(), pen.gc(), None); XSetClipMask(blackbox->getXDisplay(), pen.gc(), None);
XSetClipOrigin(blackbox->getXDisplay(), pen.gc(), 0, 0); XSetClipOrigin(blackbox->getXDisplay(), pen.gc(), 0, 0);
} else {
#endif // BITMAPBUTTONS
pts[0].x = hw - bullet_size;
pts[0].y = hh - bullet_size;
pts[1].x = (2 * bullet_size);
pts[1].y = bullet_size;
pts[2].x = -(2 * bullet_size);
pts[2].y = bullet_size;
XFillPolygon(display, surface, pen.gc(), pts, 3, Convex,
CoordModePrevious);
#ifdef BITMAPBUTTONS
} }
#endif
} }
} }

View file

@ -2618,7 +2618,7 @@ void BlackboxWindow::redrawIconifyButton(bool pressed) const {
XClearWindow(blackbox->getXDisplay(), frame.iconify_button); XClearWindow(blackbox->getXDisplay(), frame.iconify_button);
BPen pen((flags.focused) ? screen->getWindowStyle()->b_pic_focus : BPen pen((flags.focused) ? screen->getWindowStyle()->b_pic_focus :
screen->getWindowStyle()->b_pic_unfocus); screen->getWindowStyle()->b_pic_unfocus);
#ifdef BITMAPBUTTONS
PixmapMask pm = screen->getWindowStyle()->icon_button; PixmapMask pm = screen->getWindowStyle()->icon_button;
if (screen->getWindowStyle()->icon_button.mask != None) { if (screen->getWindowStyle()->icon_button.mask != None) {
@ -2633,10 +2633,12 @@ void BlackboxWindow::redrawIconifyButton(bool pressed) const {
XSetClipMask(blackbox->getXDisplay(), pen.gc(), None); XSetClipMask(blackbox->getXDisplay(), pen.gc(), None);
XSetClipOrigin(blackbox->getXDisplay(), pen.gc(), 0, 0); XSetClipOrigin(blackbox->getXDisplay(), pen.gc(), 0, 0);
} else { } else {
#endif // BITMAPBUTTONS
XDrawRectangle(blackbox->getXDisplay(), frame.iconify_button, pen.gc(), XDrawRectangle(blackbox->getXDisplay(), frame.iconify_button, pen.gc(),
2, (frame.button_w - 5), (frame.button_w - 5), 2); 2, (frame.button_w - 5), (frame.button_w - 5), 2);
#ifdef BITMAPBUTTONS
} }
#endif // BITMAPBUTTONS
} }
@ -2669,7 +2671,8 @@ void BlackboxWindow::redrawMaximizeButton(bool pressed) const {
BPen pen((flags.focused) ? screen->getWindowStyle()->b_pic_focus : BPen pen((flags.focused) ? screen->getWindowStyle()->b_pic_focus :
screen->getWindowStyle()->b_pic_unfocus); screen->getWindowStyle()->b_pic_unfocus);
#ifdef BITMAPBUTTONS
PixmapMask pm = screen->getWindowStyle()->max_button; PixmapMask pm = screen->getWindowStyle()->max_button;
if (pm.mask != None) { if (pm.mask != None) {
@ -2684,11 +2687,14 @@ void BlackboxWindow::redrawMaximizeButton(bool pressed) const {
XSetClipOrigin(blackbox->getXDisplay(), pen.gc(), 0, 0 ); XSetClipOrigin(blackbox->getXDisplay(), pen.gc(), 0, 0 );
XSetClipMask( blackbox->getXDisplay(), pen.gc(), None ); XSetClipMask( blackbox->getXDisplay(), pen.gc(), None );
} else { } else {
#endif // BITMAPBUTTONS
XDrawRectangle(blackbox->getXDisplay(), frame.maximize_button, pen.gc(), XDrawRectangle(blackbox->getXDisplay(), frame.maximize_button, pen.gc(),
2, 2, (frame.button_w - 5), (frame.button_w - 5)); 2, 2, (frame.button_w - 5), (frame.button_w - 5));
XDrawLine(blackbox->getXDisplay(), frame.maximize_button, pen.gc(), XDrawLine(blackbox->getXDisplay(), frame.maximize_button, pen.gc(),
2, 3, (frame.button_w - 3), 3); 2, 3, (frame.button_w - 3), 3);
#ifdef BITMAPBUTTONS
} }
#endif // BITMAPBUTTONS
} }
@ -2721,7 +2727,8 @@ void BlackboxWindow::redrawCloseButton(bool pressed) const {
BPen pen((flags.focused) ? screen->getWindowStyle()->b_pic_focus : BPen pen((flags.focused) ? screen->getWindowStyle()->b_pic_focus :
screen->getWindowStyle()->b_pic_unfocus); screen->getWindowStyle()->b_pic_unfocus);
#ifdef BITMAPBUTTONS
PixmapMask pm = screen->getWindowStyle()->close_button; PixmapMask pm = screen->getWindowStyle()->close_button;
if (pm.mask != None) { if (pm.mask != None) {
@ -2737,11 +2744,14 @@ void BlackboxWindow::redrawCloseButton(bool pressed) const {
XSetClipOrigin(blackbox->getXDisplay(), pen.gc(), 0, 0 ); XSetClipOrigin(blackbox->getXDisplay(), pen.gc(), 0, 0 );
XSetClipMask( blackbox->getXDisplay(), pen.gc(), None ); XSetClipMask( blackbox->getXDisplay(), pen.gc(), None );
} else { } else {
#endif // BITMAPBUTTONS
XDrawLine(blackbox->getXDisplay(), frame.close_button, pen.gc(), XDrawLine(blackbox->getXDisplay(), frame.close_button, pen.gc(),
2, 2, (frame.button_w - 3), (frame.button_w - 3)); 2, 2, (frame.button_w - 3), (frame.button_w - 3));
XDrawLine(blackbox->getXDisplay(), frame.close_button, pen.gc(), XDrawLine(blackbox->getXDisplay(), frame.close_button, pen.gc(),
2, (frame.button_w - 3), (frame.button_w - 3), 2); 2, (frame.button_w - 3), (frame.button_w - 3), 2);
#ifdef BITMAPBUTTONS
} }
#endif // BITMAPBUTTONS
} }
void BlackboxWindow::redrawStickyButton(bool pressed) const { void BlackboxWindow::redrawStickyButton(bool pressed) const {
@ -2773,7 +2783,8 @@ void BlackboxWindow::redrawStickyButton(bool pressed) const {
BPen pen((flags.focused) ? screen->getWindowStyle()->b_pic_focus : BPen pen((flags.focused) ? screen->getWindowStyle()->b_pic_focus :
screen->getWindowStyle()->b_pic_unfocus); screen->getWindowStyle()->b_pic_unfocus);
#ifdef BITMAPBUTTONS
PixmapMask pm = screen->getWindowStyle()->stick_button; PixmapMask pm = screen->getWindowStyle()->stick_button;
if (pm.mask != None) { if (pm.mask != None) {
@ -2789,9 +2800,12 @@ void BlackboxWindow::redrawStickyButton(bool pressed) const {
XSetClipOrigin(blackbox->getXDisplay(), pen.gc(), 0, 0 ); XSetClipOrigin(blackbox->getXDisplay(), pen.gc(), 0, 0 );
XSetClipMask( blackbox->getXDisplay(), pen.gc(), None ); XSetClipMask( blackbox->getXDisplay(), pen.gc(), None );
} else { } else {
#endif // BITMAPBUTTONS
XFillRectangle(blackbox->getXDisplay(), frame.stick_button, pen.gc(), XFillRectangle(blackbox->getXDisplay(), frame.stick_button, pen.gc(),
frame.button_w/2 - 1, frame.button_w/2 -1, 2, 2 ); frame.button_w/2 - 1, frame.button_w/2 -1, 2, 2 );
#ifdef BITMAPBUTTONS
} }
#endif
} }
void BlackboxWindow::mapRequestEvent(const XMapRequestEvent *re) { void BlackboxWindow::mapRequestEvent(const XMapRequestEvent *re) {