From 31d9e106dceb267a1067caff4cc046143073fe60 Mon Sep 17 00:00:00 2001 From: Cedric Bellegarde Date: Mon, 7 Jan 2013 14:07:11 +0100 Subject: [PATCH] Add appmenu support to laptop kdecoration client --- clients/laptop/laptopclient.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/clients/laptop/laptopclient.cpp b/clients/laptop/laptopclient.cpp index 355355ce10..57232969ad 100644 --- a/clients/laptop/laptopclient.cpp +++ b/clients/laptop/laptopclient.cpp @@ -36,6 +36,9 @@ static const unsigned char iconify_bits[] = { static const unsigned char close_bits[] = { 0x42, 0xe7, 0x7e, 0x3c, 0x3c, 0x7e, 0xe7, 0x42}; +static const unsigned char appmenu_bits[] = { + 0xff, 0xff, 0x00, 0xff, 0xff, 0x00, 0xff, 0xff}; + static const unsigned char maximize_bits[] = { 0x18, 0x3c, 0x7e, 0xff, 0xff, 0x00, 0xff, 0xff }; @@ -263,6 +266,9 @@ void LaptopButton::reset(unsigned long changed) case CloseButton: setBitmap(close_bits); break; + case AppMenuButton: + setBitmap(appmenu_bits); + break; case HelpButton: setBitmap(question_bits); break; @@ -461,6 +467,9 @@ KCommonDecorationButton *LaptopClient::createButton(ButtonType type) case CloseButton: return new LaptopButton(CloseButton, this, "close"); + case AppMenuButton: + return new LaptopButton(AppMenuButton, this, "Application Menu"); + default: return 0; } @@ -739,6 +748,7 @@ bool LaptopClientFactory::supports( Ability ability ) const case AbilityButtonMaximize: case AbilityButtonClose: case AbilityButtonSpacer: + case AbilityButtonApplicationMenu: // colors case AbilityColorTitleBack: case AbilityColorTitleFore: