Orestis Floros e285b3c47b Fix i3bar workspace buttons for primary screen (#6564)
git bisect: c7344095ec is the first bad
commit
```
c7344095ec (HEAD) Fix leak sanitizer memleaks (#6520)
 i3bar/src/ipc.c         |  5 +++--
 i3bar/src/workspaces.c  | 58 +++++++++++++++++++++++++++++++++-------------------------
 i3bar/src/xcb.c         |  1 +
 include/libi3.h         | 10 ++++------
 src/config_directives.c |  1 +
 src/config_parser.c     | 85 +++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------
 src/load_layout.c       |  2 +-
 src/restore_layout.c    |  4 ++++
 8 files changed, 96 insertions(+), 70 deletions(-)
```

To handle race conditions in the test, I tested with:
```diff
diff --git a/i3bar/src/workspaces.c b/i3bar/src/workspaces.c
index d712750d..0c481d18 100644
--- a/i3bar/src/workspaces.c
+++ b/i3bar/src/workspaces.c
@@ -286,6 +286,8 @@ void parse_workspaces_json(const unsigned char *json, const size_t size) {
         }
     }

+    sleep(1);
+
     yajl_free(handle);
     FREE(params.cur_key);
 }
```

fixes https://github.com/i3/i3/issues/6560
2025-12-23 15:11:03 +01:00
2024-08-05 18:23:55 +02:00
2025-12-19 08:28:21 +01:00
2025-03-21 12:48:29 +00:00
2022-10-16 18:21:08 +02:00
2024-08-05 18:23:55 +02:00
2024-08-05 18:23:55 +02:00
2020-05-19 14:45:06 +02:00
2018-05-01 13:49:55 +03:00
2024-08-05 18:23:55 +02:00
2025-12-19 08:20:07 +01:00
2025-12-19 08:19:53 +01:00

Logo i3: A tiling window manager

Build Status Issue Stats Pull Request Stats

Packages Packages

i3 is a tiling window manager for X11.

For more information about i3, please see the project's website and online documentation.

For information about contributing to i3, please see CONTRIBUTING.md.

Description
Languages
C 58%
Perl 36.4%
Raku 2.6%
Ruby 1.2%
Meson 0.7%
Other 1%