diff options
author | simonb <simonb> | 2005-04-26 04:18:10 (GMT) |
---|---|---|
committer | simonb <simonb> | 2005-04-26 04:18:10 (GMT) |
commit | e57a30f664f7fb2660967f40db2c10759c2e9e4f (patch) | |
tree | cab24eb65d78ccf35b9bdb182adfcbd971d6f66f /src/FbTk/FbWindow.cc | |
parent | 1c2f92a3d2288b1cae9500110a72173506a18072 (diff) | |
download | fluxbox_pavel-e57a30f664f7fb2660967f40db2c10759c2e9e4f.zip fluxbox_pavel-e57a30f664f7fb2660967f40db2c10759c2e9e4f.tar.bz2 |
fix systray client sizing
Diffstat (limited to 'src/FbTk/FbWindow.cc')
-rw-r--r-- | src/FbTk/FbWindow.cc | 24 |
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 | |||
559 | void 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 | |||
558 | bool operator == (Window win, const FbWindow &fbwin) { | 582 | bool operator == (Window win, const FbWindow &fbwin) { |
559 | return win == fbwin.window(); | 583 | return win == fbwin.window(); |
560 | } | 584 | } |