From 81af5a8b0caadc0a82ff2304c315f816c9576e93 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 10 Jul 2003 23:27:02 +0000 Subject: add disabled buttons, instead of now showing buttons at all when they wont do anything, now show a disabled button instead. this severely breaks compatibility with blackbox themes since there is no good way to automiatically create a disabled button that i can think of, so if they dont exist in the theme you get black and white for the button. when a window cant be resized, its handle is not removed but its grips are. change allowing the user to disable individual decorations as that is overkill, instead allow a toggle through the client.decorate boolean. --- openbox/action.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbox/action.c') diff --git a/openbox/action.c b/openbox/action.c index 6e06d374..a14ea7cc 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -1105,7 +1105,7 @@ void action_toggle_decorations(union ActionData *data) if (!c) return; - c->disabled_decorations = c->disabled_decorations ? 0 : ~0; + c->decorate = !c->decorate; client_setup_decor_and_functions(c); } -- cgit v1.2.3