Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'vanilla/stable' into gaps
Browse files Browse the repository at this point in the history
  • Loading branch information
Airblader committed Nov 3, 2021
2 parents 9c6bbe5 + d83940a commit 1d00a6c
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 100 deletions.
93 changes: 0 additions & 93 deletions RELEASE-NOTES-4.20

This file was deleted.

27 changes: 27 additions & 0 deletions RELEASE-NOTES-4.20.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

┌──────────────────────────────┐
│ Release notes for i3 v4.20.1 │
└──────────────────────────────┘

This is i3 v4.20.1. This version is considered stable. All users of i3 are
strongly encouraged to upgrade.

┌────────────────────────────┐
│ Bugfixes │
└────────────────────────────┘

• i3bar: fix crash with multiple monitors
• xmlto: fix broken .TH line by extending title length
• i3-msg: fix --raw short form (-r) in manpage
• libi3: add missing sys/stat.h header
• use getcwd(NULL, 0) instead of GNU extension get_current_dir_name()

┌────────────────────────────┐
│ Thanks! │
└────────────────────────────┘

Thanks for testing, bugfixes, discussions and everything I forgot go out to:

rvalieris, Jakob Haufe, lycurgus, Baptiste Daroussin

-- Michael Stapelberg, 2021-11-03
3 changes: 3 additions & 0 deletions i3bar/src/ipc.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ static bool strings_differ(char *a, char *b) {
if (a_null != b_null) {
return true;
}
if (a_null && b_null) {
return false;
}
return strcmp(a, b) != 0;
}

Expand Down
1 change: 1 addition & 0 deletions include/libi3.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <stdbool.h>
#include <stdarg.h>
#include <stdio.h>
#include <sys/stat.h>
#include <xcb/xcb.h>
#include <xcb/xproto.h>
#include <xcb/xcb_keysyms.h>
Expand Down
2 changes: 1 addition & 1 deletion man/i3-msg.man
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Instead of exiting right after receiving the first subscribed event,
wait indefinitely for all of them. Can only be used with "-t subscribe".
See the "subscribe" IPC message type below for details.

*-q, --raw*::
*-r, --raw*::
Display the raw JSON reply instead of pretty-printing errors (for commands) or
displaying the top-level config file contents (for GET_CONFIG).

Expand Down
4 changes: 3 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
project(
'i3',
'c',
version: '4.20',
version: '4.20.1',
default_options: [
'c_std=c11',
'warning_level=1', # enable all warnings (-Wall)
Expand Down Expand Up @@ -229,6 +229,8 @@ if get_option('mans')
output: '@[email protected]',
command: [
xmlto,
'--stringparam',
'man.th.title.max.length=30',
'man',
'-o',
'@OUTDIR@',
Expand Down
13 changes: 9 additions & 4 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

set -eu

export RELEASE_VERSION="4.19"
export PREVIOUS_VERSION="4.18.3"
export RELEASE_VERSION="4.20"
export PREVIOUS_VERSION="4.19.2"
export RELEASE_BRANCH="next"

if [ ! -e "../i3.github.io" ]
Expand Down Expand Up @@ -37,8 +37,8 @@ STARTDIR=$PWD

TMPDIR=$(mktemp -d)
cd $TMPDIR
if ! wget https://i3wm.org/downloads/i3-${PREVIOUS_VERSION}.tar.bz2; then
echo "Could not download i3-${PREVIOUS_VERSION}.tar.bz2 (required for comparing files)."
if ! wget https://i3wm.org/downloads/i3-${PREVIOUS_VERSION}.tar.xz; then
echo "Could not download i3-${PREVIOUS_VERSION}.tar.xz (required for comparing files)."
exit 1
fi
git clone --quiet --branch "${RELEASE_BRANCH}" https://github.com/i3/i3
Expand Down Expand Up @@ -100,6 +100,11 @@ git config --add remote.origin.push "+refs/heads/stable:refs/heads/stable"
cd "${TMPDIR}"
mkdir debian

# Copy over the changelog because we expect it to be locally modified in the
# start directory.
cp "${STARTDIR}/debian/changelog" i3/debian/changelog
(cd i3 && git add debian/changelog && git commit -m 'Update debian/changelog')

cat > ${TMPDIR}/Dockerfile <<EOT
FROM debian:sid
RUN sed -i 's,^deb \(.*\),deb \1\ndeb-src \1,g' /etc/apt/sources.list
Expand Down
2 changes: 1 addition & 1 deletion src/config_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ parse_file_result_t parse_file(struct parser_ctx *ctx, const char *f, IncludedFi
FILE *fstr;
char buffer[4096], key[512], value[4096], *continuation = NULL;

char *old_dir = get_current_dir_name();
char *old_dir = getcwd(NULL, 0);
char *dir = NULL;
/* dirname(3) might modify the buffer, so make a copy: */
char *dirbuf = sstrdup(f);
Expand Down

0 comments on commit 1d00a6c

Please sign in to comment.