diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-03-23 22:53:19 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-03-23 22:53:19 +0000 |
| commit | 1560825d8b6f676dd594acf70447fbe7af207a9e (patch) | |
| tree | 0d9996ea022adcead210b255164d976ac006fc80 /plugins/focus.c | |
| parent | 6b79b47f232445b428d415faf47008631b822168 (diff) | |
dont need the bool
Diffstat (limited to 'plugins/focus.c')
| -rw-r--r-- | plugins/focus.c | 8 |
1 files changed, 4 insertions, 4 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; |
