From c49f361a93752ffb53d99fd55fa7e8db2ac660c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alberts=20Muktup=C4=81vels?= Date: Tue, 7 Oct 2014 05:37:23 +0300 Subject: 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 --- src/include/common.h | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) (limited to 'src/include') 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, -- cgit v1.2.1