aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/FbWindow.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/FbWindow.cc')
-rw-r--r--src/FbTk/FbWindow.cc24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/FbTk/FbWindow.cc b/src/FbTk/FbWindow.cc
index acdc7c1..e00fa14 100644
--- a/src/FbTk/FbWindow.cc
+++ b/src/FbTk/FbWindow.cc
@@ -555,6 +555,30 @@ void FbWindow::create(Window parent, int x, int y,
555 FbWindow::setBackgroundColor(Color("gray", screenNumber())); 555 FbWindow::setBackgroundColor(Color("gray", screenNumber()));
556} 556}
557 557
558
559void FbWindow::sendConfigureNotify(int x, int y,
560 unsigned int width, unsigned int height) {
561 Display *disp = FbTk::App::instance()->display();
562 XEvent event;
563 event.type = ConfigureNotify;
564
565 event.xconfigure.display = disp;
566 event.xconfigure.event = window();
567 event.xconfigure.window = window();
568 event.xconfigure.x = x;
569 event.xconfigure.y = y;
570 event.xconfigure.width = width;
571 event.xconfigure.height = height;
572 //!! TODO
573 event.xconfigure.border_width = 1;
574 //!! TODO
575 event.xconfigure.above = None;
576 event.xconfigure.override_redirect = false;
577
578 XSendEvent(disp, window(), False, StructureNotifyMask, &event);
579
580}
581
558bool operator == (Window win, const FbWindow &fbwin) { 582bool operator == (Window win, const FbWindow &fbwin) {
559 return win == fbwin.window(); 583 return win == fbwin.window();
560} 584}