mirror of
https://github.com/swaywm/sway.git
synced 2024-12-28 07:56:31 +01:00
swaybar: reverse order of workspaces list
This makes it congruent with its visual appearance, making it easier to reason about.
This commit is contained in:
parent
b1c49038a6
commit
c3fdabb725
3 changed files with 3 additions and 3 deletions
|
@ -205,7 +205,7 @@ static void wl_pointer_axis(void *data, struct wl_pointer *wl_pointer,
|
||||||
|
|
||||||
struct swaybar_workspace *new;
|
struct swaybar_workspace *new;
|
||||||
|
|
||||||
if (amt > 0.0) {
|
if (amt < 0.0) {
|
||||||
if (active == first) {
|
if (active == first) {
|
||||||
if (!bar->config->wrap_scroll) {
|
if (!bar->config->wrap_scroll) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -307,7 +307,7 @@ bool ipc_get_workspaces(struct swaybar *bar) {
|
||||||
if (ws->urgent) {
|
if (ws->urgent) {
|
||||||
bar->visible_by_urgency = true;
|
bar->visible_by_urgency = true;
|
||||||
}
|
}
|
||||||
wl_list_insert(&output->workspaces, &ws->link);
|
wl_list_insert(output->workspaces.prev, &ws->link);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -466,7 +466,7 @@ static uint32_t render_to_cairo(cairo_t *cairo, struct swaybar_output *output) {
|
||||||
x = 0;
|
x = 0;
|
||||||
if (config->workspace_buttons) {
|
if (config->workspace_buttons) {
|
||||||
struct swaybar_workspace *ws;
|
struct swaybar_workspace *ws;
|
||||||
wl_list_for_each_reverse(ws, &output->workspaces, link) {
|
wl_list_for_each(ws, &output->workspaces, link) {
|
||||||
uint32_t h = render_workspace_button(cairo, output, ws, &x);
|
uint32_t h = render_workspace_button(cairo, output, ws, &x);
|
||||||
max_height = h > max_height ? h : max_height;
|
max_height = h > max_height ? h : max_height;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue