Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
Merge pull request #4377 from lbonn/signed-container-positions
Browse files Browse the repository at this point in the history
ipc: return signed int for container positions
  • Loading branch information
Airblader committed Apr 10, 2021
2 parents fcf4c23 + 496364f commit 9bf9cb9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions RELEASE-NOTES-next
Expand Up @@ -34,3 +34,5 @@ strongly encouraged to upgrade.
• i3bar: exit with 1 when a wrong command line argument is used
• fix commented-out rofi call in default i3 config
• clear pixmap before drawing to prevent visual garbage
• ipc: return proper signed int for container positions: negative values were
returned as large 32 bits integers
4 changes: 2 additions & 2 deletions src/ipc.c
Expand Up @@ -235,9 +235,9 @@ static void dump_rect(yajl_gen gen, const char *name, Rect r) {
ystr(name);
y(map_open);
ystr("x");
y(integer, r.x);
y(integer, (int32_t)r.x);
ystr("y");
y(integer, r.y);
y(integer, (int32_t)r.y);
ystr("width");
y(integer, r.width);
ystr("height");
Expand Down

0 comments on commit 9bf9cb9

Please sign in to comment.