mirror of
https://github.com/swaywm/sway.git
synced 2026-05-03 06:46:26 -04:00
Use sway_log functions instead of wlr_log
This commit is contained in:
parent
1185a8cc1f
commit
c7c1cf31f7
79 changed files with 377 additions and 372 deletions
|
|
@ -3,7 +3,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include "log.h"
|
||||
#include "swaybar/config.h"
|
||||
#include "swaybar/status_line.h"
|
||||
|
||||
|
|
@ -31,7 +31,7 @@ static bool i3bar_parse_json(struct status_line *status, const char *text) {
|
|||
status_error(status, "[failed to parse i3bar json]");
|
||||
return false;
|
||||
}
|
||||
wlr_log(L_DEBUG, "Got i3bar json: '%s'", text);
|
||||
sway_log(L_DEBUG, "Got i3bar json: '%s'", text);
|
||||
for (size_t i = 0; i < json_object_array_length(results); ++i) {
|
||||
json_object *full_text, *short_text, *color, *min_width, *align, *urgent;
|
||||
json_object *name, *instance, *separator, *separator_block_width;
|
||||
|
|
@ -193,7 +193,7 @@ bool i3bar_handle_readable(struct status_line *status) {
|
|||
|
||||
void i3bar_block_send_click(struct status_line *status,
|
||||
struct i3bar_block *block, int x, int y, uint32_t button) {
|
||||
wlr_log(L_DEBUG, "block %s clicked", block->name ? block->name : "(nil)");
|
||||
sway_log(L_DEBUG, "block %s clicked", block->name ? block->name : "(nil)");
|
||||
if (!block->name || !status->i3bar_state.click_events) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue