diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-01-23 04:49:42 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-01-23 04:49:42 +0000 |
| commit | 7b7ae097a0d389a35967fdab4ea310effcfc42c2 (patch) | |
| tree | 853d2ba50e8ef50754a26e33473c13ebb5e3ef55 /src/frame.cc | |
| parent | 7b9d92b2e75cab137ca3bfaf48ce40b5cbbaacf4 (diff) | |
make the 'toggle all desktops' button work
Diffstat (limited to 'src/frame.cc')
| -rw-r--r-- | src/frame.cc | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/frame.cc b/src/frame.cc index cd73f29a..531db48d 100644 --- a/src/frame.cc +++ b/src/frame.cc @@ -30,14 +30,14 @@ Frame::Frame(Client *client, otk::RenderStyle *style) _screen(otk::display->screenInfo(client->screen())), _plate(this, WidgetBase::Type_Plate), _titlebar(this, WidgetBase::Type_Titlebar), - _button_close(&_titlebar, WidgetBase::Type_CloseButton), - _button_iconify(&_titlebar, WidgetBase::Type_IconifyButton), - _button_max(&_titlebar, WidgetBase::Type_MaximizeButton), - _button_stick(&_titlebar, WidgetBase::Type_StickyButton), + _button_close(&_titlebar, WidgetBase::Type_CloseButton, client), + _button_iconify(&_titlebar, WidgetBase::Type_IconifyButton, client), + _button_max(&_titlebar, WidgetBase::Type_MaximizeButton, client), + _button_stick(&_titlebar, WidgetBase::Type_StickyButton, client), _label(&_titlebar, WidgetBase::Type_Label), _handle(this, WidgetBase::Type_Handle), - _grip_left(&_handle, WidgetBase::Type_LeftGrip), - _grip_right(&_handle, WidgetBase::Type_RightGrip), + _grip_left(&_handle, WidgetBase::Type_LeftGrip, client), + _grip_right(&_handle, WidgetBase::Type_RightGrip, client), _decorations(client->decorations()) { assert(client); @@ -399,6 +399,13 @@ void Frame::adjustShape() } +void Frame::adjustState() +{ + _button_stick.update(); + _button_max.update(); +} + + void Frame::grabClient() { // reparent the client to the frame |
