summaryrefslogtreecommitdiff
path: root/sway/log.c
diff options
context:
space:
mode:
authorDrew DeVault <[email protected]>2015-08-21 17:00:00 -0400
committerDrew DeVault <[email protected]>2015-08-21 17:00:00 -0400
commit39041d07b5fc3420cd964142a948f429b36a7a5c (patch)
tree1849aab63cd338bbb14567d9534d5266ca64dd6e /sway/log.c
parentf7a6dd7ce95ff5c5cefcd524d4261f78a887f0a9 (diff)
parentb05317c3a60c751ee4fbc596182b02f568b71c2e (diff)
Merge remote-tracking branch 'taiyu-len/master'
Diffstat (limited to 'sway/log.c')
-rw-r--r--sway/log.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sway/log.c b/sway/log.c
index a1e89bad..4a047eef 100644
--- a/sway/log.c
+++ b/sway/log.c
@@ -119,8 +119,9 @@ bool sway_assert(bool condition, const char* format, ...) {
/* XXX:DEBUG:XXX */
static void container_log(const swayc_t *c) {
fprintf(stderr, "focus:%c|",
- c->is_focused ? 'F' : // Focused
- c == active_workspace ? 'W' : // active workspace
+ c == get_focused_view(&root_container) ? 'K':
+ c == get_focused_container(&root_container) ? 'F' : // Focused
+ c == swayc_active_workspace() ? 'W' : // active workspace
c == &root_container ? 'R' : // root
'X');// not any others
fprintf(stderr,"(%p)",c);