summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorCosimo Cecchi <anarki@lilik.it>2008-03-03 01:58:54 +0000
committerThomas James Alexander Thurman <tthurman@src.gnome.org>2008-03-03 01:58:54 +0000
commita8c3d1614f91d02271c9dc9f03309ee27405bd0a (patch)
treeffb318d6c21cb76d9326aed6c6d4f395d09af835 /src/include
parentac10c309ea7925ed58a3c722e876995dec256584 (diff)
downloadmetacity-a8c3d1614f91d02271c9dc9f03309ee27405bd0a.tar.gz
metacity-a8c3d1614f91d02271c9dc9f03309ee27405bd0a.tar.bz2
Add ability to vertically and horizontally maximise using the mouse, by
2008-03-03 Cosimo Cecchi <anarki@lilik.it> Add ability to vertically and horizontally maximise using the mouse, by clicking the titlebar in various ways. A very similar patch was received from Jason Ribero. Thanks also go to Tony Houghton and Carlo Wood, who both submitted patches which solved this differently. Closes #358674. * src/include/common.h (MetaActionTitlebar): new values for the new actions * src/core/core.c (meta_core_maximize_{vertic|horizont}ally): new functions. * src/ui/frames.c (meta_frame_titlebar_event): handle the new action values * src/core/window.h: new macros (for regularity, not really necessary) * src/core/prefs.c (symtab_titlebar_action): new string representations of the action values * src/metacity.schemas.in: documentation svn path=/trunk/; revision=3619
Diffstat (limited to 'src/include')
-rw-r--r--src/include/common.h2
-rw-r--r--src/include/core.h4
2 files changed, 6 insertions, 0 deletions
diff --git a/src/include/common.h b/src/include/common.h
index 41ec797..cdd814d 100644
--- a/src/include/common.h
+++ b/src/include/common.h
@@ -174,6 +174,8 @@ typedef enum
{
META_ACTION_TITLEBAR_TOGGLE_SHADE,
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_LOWER,
diff --git a/src/include/core.h b/src/include/core.h
index c374429..0c518e7 100644
--- a/src/include/core.h
+++ b/src/include/core.h
@@ -120,6 +120,10 @@ void meta_core_minimize (Display *xdisplay,
Window frame_xwindow);
void meta_core_toggle_maximize (Display *xdisplay,
Window frame_xwindow);
+void meta_core_toggle_maximize_horizontally (Display *xdisplay,
+ Window frame_xwindow);
+void meta_core_toggle_maximize_vertically (Display *xdisplay,
+ Window frame_xwindow);
void meta_core_unmaximize (Display *xdisplay,
Window frame_xwindow);
void meta_core_maximize (Display *xdisplay,