summaryrefslogtreecommitdiff
path: root/src/include/common.h
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2025-08-15 07:20:47 -0400
committerLuke from DC <[email protected]>2025-09-09 19:51:09 +0000
commitb5292ba66132104256590631b2d2b7a1c92ad934 (patch)
tree3d83ea535c11942428a57af64263af5f71837205 /src/include/common.h
parent4a2eebdd0f20a9ea4f60d63fe03837f9a39350ba (diff)
downloadmarco-b5292ba66132104256590631b2d2b7a1c92ad934.tar.bz2
marco-b5292ba66132104256590631b2d2b7a1c92ad934.tar.xz
window: Add configurable mouse actions for titlebar
Adds support for configurable mouse actions on window titlebars, including middle-click and scroll wheel events. New actions added: - close: Close the window - raise: Raise window to top - toggle_stick: Toggle sticky state (all workspaces) - toggle_above: Toggle always-on-top state Fixes #425 Fixes #787 Note: requries matching mate-control-center changes to work properly
Diffstat (limited to 'src/include/common.h')
-rw-r--r--src/include/common.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/include/common.h b/src/include/common.h
index 9febd63c..031274f6 100644
--- a/src/include/common.h
+++ b/src/include/common.h
@@ -192,14 +192,20 @@ typedef enum
typedef enum
{
- META_ACTION_TITLEBAR_TOGGLE_SHADE,
+ META_ACTION_TITLEBAR_CLOSE,
+ META_ACTION_TITLEBAR_MINIMIZE,
META_ACTION_TITLEBAR_TOGGLE_MAXIMIZE,
META_ACTION_TITLEBAR_TOGGLE_MAXIMIZE_HORIZONTALLY,
META_ACTION_TITLEBAR_TOGGLE_MAXIMIZE_VERTICALLY,
- META_ACTION_TITLEBAR_MINIMIZE,
- META_ACTION_TITLEBAR_NONE,
+ META_ACTION_TITLEBAR_TOGGLE_SHADE,
+ META_ACTION_TITLEBAR_SHADE,
+ META_ACTION_TITLEBAR_UNSHADE,
+ META_ACTION_TITLEBAR_RAISE,
META_ACTION_TITLEBAR_LOWER,
+ META_ACTION_TITLEBAR_TOGGLE_STICK,
+ META_ACTION_TITLEBAR_TOGGLE_ABOVE,
META_ACTION_TITLEBAR_MENU,
+ META_ACTION_TITLEBAR_NONE,
META_ACTION_TITLEBAR_LAST
} MetaActionTitlebar;