PDA

View Full Version : small patch on compiz


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>&lt;Control&gt;&lt;Alt&gt;Button1</default>
</option>
+ <option name="initiate_key" type="key">
+ <_short>Initiate</_short>
+ <_long>Start Rotation</_long>
+ <default>&lt;Control&gt;&lt;Alt&gt;1</default>
+ </option>
<option name="rotate_left_key" type="key">
<_short>Rotate Left</_short>
<_long>Rotate left</_long>

plun
September 11th, 2007, 06:37 PM
small patch on compiz:



What is the purpose with this patch ? "Tilting the cube" ? :D

wodor
September 11th, 2007, 09:08 PM
lol, no comment, ;-) This plugin add options:
initiate cube rotate by keyboard,
show desktop by mouse button ( useful for me )

plun
September 11th, 2007, 11:20 PM
lol, no comment, ;-) This plugin add options:
initiate cube rotate by keyboard,
show desktop by mouse button ( useful for me )

Aha...:p

Mr Reveman is probably coming with more core stuff this week so
maybe its included ;)

But a "tilt" patch would be great...:D

maciekwpl
November 20th, 2007, 07:55 PM
a Big "thank you" for that, wodor. Many times i click Super+D just to see that linux doesn't recognize this shortcut :) I'm just used to Windows shortcuts. Fortunately Ctrl+C,X and V work :D