aboutsummaryrefslogtreecommitdiff
path: root/i3-msg
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2012-01-06 23:40:07 +0000
committerMichael Stapelberg <michael@stapelberg.de>2012-01-06 23:40:07 +0000
commitdee7c07ad27263e2f9b595c06d4c1f0394036e78 (patch)
treec8380a3880ec389149ff1ee8b8141c8520e1babf /i3-msg
parented37a63942a8f462e155593bd4a3b378336e577d (diff)
downloadi3-dee7c07ad27263e2f9b595c06d4c1f0394036e78.tar.gz
i3-dee7c07ad27263e2f9b595c06d4c1f0394036e78.zip
shmlog: store meta information in the buffer itself, store path as X11 atom
This makes i3-dump-log completely independent of a running i3 instance.
Diffstat (limited to 'i3-msg')
-rw-r--r--i3-msg/main.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/i3-msg/main.c b/i3-msg/main.c
index e16f6943..ccf6e10f 100644
--- a/i3-msg/main.c
+++ b/i3-msg/main.c
@@ -73,11 +73,9 @@ int main(int argc, char *argv[]) {
message_type = I3_IPC_MESSAGE_TYPE_GET_MARKS;
else if (strcasecmp(optarg, "get_bar_config") == 0)
message_type = I3_IPC_MESSAGE_TYPE_GET_BAR_CONFIG;
- else if (strcasecmp(optarg, "get_log_markers") == 0)
- message_type = I3_IPC_MESSAGE_TYPE_GET_LOG_MARKERS;
else {
printf("Unknown message type\n");
- printf("Known types: command, get_workspaces, get_outputs, get_tree, get_marks, get_bar_config, get_log_markers\n");
+ printf("Known types: command, get_workspaces, get_outputs, get_tree, get_marks, get_bar_config\n");
exit(EXIT_FAILURE);
}
} else if (o == 'q') {
@@ -93,7 +91,7 @@ int main(int argc, char *argv[]) {
}
if (socket_path == NULL)
- socket_path = socket_path_from_x11();
+ socket_path = root_atom_contents("I3_SOCKET_PATH");
/* Fall back to the default socket path */
if (socket_path == NULL)