Commit Graph

6206 Commits

Author SHA1 Message Date
Michael Stapelberg da94674f8f bump version 2017-08-19 18:13:19 +02:00
Michael Stapelberg 192ef6a827 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).
2017-08-19 18:13:19 +02:00
Michael Stapelberg e656864838 use new default ipc-socket path, glob() path, bump version 2017-08-19 18:13:19 +02:00
Michael Stapelberg 5d1bb0b0ce Bump version for new CPAN upload, fix MANIFEST 2017-08-19 18:13:19 +02:00
Michael Stapelberg f12facc184 bump version to 0.02, update MANIFEST 2017-08-19 18:13:19 +02:00
Michael Stapelberg b9c83fbd26 add testcase for sugar methods 2017-08-19 18:13:19 +02:00
Michael Stapelberg e34675c3c7 Implement _error callback 2017-08-19 18:13:19 +02:00
Michael Stapelberg d137f83452 Add sugar methods for easier usage 2017-08-19 18:13:19 +02:00
Michael Stapelberg 45eef6bdf7 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.
2017-08-19 18:13:19 +02:00
Michael Stapelberg 1aac4d3f14 Use $self->message in subscribe 2017-08-19 18:13:19 +02:00
Michael Stapelberg b57fca1ef9 kill left-over variable 2017-08-19 18:13:19 +02:00
Michael Stapelberg 7ffa4bea31 Use only 'import' of 'Exporter' 2017-08-19 18:13:19 +02:00
Michael Stapelberg 98e32d39a5 reformat perldoc paragraph 2017-08-19 18:13:19 +02:00
Michael Stapelberg 4ba7259f6a use constant instead of magic number 2017-08-19 18:13:19 +02:00
Michael Stapelberg 460f09915f Get rid of _bytelength, use encode_utf8 and length instead. Correctly check for scalar 2017-08-19 18:13:19 +02:00
Michael Stapelberg 8b2db9a238 Bugfix: Handle message_type == 0 2017-08-19 18:13:19 +02:00
Michael Stapelberg e3f0e5b01c Add new constants 2017-08-19 18:13:19 +02:00
Michael Stapelberg f6a2605610 update MANIFEST correctly (use MANIFEST.SKIP instead of ignore.txt) 2017-08-19 18:13:19 +02:00
Michael Stapelberg 4c6b8f91e0 Update MANIFEST 2017-08-19 18:13:19 +02:00
Michael Stapelberg e35d6039d7 Provide constants for message types 2017-08-19 18:13:19 +02:00
Michael Stapelberg 1044c9814b Expand testcase for the get_workspaces message (needs i3 to be running) 2017-08-19 18:13:19 +02:00
Michael Stapelberg 279528a863 Return connection status in condvar in $i3->connect 2017-08-19 18:13:19 +02:00
Michael Stapelberg 7d92e2c3e2 kill boilerplate 2017-08-19 18:13:19 +02:00
Michael Stapelberg 5c9e2833b6 prefix internal subs with _ 2017-08-19 18:13:19 +02:00
Michael Stapelberg 632bdb7d2a Initial commit 2017-08-19 18:13:19 +02:00
Michael Stapelberg 5738ea10bb t/171-config-migrate: escape braces for newer Perl versions 2017-08-19 17:45:37 +02:00
Michael Stapelberg 69efe0176e Prevent accidentally introduced fall-through
This was added in commit e82e26a24d
2017-08-19 17:29:31 +02:00
Ingo Bürk e4da07e734 Merge pull request #2847 from tmerr/next
Document missing case of workspace event
2017-07-31 11:48:10 +02:00
Trevor Merrifield a805676197 Document missing case of workspace event
The docs are missing the "move" workspace event emitted from
workspace.c's workspace_move_to_output function.
2017-07-30 01:14:07 -04:00
Trevor Merrifield 6a8a4266f3 Add missing newline to end of file 2017-07-30 00:59:53 -04:00
Ingo Bürk b23f23b29b Merge pull request #2836 from acrisci/bug/sysconfdir-to-makefile
Move SYSCONFDIR definition to makefile
2017-07-13 06:55:22 +02:00
Ingo Bürk 0016ee8366 Merge pull request #2838 from acrisci/bug/colors-only-hex
Ensure colors are in hex
2017-07-13 06:50:05 +02:00
Tony Crisci 3a914396df 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
2017-07-12 17:53:15 -04:00
Tony Crisci 1c06f8b797 i3bar: change error block color to hex
Named colors are not supported by the i3bar protocol so give the error block
color in hex.
2017-07-12 17:53:15 -04:00
Tony Crisci c534a3ea95 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
2017-07-12 10:57:23 -04:00
Ingo Bürk bf1e4339e6 Merge pull request #2831 from dvejmz/next
Add KDE konsole terminal fallback to i3-sensible-terminal
2017-07-11 16:06:45 +02:00
David Jimenez Sequero cacd2ae600 Add KDE konsole terminal fallback to i3-sensible-terminal 2017-07-10 12:27:31 +01:00
Ingo Bürk cea7d135a5 Merge pull request #2827 from akash-akya/next
Fix 'Mouse binding don't work'
2017-07-09 13:23:42 +02:00
akash akya ec3ffdd7a0 Fix 'Mouse binding don't work' 2017-07-07 01:03:36 +05:30
Ingo Bürk 2a918169f2 Merge pull request #2820 from hwangcc23/fix-2804
i3-msg: Return an exit code upon missing -t arg
2017-06-23 08:31:08 +02:00
hwangcc23 5362876b60 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).
2017-06-22 22:53:08 +08:00
Ingo Bürk 78adcdab7f Merge pull request #2808 from hwangcc23/fix-2802
Fix 'rename workspace to tosomething'
2017-06-13 15:15:49 +02:00
hwangcc23 cc4be41674 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.
2017-06-12 22:21:21 +08:00
Ingo Bürk e8f86832ee Merge pull request #2795 from Adaephon-GH/doc-config-load-order
Fix manpage on configuration lookup order
2017-06-12 11:01:58 +02:00
Ingo Bürk 4a66407602 Merge pull request #2799 from hwangcc23/add_compilation_inst
Add compilation instructions to the hacking howto
2017-06-12 11:00:28 +02:00
hwangcc23 e63070607f Add compilation instructions to the hacking howto 2017-06-03 23:21:42 +08:00
Ingo Bürk d3901fe92e Merge pull request #2796 from Armael/next
Add a link to the ocaml-i3ipc library
2017-05-31 20:33:39 +02:00
Armaël Guéneau b2ee718f56 Add a link to the ocaml-i3ipc library 2017-05-31 16:53:33 +02:00
Adaephon-GH ca1b0afca1 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
bfa12a5819.
Since that commit (6.5 years ago) the "traditional" paths took precedence
over XDG_CONFIG paths.
2017-05-31 11:26:07 +02:00
Ingo Bürk a7e8c4dd46 Merge pull request #2772 from loungecube/patch-1
prevent multiple menu items per .desktop entry
2017-05-29 08:37:44 +02:00