[PATCH] window raise/lower key

Pigeon pigeon at pigeond.net
Sat Sep 22 23:04:04 PDT 2007


---
 include/compiz-core.h |    4 +++-
 metadata/core.xml.in  |    8 ++++++++
 src/display.c         |    4 +++-
 3 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/include/compiz-core.h b/include/compiz-core.h
index 38e0114..4b93178 100644
--- a/include/compiz-core.h
+++ b/include/compiz-core.h
@@ -753,7 +753,9 @@ removeFileWatch (CompFileWatchHandle handle);
 #define COMP_DISPLAY_OPTION_TERMINAL			     59
 #define COMP_DISPLAY_OPTION_RUN_TERMINAL_KEY		     60
 #define COMP_DISPLAY_OPTION_PING_DELAY			     61
-#define COMP_DISPLAY_OPTION_NUM				     62
+#define COMP_DISPLAY_OPTION_RAISE_WINDOW_KEY                 62
+#define COMP_DISPLAY_OPTION_LOWER_WINDOW_KEY                 63
+#define COMP_DISPLAY_OPTION_NUM				     64
 
 typedef void (*HandleEventProc) (CompDisplay *display,
 				 XEvent	     *event);
diff --git a/metadata/core.xml.in b/metadata/core.xml.in
index 5d7879b..7d3f301 100644
--- a/metadata/core.xml.in
+++ b/metadata/core.xml.in
@@ -186,6 +186,14 @@
 		<_long>Lower window beneath other windows</_long>
 		<default>&lt;Alt&gt;Button6</default>
 	    </option>
+	    <option name="raise_window_key" type="key">
+		<_short>Raise Window</_short>
+		<_long>Raise window above other windows</_long>
+	    </option>
+	    <option name="lower_window_key" type="key">
+		<_short>Lower Window</_short>
+		<_long>Lower window beneath other windows</_long>
+	    </option>
 	    <option name="unmaximize_window_key" type="key">
 		<_short>Unmaximize Window</_short>
 		<_long>Unmaximize active window</_long>
diff --git a/src/display.c b/src/display.c
index 9d26c94..e17f114 100644
--- a/src/display.c
+++ b/src/display.c
@@ -748,7 +748,9 @@ const CompMetadataOptionInfo coreDisplayOptionInfo[COMP_DISPLAY_OPTION_NUM] = {
     { "ignore_hints_when_maximized", "bool", 0, 0, 0 },
     { "command_terminal", "string", 0, 0, 0 },
     { "run_command_terminal_key", "key", 0, runCommandTerminal, 0 },
-    { "ping_delay", "int", "<min>1000</min>", 0, 0 }
+    { "ping_delay", "int", "<min>1000</min>", 0, 0 },
+    { "raise_window_key", "key", 0, raiseInitiate, 0 },
+    { "lower_window_key", "key", 0, lowerInitiate, 0 },
 };
 
 CompOption *
-- 
1.5.3.1


--yrj/dFKFPuw6o+aM--


More information about the compiz mailing list