summaryrefslogtreecommitdiff
path: root/wm/i3/patches
diff options
context:
space:
mode:
authordegroote <degroote>2016-05-01 09:39:58 +0000
committerdegroote <degroote>2016-05-01 09:39:58 +0000
commit7bff6a904d525a083696c618c1974d0f2bbfd662 (patch)
tree8df64d8601b0d97ea228bc39abd9b193fb4cd697 /wm/i3/patches
parent02c33a23694f929a85f6b90dc5d0e400d202477e (diff)
downloadpkgsrc-7bff6a904d525a083696c618c1974d0f2bbfd662.tar.gz
Update to 4.12
Changes from upstream since 4.11 • use https instead of git/http, update contact information, add GPG key • docs/hacking-howto: fix old cfgparse.y reference to config_parser.c • docs/ipc: added link to i3ipcpp (C++ library) • docs/userguide: clarify no_focus documentation • docs/userguide: add documentation for binding modes • docs/userguide: fix rendering of __focused__ • docs/userguide: improve placement of explicit IDs for headings • docs/userguide: make rendering of key bindings more consistent • docs/userguide: clarify quoting of “exec” commands • man/i3-nagbar: fix example invocation • man/i3: add “floating window” to terminology • i3-sensible-*: quote variables correctly • i3-sensible-editor: add neovim • i3-sensible-terminal: add termit, st • i3bar: use cairo for all drawing operations • i3bar: support per-statusblock border and background colors • i3bar: support different bar background colors depending on whether the bar is on the focused output or not • i3bar: multiple tray_output directives on the same bar are now supported • i3bar: support disabling the modifier by specifying “modifier none” • use cairo for all drawing operations • fix a number of memory leaks, thanks to AddressSanitizer • no_focus is now suppressed for the first window of a workspace • “workspace next/prev” now looks for numbered workspaces after reaching the last workspace (it used to incorrectly only look at named workspaces) • multiple marks can now be set on a single window (but a mark can still only be present on one window at a time) • the “unmark” command now supports criteria • the “con_id” criterion now supports the special value __focused__ • the “workspace” command now supports the --no-auto-back-and-forth parameter • the “move window to workspace” command now supports the --no-auto-back-and-forth parameter • the “resize grow|shrink width|height” command now works for a nested split in the same direction • support _NET_WM_USER_TIME’s special 0 value, indicating that a window should not be focused • use 32-bit visual by default if available. This reduces graphical glitches when using transparency (which is still not officially supported) • the “move position center” command now supports criteria • specifying invalid match criteria now results in an error instead of blindly applying the operation to the currently focused window • allow mouse bindings to run on the root window • support matching _NET_WM_WINDOW_TYPE_NOTIFICATION in criteria • all criteria are now matched, even when con_id or con_mark are given (used to be a special case) • allow the “id” criterion to be specified in any base recognized by strtol(), not only base 10 • non-true color displays are now supported again (e.g. the Raspberry Pi) • the “split” command now has a “toggle” option • the additional color class “decoration_border” was added • title_format is now stored on containers instead of windows, allowing the use of title_format on split containers • On OpenBSD, i3 now uses pledge(2) • support _NET_WM_DESKTOP (for pager applications like gnome-panel) • floating workspaces are no longer available (they were not supported for a while now) • floating windows now carry the I3_FLOATING_WINDOW atom so that tools like compositors can be configured to match on floating windows Bugfixes from upstream since 4.11 • i3bar: display short text only on the monitor(s) on which it is necessary • i3bar: explicitly set cursor using libxcb-cursor if available • i3bar: fix XEMBED messages • i3-nagbar: explicitly set cursor using libxcb-cursor if available • duplicated keybindings are now also detected when one uses bindcode but the other(s) use(s) bindsym • keymap fallback for servers without XKB (e.g. TightVNC) has been added • using pango markup in mode names is now optional, fixing a regression in i3 v4.11 where modes which contained characters such as “<” would break. • moving windows to a workspace by specifying a mark now works • the root output is now used when any RandR request fails (for x2go) • assignments are now marked as run before executing them, preventing endless loops/crashes when assignments cause another assignment evaluation • splitting/floating a dock container no longer crashes i3 • correctly compare modifier mask when identifying keybindings (fixes bindings which use --release) • no longer fail config validation when there is no newline at the end of the config file • scrollwheel buttons are now only grabbed when necessary, allowing the use of “bindsym button*” or scrolling in windows without focusing them (in case no “bindsym button*” is present) • parse con_id in base 16 (affected FreeBSD only) • fix crash when opening a large number of windows • reject empty swallow definitions to avoid crashes • don’t remove SubstructureRedirect event mask temporarily (fixes i3bar stopping after system suspend) • move urgent flag before killing the parent to avoid a crash • correctly validate “kill” command to avoid crashing when “kill” is invoked on workspace containers • actually accept the documented “workspace” token as an alternative to “→” in assign statements • remove _NET_WM_STATE on withdrawn windows to comply with the spec • the “border” command now uses logical pixels (relevant for hi-dpi displays) • “tray_output primary” does not properly fall back and hence was removed from the default config again • correctly determine focused workspace when moving workspace to output • revert to default binding mode before reloading the config file • correctly interpret _MOTIF_WM_HINTS (endianness-dependent)
Diffstat (limited to 'wm/i3/patches')
-rw-r--r--wm/i3/patches/patch-src_log.c27
-rw-r--r--wm/i3/patches/patch-src_main.c33
2 files changed, 29 insertions, 31 deletions
diff --git a/wm/i3/patches/patch-src_log.c b/wm/i3/patches/patch-src_log.c
index 0f9b2316082..df1f2493f48 100644
--- a/wm/i3/patches/patch-src_log.c
+++ b/wm/i3/patches/patch-src_log.c
@@ -1,18 +1,14 @@
-$NetBSD: patch-src_log.c,v 1.3 2014/08/09 19:14:01 degroote Exp $
-
-NetBSD does not support shm_open (3), disable the code in this case
-
---- src/log.c.orig 2014-06-15 17:12:43.000000000 +0000
-+++ src/log.c 2014-08-09 20:52:23.000000000 +0000
-@@ -108,6 +108,7 @@
+--- src/log.c.orig 2016-03-06 15:17:18.000000000 +0000
++++ src/log.c 2016-05-01 10:51:32.392955298 +0000
+@@ -116,6 +116,7 @@
+ *
+ */
+ void open_logbuffer(void) {
++#if !defined(__NetBSD__)
+ /* Reserve 1% of the RAM for the logfile, but at max 25 MiB.
* For 512 MiB of RAM this will lead to a 5 MiB log buffer.
* At the moment (2011-12-10), no testcase leads to an i3 log
- * of more than ~ 600 KiB. */
-+#if !defined(__NetBSD__)
- long long physical_mem_bytes;
- #if defined(__APPLE__)
- int mib[2] = {CTL_HW, HW_MEMSIZE};
-@@ -163,6 +164,7 @@
+@@ -166,6 +167,7 @@
logwalk = logbuffer + sizeof(i3_shmlog_header);
loglastwrap = logbuffer + logbuffer_size;
store_log_markers();
@@ -20,16 +16,17 @@ NetBSD does not support shm_open (3), disable the code in this case
}
/*
-@@ -170,10 +172,12 @@
+@@ -173,11 +175,13 @@
*
*/
void close_logbuffer(void) {
+#if !defined(__NetBSD__)
close(logbuffer_shm);
shm_unlink(shmlogname);
+ free(shmlogname);
logbuffer = NULL;
shmlogname = "";
-+#endif
++#endif /* !defined(__NetBSD__) */
}
/*
diff --git a/wm/i3/patches/patch-src_main.c b/wm/i3/patches/patch-src_main.c
index 7e6eea7137e..6d94c7bef0a 100644
--- a/wm/i3/patches/patch-src_main.c
+++ b/wm/i3/patches/patch-src_main.c
@@ -1,27 +1,28 @@
-$NetBSD: patch-src_main.c,v 1.1.1.1 2013/02/12 23:25:35 tonnerre Exp $
-
---- src/main.c.orig 2012-12-11 23:08:17.000000000 +0000
-+++ src/main.c
-@@ -218,12 +218,6 @@ static void i3_exit(void) {
- #if EV_VERSION_MAJOR >= 4
+--- src/main.c.orig 2016-05-01 10:53:25.236039259 +0000
++++ src/main.c 2016-05-01 10:54:26.269651048 +0000
+@@ -166,11 +166,13 @@
ev_loop_destroy(main_loop);
#endif
--
-- if (*shmlogname != '\0') {
-- fprintf(stderr, "Closing SHM log \"%s\"\n", shmlogname);
-- fflush(stderr);
-- shm_unlink(shmlogname);
-- }
+
++#if !defined(__NetBSD__)
+ if (*shmlogname != '\0') {
+ fprintf(stderr, "Closing SHM log \"%s\"\n", shmlogname);
+ fflush(stderr);
+ shm_unlink(shmlogname);
+ }
++#endif /* !defined(__NetBSD__) */
}
/*
-@@ -233,9 +227,6 @@ static void i3_exit(void) {
+@@ -180,9 +182,11 @@
*
*/
static void handle_signal(int sig, siginfo_t *info, void *data) {
-- if (*shmlogname != '\0') {
-- shm_unlink(shmlogname);
-- }
++#if !defined(__NetBSD__)
+ if (*shmlogname != '\0') {
+ shm_unlink(shmlogname);
+ }
++#endif /* !defined(__NetBSD__) */
raise(sig);
}