]>
git.sur5r.net Git - i3/i3/log
Michael Stapelberg [Sun, 20 Aug 2017 11:12:06 +0000 (13:12 +0200)]
t/201-config-parser: update expected token list
Michael Stapelberg [Sun, 20 Aug 2017 10:58:13 +0000 (12:58 +0200)]
parser: only skip set[\s], not set.*
fixes #2564
Michael Stapelberg [Sun, 20 Aug 2017 10:57:26 +0000 (12:57 +0200)]
start nagbar when encountering invalid set statements
related to #2564
Michael Stapelberg [Sun, 20 Aug 2017 10:57:04 +0000 (12:57 +0200)]
Skip lines consisting only of “set”
Michael Stapelberg [Sun, 20 Aug 2017 10:55:55 +0000 (12:55 +0200)]
(Re-)initialize optional fields to empty strings
Michael Stapelberg [Sun, 20 Aug 2017 10:54:49 +0000 (12:54 +0200)]
Bugfix: check bounds before accessing memory
This fixes the following issue when having an error early in the config file:
==1562==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6220000180ff at pc 0x55c837edb1d3 bp 0x7ffee7534650 sp 0x7ffee7534648
READ of size 1 at 0x6220000180ff thread T0
#0 0x55c837edb1d2 in start_of_line ../../i3/src/config_parser.c:238
#1 0x55c837edc96f in parse_config ../../i3/src/config_parser.c:493
#2 0x55c837edf527 in parse_file ../../i3/src/config_parser.c:1091
#3 0x55c837ecf14b in parse_configuration ../../i3/src/config.c:65
#4 0x55c837ed1ef4 in load_configuration ../../i3/src/config.c:230
#5 0x55c837f0a8d0 in main ../../i3/src/main.c:539
#6 0x7fb63ae042b0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202b0)
#7 0x55c837e95eb9 in _start (/home/michael/i3/build/i3+0x4beb9)
0x6220000180ff is located 1 bytes to the left of 5165-byte region [0x622000018100,0x62200001952d)
allocated by thread T0 here:
#0 0x7fb63e590cf8 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.3+0xc1cf8)
#1 0x55c837f59aa6 in smalloc ../../i3/libi3/safewrappers.c:24
#2 0x55c837edef45 in parse_file ../../i3/src/config_parser.c:1029
#3 0x55c837ecf14b in parse_configuration ../../i3/src/config.c:65
#4 0x55c837ed1ef4 in load_configuration ../../i3/src/config.c:230
#5 0x55c837f0a8d0 in main ../../i3/src/main.c:539
#6 0x7fb63ae042b0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202b0)
Ingo Bürk [Sun, 20 Aug 2017 10:25:06 +0000 (12:25 +0200)]
Merge pull request #2863 from stapelberg/fixfreeze
i3bar: Bugfix: avoid freeze after VisibilityNotify
Michael Stapelberg [Sun, 20 Aug 2017 10:14:12 +0000 (12:14 +0200)]
i3bar: Bugfix: avoid freeze after VisibilityNotify
fixes #2790
Michael Stapelberg [Sat, 19 Aug 2017 22:19:45 +0000 (00:19 +0200)]
Bugfix: consider inactive monitors when querying (#2862)
fixes #2815
fixes #2594
Michael Stapelberg [Sat, 19 Aug 2017 17:23:02 +0000 (19:23 +0200)]
Merge pull request #2861 from stapelberg/ipcconfig
Introduce the GET_CONFIG IPC request
Michael Stapelberg [Sat, 19 Aug 2017 17:06:23 +0000 (19:06 +0200)]
Bump AnyEvent-I3 to 0.18
Michael Stapelberg [Sat, 19 Aug 2017 15:29:03 +0000 (17:29 +0200)]
Introduce the GET_CONFIG IPC request
This introduces memory usage by one copy of the config file, which is an
acceptable trade-off for being able to easily revert data loss.
The default config is 6KB, user configs will be in the same ballpark.
fixes #2856
Michael Stapelberg [Sat, 19 Aug 2017 17:05:25 +0000 (19:05 +0200)]
Makefile.am: fix anyevent-i3.stamp dependencies
Michael Stapelberg [Sat, 19 Aug 2017 16:32:04 +0000 (18:32 +0200)]
Merge pull request #2860 from stapelberg/anyevent-i3
Merge the AnyEvent-I3 repository into i3/AnyEvent-I3
Ingo Bürk [Sat, 19 Aug 2017 16:19:51 +0000 (18:19 +0200)]
Merge pull request #2859 from stapelberg/fixtests
Fix tests
Michael Stapelberg [Sat, 19 Aug 2017 14:51:51 +0000 (16:51 +0200)]
testcases: remove external AnyEvent::I3 dependency
Michael Stapelberg [Sat, 19 Aug 2017 14:32:39 +0000 (16:32 +0200)]
Move to AnyEvent-I3
Michael Stapelberg [Sun, 9 Apr 2017 13:34:36 +0000 (15:34 +0200)]
tag 0.17
Michael Stapelberg [Sun, 9 Apr 2017 13:32:04 +0000 (15:32 +0200)]
use lib '.' for Perl 5.25.11+
see also https://rt.cpan.org/Ticket/Display.html?id=120943
Tony Crisci [Fri, 6 May 2016 06:44:28 +0000 (02:44 -0400)]
Add the shutdown event (#2)
The shutdown event is triggered when the ipc shuts down because of
either a restart or when i3 exits.
Michael Stapelberg [Fri, 3 Oct 2014 07:39:10 +0000 (09:39 +0200)]
support the barconfig_update and binding event, tag 0.16
Michael Stapelberg [Mon, 18 Feb 2013 10:01:04 +0000 (11:01 +0100)]
support the window event, tag 0.15
Michael Stapelberg [Sat, 3 Nov 2012 10:47:27 +0000 (11:47 +0100)]
fix doc error: missing opening brace (Thanks bitonic)
Michael Stapelberg [Sat, 22 Sep 2012 11:11:08 +0000 (13:11 +0200)]
0.14: add support for the mode event
Michael Stapelberg [Sun, 5 Aug 2012 15:41:16 +0000 (17:41 +0200)]
update Changes file
Michael Stapelberg [Sun, 5 Aug 2012 15:31:57 +0000 (17:31 +0200)]
bump version to 0.13
Michael Stapelberg [Sun, 5 Aug 2012 15:31:22 +0000 (17:31 +0200)]
Implement the GET_VERSION request (with a fallback to i3 --version)
Michael Stapelberg [Sun, 5 Aug 2012 15:31:07 +0000 (17:31 +0200)]
add a more involved example to the SYNOPSIS
Michael Stapelberg [Wed, 11 Jul 2012 06:59:51 +0000 (08:59 +0200)]
bump version to 0.12
Michael Stapelberg [Wed, 11 Jul 2012 06:58:59 +0000 (08:58 +0200)]
remove relative directories from $ENV{PATH} (for taint mode)
Otherwise, the module will die when you use it with PATH=$PATH:. (as is
the case on the OpenBSD cpan testers).
Michael Stapelberg [Tue, 10 Jul 2012 16:55:30 +0000 (18:55 +0200)]
bump version to 0.11
Michael Stapelberg [Tue, 10 Jul 2012 16:55:05 +0000 (18:55 +0200)]
taint mode fix for FreeBSD
Michael Stapelberg [Mon, 9 Jul 2012 13:54:26 +0000 (15:54 +0200)]
bump version to 0.10
Michael Stapelberg [Mon, 9 Jul 2012 13:51:37 +0000 (15:51 +0200)]
update copyright and URL/email
Michael Stapelberg [Mon, 9 Jul 2012 13:49:16 +0000 (15:49 +0200)]
use i3 --get-socketpath by default for determining the socket path
This was introduced in i3 v4.1 (released 2011-11-11, so should be
widespread enough by now).
Michael Stapelberg [Sat, 21 Jan 2012 22:00:04 +0000 (22:00 +0000)]
Revert "implement the GET_LOG_MARKERS request" (no longer available)
This reverts commit
7e2ed06447af5e3b49af69dd24e2a5dec373ad9c .
Michael Stapelberg [Sat, 21 Jan 2012 21:59:12 +0000 (21:59 +0000)]
Bugfix: Also delete callbacks which are triggered due to an error
Michael Stapelberg [Sat, 10 Dec 2011 11:37:43 +0000 (11:37 +0000)]
implement the GET_LOG_MARKERS request
Requires i3 version
966c654112561b21fca076a8e967033510da9981 or later.
Michael Stapelberg [Thu, 20 Oct 2011 19:28:04 +0000 (20:28 +0100)]
Bump version to 0.09
Michael Stapelberg [Wed, 12 Oct 2011 22:26:04 +0000 (23:26 +0100)]
Add TYPE_GET_MARKS and accompanying sugar method
Michael Stapelberg [Wed, 12 Oct 2011 22:25:56 +0000 (23:25 +0100)]
Fix documentation for get_marks (s/tree/marks)
Michael Stapelberg [Mon, 26 Sep 2011 18:26:18 +0000 (19:26 +0100)]
Bump version to 0.08
Michael Stapelberg [Mon, 26 Sep 2011 18:25:59 +0000 (19:25 +0100)]
Implement support for the TYPE_GET_MARKS request, add ->get_marks sugar method
Michael Stapelberg [Mon, 26 Sep 2011 18:25:38 +0000 (19:25 +0100)]
Bugfix: The synopsis mentioned ->workspaces, but it’s ->get_workspaces
Michael Stapelberg [Sun, 21 Nov 2010 20:52:43 +0000 (21:52 +0100)]
introduce get_tree request (tree branch only)
Michael Stapelberg [Wed, 16 Jun 2010 17:40:55 +0000 (19:40 +0200)]
Add check to Makefile to abort in a Windows environment (neither i3 nor unix sockets available)
Hopefully, this will stop CPAN Testers emails about failing tests on windows.
Michael Stapelberg [Wed, 9 Jun 2010 22:20:11 +0000 (00:20 +0200)]
bump version
Michael Stapelberg [Wed, 9 Jun 2010 22:18:50 +0000 (00:18 +0200)]
use getpwuid() to resolve ~ in socket paths instead of glob()
This fixes a warning about using a tainted variable (broke the
tests with newer perl versions).
Michael Stapelberg [Sat, 27 Mar 2010 13:54:30 +0000 (14:54 +0100)]
use new default ipc-socket path, glob() path, bump version
Michael Stapelberg [Fri, 26 Mar 2010 18:48:59 +0000 (19:48 +0100)]
Bump version for new CPAN upload, fix MANIFEST
Michael Stapelberg [Tue, 23 Mar 2010 01:07:02 +0000 (02:07 +0100)]
bump version to 0.02, update MANIFEST
Michael Stapelberg [Tue, 23 Mar 2010 01:05:33 +0000 (02:05 +0100)]
add testcase for sugar methods
Michael Stapelberg [Tue, 23 Mar 2010 01:04:28 +0000 (02:04 +0100)]
Implement _error callback
Michael Stapelberg [Mon, 22 Mar 2010 22:23:07 +0000 (23:23 +0100)]
Add sugar methods for easier usage
Michael Stapelberg [Mon, 22 Mar 2010 22:22:42 +0000 (23:22 +0100)]
Remove obsolete paragraph about the need for a second connection
Due to the event-based handling of incoming data from i3 we do not
suffer from this problem.
Michael Stapelberg [Mon, 22 Mar 2010 21:33:26 +0000 (22:33 +0100)]
Use $self->message in subscribe
Michael Stapelberg [Mon, 22 Mar 2010 21:22:46 +0000 (22:22 +0100)]
kill left-over variable
Michael Stapelberg [Mon, 22 Mar 2010 20:50:41 +0000 (21:50 +0100)]
Use only 'import' of 'Exporter'
Michael Stapelberg [Mon, 22 Mar 2010 20:43:05 +0000 (21:43 +0100)]
reformat perldoc paragraph
Michael Stapelberg [Mon, 22 Mar 2010 20:42:35 +0000 (21:42 +0100)]
use constant instead of magic number
Michael Stapelberg [Mon, 22 Mar 2010 20:37:44 +0000 (21:37 +0100)]
Get rid of _bytelength, use encode_utf8 and length instead. Correctly check for scalar
Michael Stapelberg [Mon, 22 Mar 2010 20:37:33 +0000 (21:37 +0100)]
Bugfix: Handle message_type == 0
Michael Stapelberg [Fri, 19 Mar 2010 21:35:19 +0000 (22:35 +0100)]
Add new constants
Michael Stapelberg [Sat, 13 Mar 2010 17:30:46 +0000 (18:30 +0100)]
update MANIFEST correctly (use MANIFEST.SKIP instead of ignore.txt)
Michael Stapelberg [Sat, 13 Mar 2010 17:27:32 +0000 (18:27 +0100)]
Update MANIFEST
Michael Stapelberg [Sat, 13 Mar 2010 17:17:12 +0000 (18:17 +0100)]
Provide constants for message types
Michael Stapelberg [Sat, 13 Mar 2010 16:38:59 +0000 (17:38 +0100)]
Expand testcase for the get_workspaces message (needs i3 to be running)
Michael Stapelberg [Sat, 13 Mar 2010 16:38:32 +0000 (17:38 +0100)]
Return connection status in condvar in $i3->connect
Michael Stapelberg [Sat, 13 Mar 2010 16:21:52 +0000 (17:21 +0100)]
kill boilerplate
Michael Stapelberg [Sat, 13 Mar 2010 16:19:38 +0000 (17:19 +0100)]
prefix internal subs with _
Michael Stapelberg [Sat, 13 Mar 2010 16:11:09 +0000 (17:11 +0100)]
Initial commit
Michael Stapelberg [Sat, 19 Aug 2017 15:44:35 +0000 (17:44 +0200)]
t/171-config-migrate: escape braces for newer Perl versions
Michael Stapelberg [Sat, 19 Aug 2017 15:29:31 +0000 (17:29 +0200)]
Prevent accidentally introduced fall-through
This was added in commit https://github.com/i3/i3/commit/
e82e26a24d22e2f92cd90d9547c213493e94ea63
Ingo Bürk [Mon, 31 Jul 2017 09:48:10 +0000 (11:48 +0200)]
Merge pull request #2847 from tmerr/next
Document missing case of workspace event
Trevor Merrifield [Sun, 30 Jul 2017 04:47:40 +0000 (00:47 -0400)]
Document missing case of workspace event
The docs are missing the "move" workspace event emitted from
workspace.c's workspace_move_to_output function.
Trevor Merrifield [Sun, 30 Jul 2017 04:42:11 +0000 (00:42 -0400)]
Add missing newline to end of file
Ingo Bürk [Thu, 13 Jul 2017 04:55:22 +0000 (06:55 +0200)]
Merge pull request #2836 from acrisci/bug/sysconfdir-to-makefile
Move SYSCONFDIR definition to makefile
Ingo Bürk [Thu, 13 Jul 2017 04:50:05 +0000 (06:50 +0200)]
Merge pull request #2838 from acrisci/bug/colors-only-hex
Ensure colors are in hex
Tony Crisci [Wed, 12 Jul 2017 21:50:19 +0000 (17:50 -0400)]
libi3: Add basic validation to hex color conversion
Make sure a given hex color is the expected length and begins with a hash in
draw_util_hex_to_color() to avoid memory errors.
fixes #2829
Tony Crisci [Wed, 12 Jul 2017 21:50:10 +0000 (17:50 -0400)]
i3bar: change error block color to hex
Named colors are not supported by the i3bar protocol so give the error block
color in hex.
Tony Crisci [Wed, 12 Jul 2017 14:57:23 +0000 (10:57 -0400)]
Move SYSCONFDIR definition to makefile
Official autoconf docs contraindicate the use of the $sysconfdir
variable in configure.ac. For reference:
https://www.gnu.org/software/autoconf/manual/autoconf-2.63/html_node/Installation-Directory-Variables.html
The macro SYSCONFDIR (ordinarilly set to "/etc") is required to find
a system configuration file installed with i3. In some build setups,
this may not be defined properly in when the configure script is
compiled.
Instead, define this variable in AM_CPPFLAGS as the documentation
indicates.
fixes #2832
Ingo Bürk [Tue, 11 Jul 2017 14:06:45 +0000 (16:06 +0200)]
Merge pull request #2831 from dvejmz/next
Add KDE konsole terminal fallback to i3-sensible-terminal
David Jimenez Sequero [Mon, 10 Jul 2017 10:59:37 +0000 (11:59 +0100)]
Add KDE konsole terminal fallback to i3-sensible-terminal
Ingo Bürk [Sun, 9 Jul 2017 11:23:42 +0000 (13:23 +0200)]
Merge pull request #2827 from akash-akya/next
Fix 'Mouse binding don't work'
akash akya [Thu, 6 Jul 2017 19:33:36 +0000 (01:03 +0530)]
Fix 'Mouse binding don't work'
Ingo Bürk [Fri, 23 Jun 2017 06:31:08 +0000 (08:31 +0200)]
Merge pull request #2820 from hwangcc23/fix-2804
i3-msg: Return an exit code upon missing -t arg
hwangcc23 [Thu, 22 Jun 2017 14:53:08 +0000 (22:53 +0800)]
i3-msg: Return an exit code upon missing -t arg
If getopt() returns '?' (option with a missing argument), exit the program with an error code rather than continuing the execution.
Fix the issue #2804 (https://github.com/i3/i3/issues/2804).
Ingo Bürk [Tue, 13 Jun 2017 13:15:49 +0000 (15:15 +0200)]
Merge pull request #2808 from hwangcc23/fix-2802
Fix 'rename workspace to tosomething'
hwangcc23 [Sun, 11 Jun 2017 15:48:55 +0000 (23:48 +0800)]
Fix 'rename workspace to tosomething'
This patch fixes the issue #2802 (https://github.com/i3/i3/issues/2802).
1). Revise the state machine for the 'rename workspace' command.
These scenarios are considered:
a). 'rename workspace to to bla'
state transitions: RENAME -> RENAME_WORKSPACE -> RENAME_WORKSPACE_LIKELY_TO -> RENAME_WORKSPACE_LIKELY_TO_NEW_NAME
b). 'rename workspace to tosomething'
state transitions: RENAME -> RENAME_WORKSPACE -> RENAME_WORKSPACE_LIKELY_TO
c). 'rename workspace to to'
state transitions: RENAME -> RENAME_WORKSPACE -> RENAME_WORKSPACE_LIKELY_TO
d). 'rename workspace to bla'
state transitions: RENAME -> RENAME_WORKSPACE -> RENAME_WORKSPACE_LIKELY_TO
e). 'rename workspace bla to foo'
state transitions: RENAME -> RENAME_WORKSPACE -> RENAME_WORKSPACE_TO -> RENAME_WORKSPACE_TO_NEW_NAME
2). Add a test case in 117-workspace.t for the scenario b.
Ingo Bürk [Mon, 12 Jun 2017 09:01:58 +0000 (11:01 +0200)]
Merge pull request #2795 from Adaephon-GH/doc-config-load-order
Fix manpage on configuration lookup order
Ingo Bürk [Mon, 12 Jun 2017 09:00:28 +0000 (11:00 +0200)]
Merge pull request #2799 from hwangcc23/add_compilation_inst
Add compilation instructions to the hacking howto
hwangcc23 [Fri, 2 Jun 2017 14:26:09 +0000 (22:26 +0800)]
Add compilation instructions to the hacking howto
Ingo Bürk [Wed, 31 May 2017 18:33:39 +0000 (20:33 +0200)]
Merge pull request #2796 from Armael/next
Add a link to the ocaml-i3ipc library
Armaël Guéneau [Wed, 31 May 2017 14:52:17 +0000 (16:52 +0200)]
Add a link to the ocaml-i3ipc library
Adaephon-GH [Wed, 31 May 2017 09:26:07 +0000 (11:26 +0200)]
Fix manpage on configuration lookup order
The lookup order stated in the i3 manpage was is contratiction to the
actual lookup order, which was introduced with commit
https://github.com/i3/i3/commit/
bfa12a581915d6a3de182fa6025fce108cac8eab .
Since that commit (6.5 years ago) the "traditional" paths took precedence
over XDG_CONFIG paths.
Ingo Bürk [Mon, 29 May 2017 06:37:44 +0000 (08:37 +0200)]
Merge pull request #2772 from loungecube/patch-1
prevent multiple menu items per .desktop entry
Ingo Bürk [Wed, 24 May 2017 19:43:33 +0000 (21:43 +0200)]
Merge pull request #2784 from stapelberg/numrelease
compare modifiers for equality, not subset
Michael Stapelberg [Wed, 24 May 2017 18:42:27 +0000 (20:42 +0200)]
compare modifiers for equality, not subset (+test)
Subset comparison was introduced with the rather large commit
bf3cd41b5ddf1e757515ab5fbf811be56e5f69cc , but I now think we should use
equality.
In other words, the following key binding:
bindsym Mod4+x nop Mod4+x
previously would have been triggered when pressing Mod3+Mod4+x.
Strictly speaking, this is a change of behavior, but it breaks none of our
tests, and using equality instead of subset comparison enables more use-cases.
fixes #2002
Michael Stapelberg [Wed, 24 May 2017 18:41:55 +0000 (20:41 +0200)]
no-op change: store |button| in the correct data type
Michael Stapelberg [Wed, 24 May 2017 18:41:17 +0000 (20:41 +0200)]
no-op change: move bind->release check into loop
We don’t have to negate the check anymore, making it more readable.