From 23cc9e0546a8165643eb8f394e57fe4be1df063c Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 13 Feb 2003 07:32:30 +0000 Subject: [PATCH] show state with the alldesktops and max buttons --- src/frame.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/frame.cc b/src/frame.cc index 68ff2252..27e9c490 100644 --- a/src/frame.cc +++ b/src/frame.cc @@ -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(); } -- 2.45.2