wodor
September 11th, 2007, 02:26 PM
small patch on compiz:
who can include this functions to compiz git ?
--- a/plugins/rotate.c 2007-09-07 20:48:54.000000000 +0200
+++ b/plugins/rotate.c 2007-09-07 20:49:38.000000000 +0200
@@ -84,7 +84,8 @@
#define ROTATE_DISPLAY_OPTION_FLIP_LEFT_EDGE 39
#define ROTATE_DISPLAY_OPTION_FLIP_RIGHT_EDGE 40
#define ROTATE_DISPLAY_OPTION_RAISE_ON_ROTATE 41
-#define ROTATE_DISPLAY_OPTION_NUM 42
+#define ROTATE_DISPLAY_OPTION_INITIATE_KEY 42
+#define ROTATE_DISPLAY_OPTION_NUM 43
typedef struct _RotateDisplay {
int screenPrivateIndex;
@@ -1717,7 +1718,8 @@
rotateFlipTerminate },
{ "rotate_flip_right_edge", "edge", 0, rotateEdgeFlipRight,
rotateFlipTerminate },
- { "raise_on_rotate", "bool", 0, 0, 0 }
+ { "raise_on_rotate", "bool", 0, 0, 0 },
+ { "initiate_key", "key", 0, rotateInitiate, rotateTerminate }
};
static Bool
--- a/src/display.c 2007-09-07 20:54:57.000000000 +0200
+++ b/src/display.c 2007-09-07 20:55:16.000000000 +0200
@@ -735,6 +735,7 @@
{ "window_menu_button", "button", 0, windowMenu, 0 },
{ "window_menu_key", "key", 0, windowMenu, 0 },
{ "show_desktop_key", "key", 0, showDesktop, 0 },
+ { "show_desktop_button", "button", 0, showDesktop, 0 },
{ "show_desktop_edge", "edge", 0, showDesktop, 0 },
{ "raise_on_click", "bool", 0, 0, 0 },
{ "audible_bell", "bool", 0, 0, 0 },
--- a/metadata/core.xml.in 2007-09-07 20:56:56.000000000 +0200
+++ b/metadata/core.xml.in 2007-09-07 20:57:26.000000000 +0200
@@ -259,6 +259,11 @@
<_long>Hide all windows and focus desktop</_long>
<default/>
</option>
+ <option name="show_desktop_button" type="button">
+ <_short>Show Desktop</_short>
+ <_long>Hide all windows and focus desktop</_long>
+ <default/>
+ </option>
<option name="raise_on_click" type="bool">
<_short>Raise On Click</_short>
<_long>Raise windows when clicked</_long>
--- a/metadata/rotate.xml.in 2007-09-10 15:30:33.000000000 +0200
+++ b/metadata/rotate.xml.in 2007-09-07 20:53:56.000000000 +0200
@@ -16,6 +16,11 @@
<_long>Start Rotation</_long>
<default><Control><Alt>Button1</default>
</option>
+ <option name="initiate_key" type="key">
+ <_short>Initiate</_short>
+ <_long>Start Rotation</_long>
+ <default><Control><Alt>1</default>
+ </option>
<option name="rotate_left_key" type="key">
<_short>Rotate Left</_short>
<_long>Rotate left</_long>
who can include this functions to compiz git ?
--- a/plugins/rotate.c 2007-09-07 20:48:54.000000000 +0200
+++ b/plugins/rotate.c 2007-09-07 20:49:38.000000000 +0200
@@ -84,7 +84,8 @@
#define ROTATE_DISPLAY_OPTION_FLIP_LEFT_EDGE 39
#define ROTATE_DISPLAY_OPTION_FLIP_RIGHT_EDGE 40
#define ROTATE_DISPLAY_OPTION_RAISE_ON_ROTATE 41
-#define ROTATE_DISPLAY_OPTION_NUM 42
+#define ROTATE_DISPLAY_OPTION_INITIATE_KEY 42
+#define ROTATE_DISPLAY_OPTION_NUM 43
typedef struct _RotateDisplay {
int screenPrivateIndex;
@@ -1717,7 +1718,8 @@
rotateFlipTerminate },
{ "rotate_flip_right_edge", "edge", 0, rotateEdgeFlipRight,
rotateFlipTerminate },
- { "raise_on_rotate", "bool", 0, 0, 0 }
+ { "raise_on_rotate", "bool", 0, 0, 0 },
+ { "initiate_key", "key", 0, rotateInitiate, rotateTerminate }
};
static Bool
--- a/src/display.c 2007-09-07 20:54:57.000000000 +0200
+++ b/src/display.c 2007-09-07 20:55:16.000000000 +0200
@@ -735,6 +735,7 @@
{ "window_menu_button", "button", 0, windowMenu, 0 },
{ "window_menu_key", "key", 0, windowMenu, 0 },
{ "show_desktop_key", "key", 0, showDesktop, 0 },
+ { "show_desktop_button", "button", 0, showDesktop, 0 },
{ "show_desktop_edge", "edge", 0, showDesktop, 0 },
{ "raise_on_click", "bool", 0, 0, 0 },
{ "audible_bell", "bool", 0, 0, 0 },
--- a/metadata/core.xml.in 2007-09-07 20:56:56.000000000 +0200
+++ b/metadata/core.xml.in 2007-09-07 20:57:26.000000000 +0200
@@ -259,6 +259,11 @@
<_long>Hide all windows and focus desktop</_long>
<default/>
</option>
+ <option name="show_desktop_button" type="button">
+ <_short>Show Desktop</_short>
+ <_long>Hide all windows and focus desktop</_long>
+ <default/>
+ </option>
<option name="raise_on_click" type="bool">
<_short>Raise On Click</_short>
<_long>Raise windows when clicked</_long>
--- a/metadata/rotate.xml.in 2007-09-10 15:30:33.000000000 +0200
+++ b/metadata/rotate.xml.in 2007-09-07 20:53:56.000000000 +0200
@@ -16,6 +16,11 @@
<_long>Start Rotation</_long>
<default><Control><Alt>Button1</default>
</option>
+ <option name="initiate_key" type="key">
+ <_short>Initiate</_short>
+ <_long>Start Rotation</_long>
+ <default><Control><Alt>1</default>
+ </option>
<option name="rotate_left_key" type="key">
<_short>Rotate Left</_short>
<_long>Rotate left</_long>