mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
add river/layout clang-format
This commit is contained in:
parent
757a450324
commit
301b106c48
@ -22,11 +22,13 @@ static void listen_urgent_tags(void *data, struct zriver_output_status_v1 *zrive
|
|||||||
// Intentionally empty
|
// Intentionally empty
|
||||||
}
|
}
|
||||||
|
|
||||||
static void listen_layout_name(void *data, struct zriver_output_status_v1 *zriver_output_status_v1, const char *layout) {
|
static void listen_layout_name(void *data, struct zriver_output_status_v1 *zriver_output_status_v1,
|
||||||
|
const char *layout) {
|
||||||
static_cast<Layout *>(data)->handle_name(layout);
|
static_cast<Layout *>(data)->handle_name(layout);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void listen_layout_name_clear(void *data, struct zriver_output_status_v1 *zriver_output_status_v1) {
|
static void listen_layout_name_clear(void *data,
|
||||||
|
struct zriver_output_status_v1 *zriver_output_status_v1) {
|
||||||
static_cast<Layout *>(data)->handle_clear();
|
static_cast<Layout *>(data)->handle_clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -73,7 +75,9 @@ static void handle_global(void *data, struct wl_registry *registry, uint32_t nam
|
|||||||
// implies ZRIVER_OUTPUT_STATUS_V1_LAYOUT_NAME_CLEAR_SINCE_VERSION
|
// implies ZRIVER_OUTPUT_STATUS_V1_LAYOUT_NAME_CLEAR_SINCE_VERSION
|
||||||
if (version < ZRIVER_OUTPUT_STATUS_V1_LAYOUT_NAME_SINCE_VERSION) {
|
if (version < ZRIVER_OUTPUT_STATUS_V1_LAYOUT_NAME_SINCE_VERSION) {
|
||||||
spdlog::error(
|
spdlog::error(
|
||||||
"river server does not support the \"layout_name\" and \"layout_clear\" events; the module will be disabled" + std::to_string(version));
|
"river server does not support the \"layout_name\" and \"layout_clear\" events; the "
|
||||||
|
"module will be disabled" +
|
||||||
|
std::to_string(version));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
static_cast<Layout *>(data)->status_manager_ = static_cast<struct zriver_status_manager_v1 *>(
|
static_cast<Layout *>(data)->status_manager_ = static_cast<struct zriver_status_manager_v1 *>(
|
||||||
@ -117,7 +121,6 @@ Layout::Layout(const std::string &id, const waybar::Bar &bar, const Json::Value
|
|||||||
}
|
}
|
||||||
|
|
||||||
label_.hide();
|
label_.hide();
|
||||||
label_.set_markup("");
|
|
||||||
ALabel::update();
|
ALabel::update();
|
||||||
|
|
||||||
seat_status_ = zriver_status_manager_v1_get_river_seat_status(status_manager_, seat_);
|
seat_status_ = zriver_status_manager_v1_get_river_seat_status(status_manager_, seat_);
|
||||||
|
Loading…
Reference in New Issue
Block a user