[Thread Prev][Thread Next]   >Date Index >Thread Index

[wmx] All in Config.h

Sven Oliver Moll - Sat Feb 06 02:59:58 1999

Hello!

This little patch moves the default settings for the options symlink from
Config.C to Config.h. IMHO it's much nicer to have it all in one file.

The patch goes against the 'sec3' version, since that's the one I use
(with Lasse Rasinen patches - GREAT WORK DONE THERE!), and it hat more options
than the vanilla-5 version.


--- wmx-5sec3.vanilla/Config.C	Wed Jan 20 23:13:06 1999
+++ wmx-5sec3/Config.C	Wed Feb  3 02:43:31 1999
@@ -49,14 +49,14 @@
 	strcat(m_impl->path, "/options");
     }
 
-    m_impl->focus = 0;	// 1 = Click , 2 = Raise, 4 = Autoraise
-    m_impl->raisedelay = 400;
-    m_impl->kbd = 1;		// 1 = Keyboard on
-    m_impl->menu = 1;	// 0 = no unmapped, 1 = everything
-    m_impl->feedback = 1;	// 0 = no , 1 = yes
-    m_impl->feeddelay = 300;
-    m_impl->disable = 0;        // 0 = allow New window, 1 = don't
-    m_impl->rightBt = 1;	// 0 = disable, 1 = circulate, 2 = lower
+    m_impl->focus	= DEFAULT_MOUSE_FOCUS;	
+    m_impl->raisedelay	= DEFAULT_AUTO_RAISE_DELAY;
+    m_impl->kbd		= DEFAULT_USE_KEYBOARD;
+    m_impl->menu	= DEFAULT_EVERYTHING_ON_ROOT_MENU;
+    m_impl->feedback	= DEFAULT_MAD_FEEDBACK;
+    m_impl->feeddelay	= DEFAULT_FEEDBACK_DELAY;
+    m_impl->disable	= DEFAULT_DISABLE_NEW_WINDOW_COMMAND;
+    m_impl->rightBt	= DEFAULT_RIGHT_MOUSE_BUTTON;
 
     scan(1);
 }
--- wmx-5sec3.vanilla/Config.h	Wed Jan 20 23:13:06 1999
+++ wmx-5sec3/Config.h	Wed Feb  3 21:15:30 1999
@@ -68,6 +68,8 @@
 // List visible as well as hidden clients on the root menu?  (Visible
 // ones will be towards the bottom of the menu, flush-right.)
 #define CONFIG_EVERYTHING_ON_ROOT_MENU (dConfig.fullMenu())
+#define DEFAULT_EVERYTHING_ON_ROOT_MENU		0
+// 0 = no unmapped, 1 = everything
 
 // Spawn a temporary new shell between the wm and each new process?
 #define CONFIG_EXEC_USING_SHELL   False
@@ -80,6 +82,12 @@
 //#define CONFIG_NEW_WINDOW_COMMAND_OPTIONS "-ls","-sb","-sl","1024",0
 // alternatively,
 #define CONFIG_DISABLE_NEW_WINDOW_COMMAND (dConfig.disableNew())
+#define DEFAULT_DISABLE_NEW_WINDOW_COMMAND 0
+// 0 = allow New window, 1 = don't
+
+// What to do on right mouse button
+#define DEFAULT_RIGHT_MOUSE_BUTTON 1
+// 0 = disable, 1 = circulate, 2 = lower
 
 // Area where [exit wmx] is added (0 -> everywhere -# -> px from other side)
 #define CONFIG_EXIT_CLICK_SIZE_X 0
@@ -101,6 +109,8 @@
 #define CONFIG_CLICK_TO_FOCUS     (dConfig.clickFocus())
 #define CONFIG_RAISE_ON_FOCUS     (dConfig.raiseFocus())
 #define CONFIG_AUTO_RAISE         (dConfig.autoRaiseFocus())
+#define DEFAULT_MOUSE_FOCUS       0
+// 1 = Click , 2 = Raise, 4 = Autoraise
 
 // Delays when using AUTO_RAISE focus method
 // 
@@ -110,6 +120,7 @@
 // has stopped moving (only when over simple X windows such as xvt).
 
 #define CONFIG_AUTO_RAISE_DELAY       (dConfig.raiseDelay())
+#define DEFAULT_AUTO_RAISE_DELAY      400
 #define CONFIG_POINTER_STOPPED_DELAY  80
 #define CONFIG_DESTROY_WINDOW_DELAY   1000
 
@@ -162,6 +173,8 @@
 
 // Allow keyboard control?
 #define CONFIG_USE_KEYBOARD       (dConfig.useKeyboard())
+#define DEFAULT_USE_KEYBOARD      1
+// 1 = Keyboard on
 
 // This is a keyboard modifier mask as defined in <X11/X.h>.  It's the
 // modifier required for wm controls: e.g. Alt/Left and Alt/Right to
@@ -314,8 +328,10 @@
 // delay of 0ms.
 
 #define CONFIG_MAD_FEEDBACK       (dConfig.useFeedback())
+#define DEFAULT_MAD_FEEDBACK      0
+// 0 = no , 1 = yes
 #define CONFIG_FEEDBACK_DELAY     (dConfig.feedbackDelay())
-
+#define DEFAULT_FEEDBACK_DELAY    300
 
 #endif


Greetings from Germany, 
SvOlli
-- 
  _______
 (  /\           | Sometimes it's hard to listen to someone in your position
__)v\/lli a.k.a. | You maybe right, but sometimes I just don't see.
Sven Oliver Moll |   -- Wob, "Sometimes"



Next: