fix border width on synthetic ConfigureNotify events

This commit is contained in:
Mark Tiefenbruck 2008-01-01 19:10:38 -08:00
parent 2f9f29df22
commit 6ea1ed8cfa
2 changed files with 5 additions and 5 deletions

View file

@ -633,7 +633,8 @@ void FbWindow::create(Window parent, int x, int y,
void FbWindow::sendConfigureNotify(int x, int y,
unsigned int width, unsigned int height) {
unsigned int width, unsigned int height,
unsigned int bw) {
Display *disp = FbTk::App::instance()->display();
XEvent event;
event.type = ConfigureNotify;
@ -645,9 +646,7 @@ void FbWindow::sendConfigureNotify(int x, int y,
event.xconfigure.y = y;
event.xconfigure.width = width;
event.xconfigure.height = height;
//!! TODO
event.xconfigure.border_width = 1;
//!! TODO
event.xconfigure.border_width = bw;
event.xconfigure.above = None;
event.xconfigure.override_redirect = false;

View file

@ -195,7 +195,8 @@ public:
void setOpaque(unsigned char alpha);
void setRenderer(FbWindowRenderer &renderer) { m_renderer = &renderer; }
void sendConfigureNotify(int x, int y, unsigned int width, unsigned int height);
void sendConfigureNotify(int x, int y, unsigned int width,
unsigned int height, unsigned int bw = 0);
/// forces full background change, recalcing of alpha values if necessary
void updateBackground(bool only_if_alpha);