]> git.sur5r.net Git - i3/i3/log
i3/i3
8 years agorelease i3 4.10.4 4.10.4
Michael Stapelberg [Tue, 8 Sep 2015 07:19:17 +0000 (09:19 +0200)]
release i3 4.10.4

8 years agoRevert "Check if output is disabled in handle_output()"
Michael Stapelberg [Tue, 25 Aug 2015 18:09:56 +0000 (20:09 +0200)]
Revert "Check if output is disabled in handle_output()"

This reverts commit e71c304444dd3070877887d2bb5407cd64033946.

It turns out that several users have workflows in which they turn off
their monitors without using e.g. `xrandr --output DP-1 --off`. The
result is that the monitors are disconnected, but not disabled.

With commit e71c304444dd3070877887d2bb5407cd64033946, i3 started to see
these two states as one and the same state, but that causes more harm
than it does good. For example, for some users with only one monitor, i3
would just exit when these users turned off their monitor.

related to #1858, #1839

fixes #1845

8 years agoi3-msg: strdup getenv() result before freeing
shdown [Thu, 20 Aug 2015 19:55:23 +0000 (22:55 +0300)]
i3-msg: strdup getenv() result before freeing

Fixes #1852.

8 years agoMerge branch 'release-4.10.3'
Michael Stapelberg [Thu, 30 Jul 2015 20:27:15 +0000 (22:27 +0200)]
Merge branch 'release-4.10.3'

8 years agorelease i3 4.10.3 4.10.3
Michael Stapelberg [Thu, 30 Jul 2015 20:26:58 +0000 (22:26 +0200)]
release i3 4.10.3

8 years agoi3bar: fix freeing static strings
shdown [Tue, 2 Jun 2015 20:08:08 +0000 (23:08 +0300)]
i3bar: fix freeing static strings

name and color fields of blocks are freed in clear_statusline, so they
need to be strdup'ed.

8 years agomkdirp: do not throw an error if directory exists
Theo Buehler [Sat, 23 May 2015 11:12:18 +0000 (13:12 +0200)]
mkdirp: do not throw an error if directory exists

If I restart i3 4.10.2 twice, e.g. with

$ i3-msg restart; sleep 3; i3-msg restart

the second time I get the following two errors:

05/22/15 10:46:03 - ERROR: mkdir(/tmp/i3-theo.toAK7N) failed: File exists
05/22/15 10:46:03 - ERROR: Could not create "/tmp/i3-theo.toAK7N" for storing the restart layout, layout will be lost.

The first one is from mkdirp() in src/ipc.c and the second one is from
store_restart_layout() in src/util.c.

Notice that I do _not_ get the ``open()'' or ``Could not write restart layout to
...'' error messages, so the layout writing code after line 260 in
store_restart_layout() succeeded and the layout isn't actually lost.  Thus,
these error messages are a bit misleading, especially the second one (which is
triggered by the failure of mkdirp()).

POSIX says about `mkdir -p':

``Each dir operand that names an existing directory shall be ignored without
error.''

Therefore, I suggest the following simple patch that makes mkdirp() succeed if
the named file exists and actually is a directory.  This silences the second
error as well.

8 years agoMove mkdirp into libi3
Deiz [Sun, 29 Mar 2015 21:18:00 +0000 (17:18 -0400)]
Move mkdirp into libi3

8 years agoDetect base 16 in cmd criteria
Tony Crisci [Tue, 12 May 2015 21:04:01 +0000 (17:04 -0400)]
Detect base 16 in cmd criteria

Try to detect base 16 numbers given to `con_id` and `id` for command criteria
by setting the base of strtol to 0. This should also detect octal.

This is necessary because mouse bindings now may be serialized as hex as of
5c32de4.

8 years agouserguide: quoted strings need to be used, escaping isn’t possible
Michael Stapelberg [Sun, 3 May 2015 16:57:05 +0000 (18:57 +0200)]
userguide: quoted strings need to be used, escaping isn’t possible

fixes #1678

8 years agoInitialize workspace rect to the output's upon creation
Deiz [Sun, 26 Apr 2015 18:23:08 +0000 (14:23 -0400)]
Initialize workspace rect to the output's upon creation

The comment immediately following implied that this was the intended
behaviour. Not doing so means that compound commands that both move a
window to a new workspace as well as do something that depends on the
workspace's geometry (e.g. 'move position center' or 'floating enable'
on a tiled window) would use the workspace's calloc'd 0x0+0x0 geometry.

8 years agoCheck if output is disabled in handle_output()
Tony Crisci [Thu, 23 Apr 2015 22:21:15 +0000 (18:21 -0400)]
Check if output is disabled in handle_output()

Check if the `connection` of the randr output is
XCB_RANDR_CONNECTION_DISONNECTED and disable the output if it is.

This fixes an issue where the output would not be disabled if the output was
physically unplugged from the machine.

8 years agoIgnore InputHint when not in WM_HINTS
Tony Crisci [Sun, 26 Apr 2015 02:43:46 +0000 (22:43 -0400)]
Ignore InputHint when not in WM_HINTS

When InputHint is not in WM_HINTS (i.e., the flag is not set), treat the window
as if the InputHint was set (the default behavior). This means that i3 will
focus the window when it becomes managed.

fixes #1676

8 years agoBugfix: serialize con_id with %p in run_binding()
Tony Crisci [Sun, 26 Apr 2015 00:05:55 +0000 (20:05 -0400)]
Bugfix: serialize con_id with %p in run_binding()

%p is equivalent to either %x or %lx, depending on the pointer size of the
platform. Before this commit, we always used %d, which has the same behavior
on Linux, but is not automatically expanded to %ld on e.g. FreeBSD.

fixes #1661

9 years agoMerge branch 'release-4.10.2'
Michael Stapelberg [Thu, 16 Apr 2015 07:03:28 +0000 (09:03 +0200)]
Merge branch 'release-4.10.2'

9 years agorelease i3 4.10.2 4.10.2
Michael Stapelberg [Thu, 16 Apr 2015 07:02:58 +0000 (09:02 +0200)]
release i3 4.10.2

9 years agoBugfix: Remove windows from the save set when unmapping. sur5r.net/master
Michael Stapelberg [Mon, 6 Apr 2015 13:40:12 +0000 (15:40 +0200)]
Bugfix: Remove windows from the save set when unmapping.

fixes #1617

9 years agoUse a reasonable default sep_block_width if a separator_symbol is given
Ingo Bürk [Fri, 3 Apr 2015 20:54:59 +0000 (22:54 +0200)]
Use a reasonable default sep_block_width if a separator_symbol is given

9 years agoGet workspace name when renaming current workspace.
Michael Hofmann [Mon, 30 Mar 2015 06:23:00 +0000 (08:23 +0200)]
Get workspace name when renaming current workspace.

- fixes #1607

9 years agoCope with non-null-terminated x class properties.
Michael Hofmann [Sun, 29 Mar 2015 13:15:12 +0000 (15:15 +0200)]
Cope with non-null-terminated x class properties.

- fixes #1605

9 years agoMerge branch 'next' into master
Michael Stapelberg [Sun, 29 Mar 2015 17:07:24 +0000 (19:07 +0200)]
Merge branch 'next' into master

9 years agoMerge branch 'release-4.10.1'
Michael Stapelberg [Sun, 29 Mar 2015 17:07:24 +0000 (19:07 +0200)]
Merge branch 'release-4.10.1'

9 years agorelease i3 4.10.1 4.10.1
Michael Stapelberg [Sun, 29 Mar 2015 17:07:03 +0000 (19:07 +0200)]
release i3 4.10.1

9 years agoprepare release.sh for 4.10.1
Michael Stapelberg [Sun, 29 Mar 2015 16:51:04 +0000 (18:51 +0200)]
prepare release.sh for 4.10.1

9 years agorelease from “next”
Michael Stapelberg [Sun, 29 Mar 2015 16:50:00 +0000 (18:50 +0200)]
release from “next”

9 years agoMerge pull request #1592 from Deiz/xdg-wizard-font
Michael Stapelberg [Sun, 29 Mar 2015 16:53:31 +0000 (18:53 +0200)]
Merge pull request #1592 from Deiz/xdg-wizard-font

Make wizard window size and click coordinates dependent on font

9 years agoUpdate debian/changelog
Michael Stapelberg [Sun, 29 Mar 2015 16:08:59 +0000 (18:08 +0200)]
Update debian/changelog

9 years agoMerge branch 'master' into next
Michael Stapelberg [Sun, 29 Mar 2015 15:46:37 +0000 (17:46 +0200)]
Merge branch 'master' into next

9 years agoMerge branch 'release-4.10'
Michael Stapelberg [Sun, 29 Mar 2015 15:46:37 +0000 (17:46 +0200)]
Merge branch 'release-4.10'

9 years agorelease i3 4.10 4.10
Michael Stapelberg [Sun, 29 Mar 2015 15:46:16 +0000 (17:46 +0200)]
release i3 4.10

9 years agoupdate release.sh for the next version
Michael Stapelberg [Sun, 29 Mar 2015 15:45:46 +0000 (17:45 +0200)]
update release.sh for the next version

9 years agotravis: remove FORTIFY_SOURCE, causes trouble with clang
Michael Stapelberg [Sun, 29 Mar 2015 15:20:11 +0000 (17:20 +0200)]
travis: remove FORTIFY_SOURCE, causes trouble with clang

9 years agofix remaining warnings
Michael Stapelberg [Sun, 29 Mar 2015 15:12:20 +0000 (17:12 +0200)]
fix remaining warnings

9 years agotravis: enable more warnings, add -Werror
Michael Stapelberg [Sun, 29 Mar 2015 15:11:21 +0000 (17:11 +0200)]
travis: enable more warnings, add -Werror

This will ensure that our code stays free of warnings, at least for the
warnings that we have enabled. (Using _FORTIFY_SOURCE > 0 leads to more
warnings, some of them are harder to address.)

9 years agoMerge pull request #1575 from hwangcc23/next
Michael Stapelberg [Sun, 29 Mar 2015 14:53:14 +0000 (16:53 +0200)]
Merge pull request #1575 from hwangcc23/next

Fix warnings

9 years agoAdd a safe wrapper for write and fix some warnings 1575/head
hwangcc [Tue, 24 Mar 2015 12:57:06 +0000 (20:57 +0800)]
Add a safe wrapper for write and fix some warnings

1. Add a function writeall and make swrite wrap that function. Use either writeall or swrite, depending on whether we want to exit on errors or not.
2. Fix warnings when compiling with a higher optimisation level.
(CFLAGS ?= -pipe -O3 -march=native -mtune=native -freorder-blocks-and-partition)

Signed-off-by: hwangcc <hwangcc@csie.nctu.edu.tw>
9 years agoMake wizard window size and click coordinates dependent on font 1592/head
Deiz [Thu, 26 Mar 2015 19:34:37 +0000 (15:34 -0400)]
Make wizard window size and click coordinates dependent on font

This guarantees the whole visible area of the pixmap is reinitialized,
and ensures that the click bounding boxes are properly aligned with
the displayed text.

9 years agoMerge pull request #1596 from Deiz/wizard-add-up-down
Michael Stapelberg [Sat, 28 Mar 2015 17:16:27 +0000 (18:16 +0100)]
Merge pull request #1596 from Deiz/wizard-add-up-down

Switch the wizard's modifier choice when up or down are pressed

9 years agoSwitch the wizard's modifier choice when up or down are pressed 1596/head
Deiz [Sat, 28 Mar 2015 16:56:36 +0000 (12:56 -0400)]
Switch the wizard's modifier choice when up or down are pressed

9 years agoMerge pull request #1590 from acrisci/bug/i3bar-no-markup-default
Michael Stapelberg [Sat, 28 Mar 2015 09:08:41 +0000 (10:08 +0100)]
Merge pull request #1590 from acrisci/bug/i3bar-no-markup-default

i3bar: don't parse markup on statusline by default

9 years agoi3bar: don't parse markup on statusline by default 1590/head
Tony Crisci [Fri, 27 Mar 2015 23:00:32 +0000 (19:00 -0400)]
i3bar: don't parse markup on statusline by default

fixes #1565

9 years agoMerge pull request #1591 from Airblader/feature-child-cleanup
Michael Stapelberg [Fri, 27 Mar 2015 08:51:00 +0000 (09:51 +0100)]
Merge pull request #1591 from Airblader/feature-child-cleanup

Return in child parsing as soon as the match was made.

9 years agoMerge pull request #1582 from shdown/allow-escaping-backslashes
Michael Stapelberg [Fri, 27 Mar 2015 08:40:09 +0000 (09:40 +0100)]
Merge pull request #1582 from shdown/allow-escaping-backslashes

Allow escaping backslashes

9 years agoMerge pull request #1580 from Airblader/feature-nop
Michael Stapelberg [Fri, 27 Mar 2015 08:39:28 +0000 (09:39 +0100)]
Merge pull request #1580 from Airblader/feature-nop

Allow nop command without argument

9 years agoAllow nop command without argument 1580/head
Ingo Bürk [Wed, 25 Mar 2015 16:50:06 +0000 (17:50 +0100)]
Allow nop command without argument

fixes #1318

9 years agoReturn in child parsing as soon as the match was made. 1591/head
Ingo Bürk [Thu, 26 Mar 2015 18:27:28 +0000 (19:27 +0100)]
Return in child parsing as soon as the match was made.

As soon as we found the current key for which the value should be handled we can return
from the function to save some string comparisons.

9 years agoMerge pull request #1454 from acrisci/feature/i3bar-update-strut-partial-reload
Michael Stapelberg [Fri, 27 Mar 2015 08:02:05 +0000 (09:02 +0100)]
Merge pull request #1454 from acrisci/feature/i3bar-update-strut-partial-reload

reconfigure dock clients on strut partial change

9 years agoAdd tests for backslash unescaping 1582/head
shdown [Wed, 25 Mar 2015 19:55:26 +0000 (22:55 +0300)]
Add tests for backslash unescaping

9 years agoupdate default fonts for i3-{input,config-wizard,nagbar}
Michael Stapelberg [Thu, 26 Mar 2015 09:03:30 +0000 (10:03 +0100)]
update default fonts for i3-{input,config-wizard,nagbar}

We’ve done this a while ago in i3.config itself, but the tools in
question aren’t hooked up to that setting, so we need to do it here as
well.

9 years agomake i3-input work properly on hi-dpi displays
Michael Stapelberg [Thu, 26 Mar 2015 09:03:14 +0000 (10:03 +0100)]
make i3-input work properly on hi-dpi displays

9 years agomake i3-config-wizard work properly on hi-dpi displays
Michael Stapelberg [Thu, 26 Mar 2015 08:58:10 +0000 (09:58 +0100)]
make i3-config-wizard work properly on hi-dpi displays

9 years agomake i3-nagbar work properly on hi-dpi displays
Michael Stapelberg [Thu, 26 Mar 2015 08:44:46 +0000 (09:44 +0100)]
make i3-nagbar work properly on hi-dpi displays

9 years agoi3-sensible-terminal: launch i3-nagbar when no terminal is found
Michael Stapelberg [Thu, 26 Mar 2015 08:21:40 +0000 (09:21 +0100)]
i3-sensible-terminal: launch i3-nagbar when no terminal is found

fixes #1587

9 years agodebian: promote suggests to recommends to install a terminal emulator
Michael Stapelberg [Thu, 26 Mar 2015 08:19:15 +0000 (09:19 +0100)]
debian: promote suggests to recommends to install a terminal emulator

fixes #1587

9 years agoHandle strut partial changes for dock clients 1454/head
Tony Crisci [Wed, 25 Mar 2015 23:45:42 +0000 (19:45 -0400)]
Handle strut partial changes for dock clients

Handle changes to the property _NET_WM_STRUT_PARTIAL by reallocating
screen space in the dock area when the dock client requests a new
position.

This will allow changes to the bar config directive `position` to be
effective on the `reload` command.

fixes #1294

9 years agoi3bar: reconfigure strut partial on reload
Tony Crisci [Wed, 25 Mar 2015 23:17:06 +0000 (19:17 -0400)]
i3bar: reconfigure strut partial on reload

Strut partial tells i3 where to reserve space for i3bar. It is affected
by the `position` bar config directive.

9 years agoMerge pull request #1578 from Airblader/feature-custom-separator
Michael Stapelberg [Wed, 25 Mar 2015 21:49:09 +0000 (22:49 +0100)]
Merge pull request #1578 from Airblader/feature-custom-separator

Add support for a custom separator symbol

9 years agoDon’t focus placeholder windows.
Michael Stapelberg [Wed, 25 Mar 2015 21:47:23 +0000 (22:47 +0100)]
Don’t focus placeholder windows.

9 years agoAdd support for a custom separator symbol 1578/head
Ingo Bürk [Tue, 24 Mar 2015 22:07:25 +0000 (23:07 +0100)]
Add support for a custom separator symbol

This introduces a "separator_symbol" property for the i3bar configuration.
If set, the specified string will be used as a separator instead of a vertical line. Since it is an optional configuration, complete backwards compatibility is given.

fixes #1472

9 years agoBugfix: skip restart_mode swallow specifications
Michael Stapelberg [Wed, 25 Mar 2015 19:49:19 +0000 (20:49 +0100)]
Bugfix: skip restart_mode swallow specifications

Otherwise, placeholder windows would accumulate these over restarts. The
worst part is that they don’t get dumped properly, meaning an empty
swallows specification ends up in the state, which matches any window,
so other random windows would be matched into the placeholder (e.g.
i3bar).

fixes #1502

9 years agoRestore placeholder windows after restarting (Thanks Airblader).
Michael Stapelberg [Wed, 25 Mar 2015 19:48:51 +0000 (20:48 +0100)]
Restore placeholder windows after restarting (Thanks Airblader).

fixes #1502

9 years agoMerge pull request #1583 from shdown/next
Michael Stapelberg [Wed, 25 Mar 2015 19:16:00 +0000 (20:16 +0100)]
Merge pull request #1583 from shdown/next

i3bar: spelling fixes (2)

9 years agoAllow escaping backslashes
shdown [Wed, 25 Mar 2015 18:30:38 +0000 (21:30 +0300)]
Allow escaping backslashes

Fixes #1577.

9 years agoi3bar: spelling fixes (2) 1583/head
shdown [Tue, 24 Mar 2015 12:41:16 +0000 (15:41 +0300)]
i3bar: spelling fixes (2)

9 years agoMerge pull request #1574 from acrisci/bug/bar-text-null-check
Michael Stapelberg [Tue, 24 Mar 2015 10:08:57 +0000 (11:08 +0100)]
Merge pull request #1574 from acrisci/bug/bar-text-null-check

i3bar: check block text for NULL

9 years agoi3bar: check `short_text` for NULL on dump 1574/head
Tony Crisci [Tue, 24 Mar 2015 10:00:26 +0000 (06:00 -0400)]
i3bar: check `short_text` for NULL on dump

Check `short_text` for NULL on statusline dump, since this value can be
NULL when not given. Fixes a segfault in that case.

9 years agoi3bar: check block text for NULL
Tony Crisci [Tue, 24 Mar 2015 09:45:20 +0000 (05:45 -0400)]
i3bar: check block text for NULL

Add a null check to `full_text` and `short_text` for a block before
setting the markup property to avoid a segfault.

9 years agoRevert "Workspace command number selection"
Michael Stapelberg [Tue, 24 Mar 2015 08:27:42 +0000 (09:27 +0100)]
Revert "Workspace command number selection"

This reverts commit cbd51ce6642be4e1163a64dce8ec20a454f1bf05.

If you’ve started using this feature, I’m very sorry, but I think it’s
better to revert it entirely, as it will only cause more problems in the
future as more and more people upgrade and get bitten by this if we
didn’t revert it…

fixes #1536

9 years agoMerge pull request #1564 from acrisci/feature/i3bar-markup-per-block
Michael Stapelberg [Tue, 24 Mar 2015 07:57:36 +0000 (08:57 +0100)]
Merge pull request #1564 from acrisci/feature/i3bar-markup-per-block

i3bar: set markup per block

9 years agoi3bar: set markup per block 1564/head
Tony Crisci [Tue, 24 Mar 2015 06:27:38 +0000 (02:27 -0400)]
i3bar: set markup per block

Add `markup` to the i3bar protocol as a block member.

This is a string that determines how the block should be parsed as
markup. "pango" indicates the block should be parsed as Pango markup.
"none" indicates the block should not be parsed as markup.

9 years agoMerge pull request #1570 from shdown/next
Michael Stapelberg [Mon, 23 Mar 2015 21:10:17 +0000 (22:10 +0100)]
Merge pull request #1570 from shdown/next

i3bar: spelling fixes

9 years agoi3bar: spelling fixes 1570/head
shdown [Mon, 23 Mar 2015 19:56:49 +0000 (22:56 +0300)]
i3bar: spelling fixes

9 years agoMerge pull request #1562 from Airblader/feature-short-text
Michael Stapelberg [Mon, 23 Mar 2015 19:29:40 +0000 (20:29 +0100)]
Merge pull request #1562 from Airblader/feature-short-text

Add support for the short_text property

9 years agoMerge pull request #1568 from acrisci/feature/valgrind-no-verbose
Michael Stapelberg [Mon, 23 Mar 2015 19:27:35 +0000 (20:27 +0100)]
Merge pull request #1568 from acrisci/feature/valgrind-no-verbose

testcases: dont run valgrind verbose

9 years agotestcases: dont run valgrind verbose 1568/head
Tony Crisci [Mon, 23 Mar 2015 17:03:57 +0000 (13:03 -0400)]
testcases: dont run valgrind verbose

9 years agoAdd support for short_text 1562/head
Ingo Bürk [Sat, 21 Mar 2015 20:36:15 +0000 (21:36 +0100)]
Add support for short_text

When the statusline is too long, try to use the short_text property of each status block before falling back to truncating it.
fixes #1092

9 years agoIntroduce a function to copy i3strings
Ingo Bürk [Sat, 21 Mar 2015 20:33:53 +0000 (21:33 +0100)]
Introduce a function to copy i3strings

9 years agoIntroduce the short_text property on blocks and parse it according to the documentation.
Ingo Bürk [Sat, 21 Mar 2015 20:33:38 +0000 (21:33 +0100)]
Introduce the short_text property on blocks and parse it according to the documentation.

9 years agoclang-format and rearrange comments in i3bar/src/xcb.c
Michael Stapelberg [Mon, 23 Mar 2015 08:23:01 +0000 (09:23 +0100)]
clang-format and rearrange comments in i3bar/src/xcb.c

9 years agofix travis config with regards to clang-format
Michael Stapelberg [Mon, 23 Mar 2015 08:21:06 +0000 (09:21 +0100)]
fix travis config with regards to clang-format

9 years agoMerge pull request #1560 from shdown/refactoring
Michael Stapelberg [Sun, 22 Mar 2015 20:29:03 +0000 (21:29 +0100)]
Merge pull request #1560 from shdown/refactoring

i3bar: refactoring

9 years agoMerge pull request #1557 from acrisci/bug/fix-validation-segfault
Michael Stapelberg [Sun, 22 Mar 2015 13:32:36 +0000 (14:32 +0100)]
Merge pull request #1557 from acrisci/bug/fix-validation-segfault

Bugfix: validation segfault

9 years agoi3bar: introduce get_tray_width() function to reduce duplication 1560/head
shdown [Sun, 22 Mar 2015 10:08:31 +0000 (13:08 +0300)]
i3bar: introduce get_tray_width() function to reduce duplication

9 years agoi3bar: refactor magic numbers to *_px constants
shdown [Sat, 21 Mar 2015 17:46:36 +0000 (20:46 +0300)]
i3bar: refactor magic numbers to *_px constants

9 years agoBugfix: validation segfault 1557/head
Tony Crisci [Sun, 22 Mar 2015 09:46:52 +0000 (05:46 -0400)]
Bugfix: validation segfault

When `new_window` is given in the config, config validation with `i3 -C`
would segfault.

Add a NULL check in logical_px() to check for the case when the config
is being validated without an X server to prevent this.

9 years agoDon’t overwrite border width when already set (placeholders).
Michael Stapelberg [Sat, 21 Mar 2015 22:02:35 +0000 (23:02 +0100)]
Don’t overwrite border width when already set (placeholders).

fixes #1501

9 years agoi3bar: set correct initial position when reconfiguring
Michael Stapelberg [Sat, 21 Mar 2015 21:50:48 +0000 (22:50 +0100)]
i3bar: set correct initial position when reconfiguring

fixes #1542

9 years agoMerge pull request #1556 from Airblader/feature-i3-save-tree-by-number
Michael Stapelberg [Sat, 21 Mar 2015 21:37:42 +0000 (22:37 +0100)]
Merge pull request #1556 from Airblader/feature-i3-save-tree-by-number

Allow referencing the workspace by number.

9 years agoincrease timeouts for travis
Michael Stapelberg [Sat, 21 Mar 2015 21:22:37 +0000 (22:22 +0100)]
increase timeouts for travis

See https://travis-ci.org/i3/i3/jobs/55319961 (line 4064) for a job
where the window could not be mapped within 2 seconds.

9 years agoMerge pull request #1561 from Airblader/feature-append-layout-docs
Michael Stapelberg [Sat, 21 Mar 2015 21:08:58 +0000 (22:08 +0100)]
Merge pull request #1561 from Airblader/feature-append-layout-docs

Added a troubleshooting section to the restoring layout docs

9 years agoAdded a troubleshooting section to the restoring layout docs and described solution... 1561/head
Ingo Bürk [Sat, 21 Mar 2015 18:32:40 +0000 (19:32 +0100)]
Added a troubleshooting section to the restoring layout docs and described solution for vertically split containers

9 years agoMerge pull request #1559 from shdown/next
Michael Stapelberg [Sat, 21 Mar 2015 17:44:02 +0000 (18:44 +0100)]
Merge pull request #1559 from shdown/next

various i3bar bugfixes

9 years agoi3bar: fix click events for workspace buttons with long statusline 1559/head
shdown [Sat, 21 Mar 2015 16:41:38 +0000 (19:41 +0300)]
i3bar: fix click events for workspace buttons with long statusline

This combines detecting of current and clicked workspaces into one cycle
and then checks if the x coordinate of the clicked point is greater than
the workspace buttons width.

9 years agoi3bar: fix spelling is messages
shdown [Sat, 21 Mar 2015 16:22:31 +0000 (19:22 +0300)]
i3bar: fix spelling is messages

9 years agoi3bar: rename a variable
shdown [Sat, 21 Mar 2015 16:17:05 +0000 (19:17 +0300)]
i3bar: rename a variable

Give it a more meaningful name.

9 years agoi3bar: add binding indicator width to workspace buttons width
shdown [Sat, 21 Mar 2015 16:12:29 +0000 (19:12 +0300)]
i3bar: add binding indicator width to workspace buttons width

Just to prevent the indicator from being overlapped by the statusline.

9 years agoAllow referencing the workspace by number. 1556/head
Ingo Bürk [Sat, 21 Mar 2015 16:10:20 +0000 (17:10 +0100)]
Allow referencing the workspace by number.

This allows "--workspace 3" for numbered workspaces, e.g., if the name is actually
"3:foo". This introduces the same functionality the IPC already offers in many places.

9 years agoi3bar: cut long statuslines from the left
shdown [Sat, 21 Mar 2015 16:08:40 +0000 (19:08 +0300)]
i3bar: cut long statuslines from the left

This draws the statusline after drawing (and calculating width of) the
workspace buttons and fixes calculation of its maximum visible width.
This (hopefully) guarantees that these two will never overlap.

9 years agoi3bar: fix clearing of the statusline pixmap
shdown [Sat, 21 Mar 2015 16:00:11 +0000 (19:00 +0300)]
i3bar: fix clearing of the statusline pixmap

This fixes the bug when statusline pixmap wasn't entirely cleared that
caused random artifacts to appear when the statusline width is greater
than the screen width.

9 years agoMerge pull request #1555 from Airblader/feature-i3-save-tree-current-ws
Michael Stapelberg [Sat, 21 Mar 2015 15:38:46 +0000 (16:38 +0100)]
Merge pull request #1555 from Airblader/feature-i3-save-tree-current-ws

Make the --workspace optional by defaulting to the focused workspace.