diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-01-20 12:36:42 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-01-31 12:54:51 -0500 |
| commit | a21840cbb7912c25abc1943c08d6980da7537a6c (patch) | |
| tree | 01a17f59e28b9ee549f2cded2f5a5e2839fdfe53 /openbox/focus.c | |
| parent | 20b8fcfa33feeade5946bc7f3046705da5d164fe (diff) | |
make ob_debug use the g_log system, and make openbox log messages to..a log file ! this will help everyone since most people do not run openbox in a terminal..
Diffstat (limited to 'openbox/focus.c')
| -rw-r--r-- | openbox/focus.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/openbox/focus.c b/openbox/focus.c index 7105aa41..68b0b7f9 100644 --- a/openbox/focus.c +++ b/openbox/focus.c @@ -66,7 +66,7 @@ void focus_set_client(ObClient *client) Window active; ob_debug_type(OB_DEBUG_FOCUS, - "focus_set_client 0x%lx\n", client ? client->window : 0); + "focus_set_client 0x%lx", client ? client->window : 0); if (focus_client == client) return; @@ -103,18 +103,18 @@ static ObClient* focus_fallback_target(gboolean allow_refocus, GList *it; ObClient *c; - ob_debug_type(OB_DEBUG_FOCUS, "trying pointer stuff\n"); + ob_debug_type(OB_DEBUG_FOCUS, "trying pointer stuff"); if (allow_pointer && config_focus_follow) if ((c = client_under_pointer()) && (allow_refocus || client_focus_target(c) != old) && (client_normal(c) && client_focus(c))) { - ob_debug_type(OB_DEBUG_FOCUS, "found in pointer stuff\n"); + ob_debug_type(OB_DEBUG_FOCUS, "found in pointer stuff"); return c; } - ob_debug_type(OB_DEBUG_FOCUS, "trying the focus order\n"); + ob_debug_type(OB_DEBUG_FOCUS, "trying the focus order"); for (it = focus_order; it; it = g_list_next(it)) { c = it->data; /* fallback focus to a window if: @@ -130,12 +130,12 @@ static ObClient* focus_fallback_target(gboolean allow_refocus, (allow_refocus || client_focus_target(c) != old) && client_focus(c)) { - ob_debug_type(OB_DEBUG_FOCUS, "found in focus order\n"); + ob_debug_type(OB_DEBUG_FOCUS, "found in focus order"); return c; } } - ob_debug_type(OB_DEBUG_FOCUS, "trying a desktop window\n"); + ob_debug_type(OB_DEBUG_FOCUS, "trying a desktop window"); for (it = focus_order; it; it = g_list_next(it)) { c = it->data; /* fallback focus to a window if: @@ -149,7 +149,7 @@ static ObClient* focus_fallback_target(gboolean allow_refocus, (allow_refocus || client_focus_target(c) != old) && client_focus(c)) { - ob_debug_type(OB_DEBUG_FOCUS, "found a desktop window\n"); + ob_debug_type(OB_DEBUG_FOCUS, "found a desktop window"); return c; } } |
