]> Dogcows Code - chaz/openbox/commitdiff
show state with the alldesktops and max buttons
authorDana Jansens <danakj@orodu.net>
Thu, 13 Feb 2003 07:32:30 +0000 (07:32 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 13 Feb 2003 07:32:30 +0000 (07:32 +0000)
src/frame.cc

index 68ff2252b5010aadc91dc7a28f7b0946aa3be4ee..27e9c490957184a9f28cf0bb1ec486897c6c039b 100644 (file)
@@ -500,14 +500,16 @@ static void renderButton(int screen, bool focus, bool press, Window win,
 
 void Frame::renderMax()
 {
-  renderButton(_client->screen(), _client->focused(), _max_press, _max,
+  bool press = _max_press || _client->maxVert() || _client->maxHorz();
+  renderButton(_client->screen(), _client->focused(), press, _max,
                &_max_sur, geom.button_size,
                otk::RenderStyle::style(_client->screen())->maximizeMask());
 }
 
 void Frame::renderDesk()
 {
-  renderButton(_client->screen(), _client->focused(), _desk_press, _desk,
+  bool press = _desk_press || _client->desktop() == 0xffffffff;
+  renderButton(_client->screen(), _client->focused(), press, _desk,
                &_desk_sur, geom.button_size,
                otk::RenderStyle::style(_client->screen())->alldesktopsMask());
 }
@@ -675,8 +677,8 @@ void Frame::adjustShape()
 
 void Frame::adjustState()
 {
-// XXX  _button_alldesk.update();
-// XXX  _button_max.update();
+  renderDesk();
+  renderMax();
 }
 
 
This page took 0.025823 seconds and 4 git commands to generate.