Fixed parameters to XFillRectangle, remoced old debug code.
XSetClipMask(blackbox->getXDisplay(), pen.gc(),
style->tick_image.mask);
- cout << oppsel_x << ' ' << sel_x << endl;
XFillRectangle(blackbox->getXDisplay(), menu.frame, pen.gc(),
oppsel_x, item_y + menu.item_h/2 - style->tick_image.h/2,
style->tick_image.w,
XFillRectangle(blackbox->getXDisplay(), menu.frame, pen.gc(),
sel_x, item_y + menu.item_h/2 - style->bullet_image.h/2,
- sel_x + style->bullet_image.w,
- item_y + menu.item_h/2 + style->bullet_image.h/2);
+ style->bullet_image.w, style->bullet_image.h);
XSetClipMask(blackbox->getXDisplay(), pen.gc(), None);
XFillRectangle(blackbox->getXDisplay(), surface, pen.gc(),
(frame.button_w - style->left_button.w)/2,
(frame.button_w - style->left_button.h)/2,
- (frame.button_w + style->left_button.w)/2,
- (frame.button_w + style->left_button.h)/2);
+ style->left_button.w, style->left_button.h);
XSetClipMask(blackbox->getXDisplay(), pen.gc(), None);
XSetClipOrigin(blackbox->getXDisplay(), pen.gc(), 0, 0);
XFillRectangle(blackbox->getXDisplay(), frame.iconify_button, pen.gc(),
(frame.button_w - pm.w)/2, (frame.button_w - pm.h)/2,
- (frame.button_w + pm.w)/2, (frame.button_w + pm.h)/2);
+ pm.w, pm.h);
XSetClipMask(blackbox->getXDisplay(), pen.gc(), None);
XSetClipOrigin(blackbox->getXDisplay(), pen.gc(), 0, 0);
XFillRectangle(blackbox->getXDisplay(), frame.maximize_button, pen.gc(),
(frame.button_w - pm.w)/2, (frame.button_w - pm.h)/2,
- (frame.button_w + pm.w)/2, (frame.button_w + pm.h)/2);
+ pm.w, pm.h);
XSetClipOrigin(blackbox->getXDisplay(), pen.gc(), 0, 0 );
XSetClipMask( blackbox->getXDisplay(), pen.gc(), None );
XFillRectangle(blackbox->getXDisplay(), frame.stick_button, pen.gc(),
(frame.button_w - pm.w)/2, (frame.button_w - pm.h)/2,
- (frame.button_w + pm.w)/2, (frame.button_w + pm.h)/2);
+ pm.w, pm.h);
XSetClipOrigin(blackbox->getXDisplay(), pen.gc(), 0, 0 );