diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-03-31 22:58:54 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-03-31 22:58:54 +0000 |
| commit | 4398c7c168fdcba1e31afc465d9783a57e7e674a (patch) | |
| tree | db09d0f666647785fbe80451a956d9f95f383e3d /openbox | |
| parent | 6e4c57b3c2dca2623e29c5844100521eba6e24a0 (diff) | |
add a shaded button
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/client.c | 5 | ||||
| -rw-r--r-- | openbox/client.h | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/openbox/client.c b/openbox/client.c index 8f219193..361d57cd 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -747,7 +747,8 @@ void client_setup_decor_and_functions(Client *self) { /* start with everything (cept fullscreen) */ self->decorations = Decor_Titlebar | Decor_Handle | Decor_Border | - Decor_Icon | Decor_AllDesktops | Decor_Iconify | Decor_Maximize; + Decor_Icon | Decor_AllDesktops | Decor_Iconify | Decor_Maximize | + Decor_Shade; self->functions = Func_Resize | Func_Move | Func_Iconify | Func_Maximize | Func_Shade; if (self->delete_window) { @@ -842,6 +843,8 @@ void client_setup_decor_and_functions(Client *self) self->decorations &= ~Decor_Maximize; if (self->disabled_decorations & Decor_AllDesktops) self->decorations &= ~Decor_AllDesktops; + if (self->disabled_decorations & Decor_Shade) + self->decorations &= ~Decor_Shade; if (self->disabled_decorations & Decor_Close) self->decorations &= ~Decor_Close; diff --git a/openbox/client.h b/openbox/client.h index 1b9ee9bc..28385351 100644 --- a/openbox/client.h +++ b/openbox/client.h @@ -100,7 +100,8 @@ typedef enum { /*! Display a button to toggle the window's placement on all desktops */ Decor_AllDesktops = 1 << 6, - Decor_Close = 1 << 7 /*!< Display a close button */ + Decor_Shade = 1 << 7, /*!< Displays a shade button */ + Decor_Close = 1 << 8 /*!< Display a close button */ } Decoration; |
