From dee034771c8f3b519c8011faf78d277d6af76933 Mon Sep 17 00:00:00 2001 From: Faidon Liambotis Date: Mon, 14 Sep 2015 03:06:18 +0300 Subject: Add manual and by-pointer window placement This adds a window placement preference: the existing behavior is now called "automatic" and is the default. Two new modes are being introduced: "pointer", which means that windows are placed according to the mouse pointer position; and "manual" which means that the user must manually place the new window with the mouse or keyboard. This is a straight port from muffin, commit 3257671. --- src/include/common.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/include/common.h') diff --git a/src/include/common.h b/src/include/common.h index 69755e24..74137967 100644 --- a/src/include/common.h +++ b/src/include/common.h @@ -312,4 +312,14 @@ struct _MetaButtonLayout (ycoord) >= (rect).y && \ (ycoord) < ((rect).y + (rect).height)) +/* + * Placement mode + */ +typedef enum +{ + META_PLACEMENT_MODE_AUTOMATIC, + META_PLACEMENT_MODE_POINTER, + META_PLACEMENT_MODE_MANUAL +} MetaPlacementMode; + #endif -- cgit v1.2.1