]> Dogcows Code - chaz/openbox/commitdiff
removing focusLast again..
authorDana Jansens <danakj@orodu.net>
Sun, 28 Sep 2003 08:45:43 +0000 (08:45 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 28 Sep 2003 08:45:43 +0000 (08:45 +0000)
data/rc.xml.in
data/rc.xsd
openbox/config.c
openbox/config.h
openbox/focus.c

index e107ac047861fb03009fc65cd0199d25284e4bba..0141abb27f80354de70bda0dd12ed2d81c5c0ffd 100644 (file)
@@ -15,7 +15,6 @@
 
 <focus>
   <focusNew>yes</focusNew>
-  <focusLast>yes</focusLast>
   <followMouse>no</followMouse>
   <focusDelay>0</focusDelay>
   <raiseOnFocus>no</raiseOnFocus>
index 40f37f18775cf3c88e7390d7743c17a6a4fd5fe6..56fe299384deb1f6ea56041880707c8aff352f52 100644 (file)
@@ -70,7 +70,6 @@
         </xs:annotation>
         <xs:sequence>
             <xs:element name="focusNew" type="ob:yesorno"/>
-            <xs:element name="focusLast" type="ob:yesorno"/>
             <xs:element name="followMouse" type="ob:yesorno"/>
             <xs:element name="focusDelay" type="xs:integer"/>
             <xs:element name="raiseOnFocus" type="ob:yesorno"/>
index 16b0be4d093f89bafab49127799c409ccc25dbd7..aebf433fbb00516fb505c2a7ca6f17a683891ebf 100644 (file)
@@ -26,7 +26,6 @@
 
 gboolean config_focus_new;
 gboolean config_focus_follow;
-gboolean config_focus_last;
 guint    config_focus_delay;
 guint    config_focus_raise;
 
@@ -202,8 +201,6 @@ static void parse_focus(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
         config_focus_new = parse_bool(doc, n);
     if ((n = parse_find_node("followMouse", node)))
         config_focus_follow = parse_bool(doc, n);
-    if ((n = parse_find_node("focusLast", node)))
-        config_focus_last = parse_bool(doc, n);
     if ((n = parse_find_node("focusDelay", node)))
         config_focus_delay = parse_int(doc, n) * 1000;
     if ((n = parse_find_node("raiseOnFocus", node)))
@@ -476,7 +473,6 @@ void config_startup(ObParseInst *i)
 {
     config_focus_new = TRUE;
     config_focus_follow = FALSE;
-    config_focus_last = TRUE;
     config_focus_delay = 0;
     config_focus_raise = FALSE;
 
index 0c14b3764d9939de6bd743a99fc0078ab54ec658..465bff45d09218bed601523acf1e37945e4046b5 100644 (file)
@@ -30,9 +30,6 @@ struct _ObParseInst;
 extern gboolean config_focus_new;
 /*! Focus windows when the mouse enters them */
 extern gboolean config_focus_follow;
-/*! Should focus stay under the mouse when there is nothing focused or go to
- the last used window */
-extern gboolean config_focus_last;
 /*! Timeout for focusing windows on focus follows mouse, in microseconds */
 extern guint    config_focus_delay;
 /*! If windows should automatically be raised when they are focused in
index 3376d50ac352f6689383feb93794b8b38c2b46d8..873ba0357c75e5115471341bcc718bccebc1d5c4 100644 (file)
@@ -183,7 +183,7 @@ void focus_fallback(ObFocusFallbackType type)
         if (old->transient_for) {
             gboolean trans = FALSE;
 
-            if (config_focus_last || !config_focus_follow)
+            if (!config_focus_follow)
                 trans = TRUE;
             else {
                 ObClient *c;
@@ -215,7 +215,7 @@ void focus_fallback(ObFocusFallbackType type)
         }
     }
 
-    if (!config_focus_last && config_focus_follow)
+    if (config_focus_follow)
         if (focus_under_pointer())
             return;
 
This page took 0.027191 seconds and 4 git commands to generate.