]> Dogcows Code - chaz/openbox/commitdiff
dont need the bool
authorDana Jansens <danakj@orodu.net>
Sun, 23 Mar 2003 22:53:19 +0000 (22:53 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 23 Mar 2003 22:53:19 +0000 (22:53 +0000)
plugins/focus.c
plugins/placement/placement.c

index bb176a22d22ba980acfb0a2f7ba7d2eebab41a61..17ab20ef40915d974991698043ec7c07bab191f6 100644 (file)
@@ -118,14 +118,14 @@ static void focus_desktop()
 static void event(ObEvent *e, void *foo)
 {
     ConfigValue follow_mouse, focus_new;
-    gboolean r;
     
-    r = config_get("focus.followMouse", Config_Bool, &follow_mouse);
-    g_assert(r);
+    if (!config_get("focus.followMouse", Config_Bool, &follow_mouse))
+        g_assert_not_reached();
 
     switch (e->type) {
     case Event_Client_Mapped:
-        r = config_get("focus.focusNew", Config_Bool, &focus_new);
+        if (!config_get("focus.focusNew", Config_Bool, &focus_new))
+            g_assert_not_reached();
         if (focus_new.bool && client_normal(e->data.c.client))
             client_focus(e->data.c.client);
         break;
index 6d025567ec9d7b8357ebd16953847332f158823d..76b45525fcbcaf03d4660b0f4eeac1b658839e95 100644 (file)
@@ -49,15 +49,14 @@ static void place_random(Client *c)
 static void event(ObEvent *e, void *foo)
 {
     ConfigValue remember;
-    gboolean r;
 
     g_assert(e->type == Event_Client_New);
 
     /* requested a position */
     if (e->data.c.client->positioned) return;
 
-    r = config_get("placement.remember", Config_Bool, &remember);
-    g_assert(r);
+    if (!config_get("placement.remember", Config_Bool, &remember))
+        g_assert_not_reached();
 
     if (!remember.bool || !place_history(e->data.c.client))
         place_random(e->data.c.client);
This page took 0.02525 seconds and 4 git commands to generate.