summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-03-23 22:53:19 +0000
committerDana Jansens <danakj@orodu.net>2003-03-23 22:53:19 +0000
commit1560825d8b6f676dd594acf70447fbe7af207a9e (patch)
tree0d9996ea022adcead210b255164d976ac006fc80
parent6b79b47f232445b428d415faf47008631b822168 (diff)
dont need the bool
-rw-r--r--plugins/focus.c8
-rw-r--r--plugins/placement/placement.c5
2 files changed, 6 insertions, 7 deletions
diff --git a/plugins/focus.c b/plugins/focus.c
index bb176a22..17ab20ef 100644
--- a/plugins/focus.c
+++ b/plugins/focus.c
@@ -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;
diff --git a/plugins/placement/placement.c b/plugins/placement/placement.c
index 6d025567..76b45525 100644
--- a/plugins/placement/placement.c
+++ b/plugins/placement/placement.c
@@ -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);