mirror of
https://github.com/swaywm/sway.git
synced 2024-11-25 17:31:28 +00:00
styling fixes
This commit is contained in:
parent
d873d09f23
commit
39df3aed82
|
@ -123,15 +123,15 @@ static void mouse_button_notify(struct window *window, int x, int y,
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (button) {
|
switch (button) {
|
||||||
case BTN_LEFT:
|
case BTN_LEFT:
|
||||||
status_line_mouse_event(&swaybar, x, y, 1);
|
status_line_mouse_event(&swaybar, x, y, 1);
|
||||||
break;
|
break;
|
||||||
case BTN_MIDDLE:
|
case BTN_MIDDLE:
|
||||||
status_line_mouse_event(&swaybar, x, y, 2);
|
status_line_mouse_event(&swaybar, x, y, 2);
|
||||||
break;
|
break;
|
||||||
case BTN_RIGHT:
|
case BTN_RIGHT:
|
||||||
status_line_mouse_event(&swaybar, x, y, 3);
|
status_line_mouse_event(&swaybar, x, y, 3);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef ENABLE_TRAY
|
#ifdef ENABLE_TRAY
|
||||||
|
|
|
@ -94,8 +94,8 @@ static void render_block(struct window *window, struct config *config, struct st
|
||||||
|
|
||||||
double pos = *x;
|
double pos = *x;
|
||||||
|
|
||||||
block->x = (int) pos;
|
block->x = (int)pos;
|
||||||
block->width = (int) block_width;
|
block->width = (int)block_width;
|
||||||
|
|
||||||
// render background
|
// render background
|
||||||
if (block->background != 0x0) {
|
if (block->background != 0x0) {
|
||||||
|
|
|
@ -492,7 +492,7 @@ bool handle_status_line(struct bar *bar) {
|
||||||
|
|
||||||
json_object *click_events;
|
json_object *click_events;
|
||||||
if (json_object_object_get_ex(proto, "click_events", &click_events)
|
if (json_object_object_get_ex(proto, "click_events", &click_events)
|
||||||
&& json_object_get_boolean(click_events)
|
&& json_object_get_boolean(click_events) == true
|
||||||
) {
|
) {
|
||||||
sway_log(L_DEBUG, "Enabling click events.");
|
sway_log(L_DEBUG, "Enabling click events.");
|
||||||
bar->status->click_events = true;
|
bar->status->click_events = true;
|
||||||
|
|
Loading…
Reference in a new issue