diff options
author | Alberts Muktupāvels <[email protected]> | 2014-10-07 05:37:23 +0300 |
---|---|---|
committer | Victor Kareh <[email protected]> | 2018-08-28 18:53:42 -0400 |
commit | c49f361a93752ffb53d99fd55fa7e8db2ac660c5 (patch) | |
tree | f5c02fb0bbb261f96900f09ec170c72ba5e8cc07 /src/include/common.h | |
parent | cb9a1be4e7d324be0ec58b1783f72783e1a8f576 (diff) | |
download | marco-c49f361a93752ffb53d99fd55fa7e8db2ac660c5.tar.bz2 marco-c49f361a93752ffb53d99fd55fa7e8db2ac660c5.tar.xz |
add support for app-menu button in theme
Add app-menu button support in themes. This is done only to support
metacity theme format 3.5 version. Marco will not show this
button!
Based on metacity commit:
https://gitlab.gnome.org/GNOME/metacity/commit/6a2cc159
Diffstat (limited to 'src/include/common.h')
-rw-r--r-- | src/include/common.h | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/src/include/common.h b/src/include/common.h index 6e94c7a0..83b750a9 100644 --- a/src/include/common.h +++ b/src/include/common.h @@ -35,21 +35,22 @@ typedef enum { META_FRAME_ALLOWS_DELETE = 1 << 0, META_FRAME_ALLOWS_MENU = 1 << 1, - META_FRAME_ALLOWS_MINIMIZE = 1 << 2, - META_FRAME_ALLOWS_MAXIMIZE = 1 << 3, - META_FRAME_ALLOWS_VERTICAL_RESIZE = 1 << 4, - META_FRAME_ALLOWS_HORIZONTAL_RESIZE = 1 << 5, - META_FRAME_HAS_FOCUS = 1 << 6, - META_FRAME_SHADED = 1 << 7, - META_FRAME_STUCK = 1 << 8, - META_FRAME_MAXIMIZED = 1 << 9, - META_FRAME_ALLOWS_SHADE = 1 << 10, - META_FRAME_ALLOWS_MOVE = 1 << 11, - META_FRAME_FULLSCREEN = 1 << 12, - META_FRAME_IS_FLASHING = 1 << 13, - META_FRAME_ABOVE = 1 << 14, - META_FRAME_TILED_LEFT = 1 << 15, - META_FRAME_TILED_RIGHT = 1 << 16 + META_FRAME_ALLOWS_APPMENU = 1 << 2, + META_FRAME_ALLOWS_MINIMIZE = 1 << 3, + META_FRAME_ALLOWS_MAXIMIZE = 1 << 4, + META_FRAME_ALLOWS_VERTICAL_RESIZE = 1 << 5, + META_FRAME_ALLOWS_HORIZONTAL_RESIZE = 1 << 6, + META_FRAME_HAS_FOCUS = 1 << 7, + META_FRAME_SHADED = 1 << 8, + META_FRAME_STUCK = 1 << 9, + META_FRAME_MAXIMIZED = 1 << 10, + META_FRAME_ALLOWS_SHADE = 1 << 11, + META_FRAME_ALLOWS_MOVE = 1 << 12, + META_FRAME_FULLSCREEN = 1 << 13, + META_FRAME_IS_FLASHING = 1 << 14, + META_FRAME_ABOVE = 1 << 15, + META_FRAME_TILED_LEFT = 1 << 16, + META_FRAME_TILED_RIGHT = 1 << 17 } MetaFrameFlags; typedef enum @@ -143,6 +144,7 @@ typedef enum META_GRAB_OP_CLICKING_UNMAXIMIZE_HORIZONTAL, META_GRAB_OP_CLICKING_DELETE, META_GRAB_OP_CLICKING_MENU, + META_GRAB_OP_CLICKING_APPMENU, META_GRAB_OP_CLICKING_SHADE, META_GRAB_OP_CLICKING_UNSHADE, META_GRAB_OP_CLICKING_ABOVE, @@ -271,6 +273,7 @@ typedef enum typedef enum { META_BUTTON_FUNCTION_MENU, + META_BUTTON_FUNCTION_APPMENU, META_BUTTON_FUNCTION_MINIMIZE, META_BUTTON_FUNCTION_MAXIMIZE, META_BUTTON_FUNCTION_CLOSE, |