Removing remaining modification from CMakefileLists.txt,

fixing error message for unknown border style:
	"W: Got a unknown "border" property: "pixel". Perhaps its neccessary to update i3ipc++. If you are using latest, note maintainer about this"
caused by setting "new window pixel 1" in the i3config."
This commit is contained in:
mox
2016-06-11 17:23:11 +02:00
parent 029d22a8cd
commit 99c7bd76ac
3 changed files with 5 additions and 20 deletions

View File

@@ -4,9 +4,7 @@
#include <iostream>
#include <auss.hpp>
#ifndef I3IPCpp_USE_FULL_SIGNALS
#include <json/json.h>
#endif
#include "log.hpp"
#include "ipc-util.hpp"
@@ -78,6 +76,8 @@ static std::shared_ptr<container_t> parse_container_from_json(const Json::Value
container->border = BorderStyle::NORMAL;
} else if (border == "none") {
container->border = BorderStyle::NONE;
} else if (border == "pixel") {
container->border = BorderStyle::PIXEL;
} else if (border == "1pixel") {
container->border = BorderStyle::ONE_PIXEL;
} else {
@@ -178,6 +178,7 @@ std::string get_socketpath() {
return str;
}
connection::connection(const std::string& socket_path) : m_main_socket(i3_connect(socket_path)), m_event_socket(-1), m_subscriptions(0), m_socket_path(socket_path) {
#define i3IPC_TYPE_STR "i3's event"
signal_event.connect([this](EventType event_type, const std::shared_ptr<const buf_t>& buf) {