]>
git.sur5r.net Git - i3/i3/log
Orestis Floros [Fri, 11 Jan 2019 12:44:39 +0000 (14:44 +0200)]
Fix crash with popups when fullscreen is non-leaf
Introduced in
b3e69ed12
Fixes #3582
Orestis [Wed, 2 Jan 2019 12:30:17 +0000 (14:30 +0200)]
Merge pull request #3574 from pclouds/no-newline-in-errx
Remove \n from errx and die messages
Nguyễn Thái Ngọc Duy [Wed, 2 Jan 2019 12:05:18 +0000 (19:05 +0700)]
Remove \n from errx and die messages
errx() already appends \n internally. "\n" in the error message will
result in a blank line after the message. die() is just a wrapper around
errx() so it receives the same treatment.
Ingo Bürk [Sun, 16 Dec 2018 08:36:02 +0000 (09:36 +0100)]
Merge pull request #3563 from CyberShadow/doc-mark-todo
userguide: Un-hide a TODO block completed in 2011
Ingo Bürk [Sun, 16 Dec 2018 08:33:25 +0000 (09:33 +0100)]
Merge pull request #3568 from orestisf1993/floating_reposition-render_con
Fix: render_con shows floating containers on wrong workspace
Orestis Floros [Sun, 16 Dec 2018 01:27:09 +0000 (03:27 +0200)]
Fix: render_con shows floating containers on wrong workspace
After
204eefc . Alternative fix:
diff --git a/src/floating.c b/src/floating.c
index
f5c61782 ..
6dd79668 100644
--- a/src/floating.c
+++ b/src/floating.c
@@ -954,7 +954,7 @@ bool floating_reposition(Con *con, Rect newrect) {
con->scratchpad_state = SCRATCHPAD_CHANGED;
/* Workspace change will already result in a tree_render. */
- if (!reassigned) {
+ if (!reassigned && workspace_is_visible(con_get_workspace(con))) {
render_con(con);
x_push_node(con);
}
but I don't think that the extra complexity is worth it.
Change in handlers.c because of
d2d6d6e0 where the bug also appears.
Fixes #3567
Ingo Bürk [Sat, 15 Dec 2018 17:29:46 +0000 (18:29 +0100)]
Merge pull request #3566 from orestisf1993/focus-events
Focus events
Orestis Floros [Fri, 14 Dec 2018 18:39:34 +0000 (20:39 +0200)]
Invalidate last_focused when focusing the EWMH support window
Fixes #3562
Orestis Floros [Fri, 14 Dec 2018 18:37:29 +0000 (20:37 +0200)]
Fix: killing unfocused window shouldn't produce focus event
Orestis Floros [Fri, 14 Dec 2018 21:35:58 +0000 (23:35 +0200)]
Update tree_close_internal documentation in tree.h
After
f90840337
Vladimir Panteleev [Fri, 14 Dec 2018 13:16:11 +0000 (13:16 +0000)]
userguide: Un-hide a TODO block completed in 2011
The userguide contained a commented-out section for marks, which
included the line:
> TODO: make i3-input replace %s
The line was added in
a26a11c6099f82fc9fd8b87f8bda128408b4f7c9 (May
2011), at which point i3-input did not have a -F switch. The switch
was added only in
1737a78fcd8025e11398dbcf5acd65c6a07ae86d (September
2011), but the documentation was never updated to enable the
commented-out examples.
Orestis [Fri, 14 Dec 2018 08:39:49 +0000 (10:39 +0200)]
Merge pull request #3560 from CyberShadow/doc-mark-replace
userguide: Document mark --replace flag
Vladimir Panteleev [Fri, 14 Dec 2018 08:29:23 +0000 (08:29 +0000)]
userguide: Document mark --replace flag
- Explicitly document --replace, which was previously only mentioned
in the command syntax.
- Improve wording: "a window can only have one mark" is slightly
misleading because it appears to describe the limitation as a
property of the model, whereas this actually pertains the mark
command.
Ingo Bürk [Wed, 12 Dec 2018 20:02:41 +0000 (21:02 +0100)]
Merge pull request #3557 from orestisf1993/regress-float-move
attach_to_workspace: set new parent before tree_render
Orestis Floros [Wed, 12 Dec 2018 17:09:39 +0000 (19:09 +0200)]
attach_to_workspace: set new parent before tree_render
on_remove_child calls tree_close_internal which calls tree_render and
the tree is in an invalid state if con->parent still points to the old
parent.
Fixes #3556
Orestis [Wed, 12 Dec 2018 11:19:43 +0000 (13:19 +0200)]
Merge pull request #3510 from orestisf1993/tree.t
Introduce cmp_tree test function
Orestis Floros [Tue, 6 Nov 2018 13:03:06 +0000 (15:03 +0200)]
Introduce cmp_tree test function
Related to #3503
Ingo Bürk [Tue, 11 Dec 2018 19:53:08 +0000 (20:53 +0100)]
Merge pull request #3551 from xzfc/baf-restart
Preserve back_and_forth during restart
Albert Safin [Mon, 10 Dec 2018 14:51:30 +0000 (21:51 +0700)]
Preserve back_and_forth during restart
Add new key "previous_workspace_name" to the json dump of the root container.
Ingo Bürk [Mon, 10 Dec 2018 17:34:51 +0000 (18:34 +0100)]
Merge pull request #3553 from stapelberg/hidpi
userguide: add a section about hidpi displays
Michael Stapelberg [Mon, 10 Dec 2018 17:18:23 +0000 (18:18 +0100)]
userguide: add a section about hidpi displays
This is a continuation of #3438.
Ingo Bürk [Sun, 9 Dec 2018 17:13:13 +0000 (18:13 +0100)]
Merge pull request #3549 from xzfc/small-fixes
Small fixes
Ingo Bürk [Sun, 9 Dec 2018 17:10:42 +0000 (18:10 +0100)]
Merge pull request #3550 from tlercher/3535-display-check
Fix #3535 - Check for DISPLAY when requesting version information
TAL [Sun, 9 Dec 2018 00:32:34 +0000 (01:32 +0100)]
Fix #3535 - Check for DISPLAY when requesting version information
Albert Safin [Sun, 9 Dec 2018 00:06:29 +0000 (07:06 +0700)]
Code style: fix misaligned and misindented comments
Albert Safin [Sat, 8 Dec 2018 23:15:53 +0000 (06:15 +0700)]
Remove unused con_get_next()
This function has unused for a long time since the commit
8f4b9ddaa43ae61932fd702ad7178c2b4e07cfb9 .
Albert Safin [Thu, 6 Dec 2018 15:39:57 +0000 (22:39 +0700)]
Remove unnecessary code in route_click()
This case is handled by resize_find_tiling_participants() anyway which
is introduced in the commit
dbec5eb90585bc22752331f51d8a6bc90d21889c .
Albert Safin [Sat, 8 Dec 2018 12:20:55 +0000 (19:20 +0700)]
commands.c: Add missing error replies
Orestis [Sat, 8 Dec 2018 12:49:04 +0000 (14:49 +0200)]
Merge pull request #3547 from stapelberg/conn
Bugfix: use restore_conn, not conn
Michael Stapelberg [Sat, 8 Dec 2018 12:31:53 +0000 (13:31 +0100)]
Bugfix: use restore_conn, not conn
Using the wrong X11 connection breaks the libev event handling model:
xcb_flush() must be called immediately before handing control to libev.
Before this fix:
1. xcb_prepare_cb would read and flush conn
2. restore_xcb_prepare_cb would read and flush restore_conn,
BUT also inadvertantly call xcb_flush(conn), resulting in new
events being filled into the XCB event queue
3. libev waits for new events
4. after 1 minute, libev times out and the events are processed
Diagnosed using strace on testcases/complete-run.pl.
related to commit
0d8b6714e39af81cbd6f4fbad500872a715dea24
related to #3510
Orestis [Wed, 5 Dec 2018 11:09:09 +0000 (13:09 +0200)]
Merge pull request #3541 from orestisf1993/title_align
Apply title_align to non-leaf containers
Orestis Floros [Tue, 4 Dec 2018 18:50:32 +0000 (20:50 +0200)]
Apply title_align to non-leaf containers
Additionally, marks will now display for non-leaf containers.
Fixes #3540.
Ingo Bürk [Mon, 3 Dec 2018 19:16:47 +0000 (20:16 +0100)]
Merge pull request #3514 from xzfc/2742-shape
Add input and bounding shapes support (#2742)
Albert Safin [Thu, 8 Nov 2018 23:19:08 +0000 (06:19 +0700)]
Add input and bounding shapes support (#2742)
Basic idea: if the window has a shape, set the parent container shape as
the union of the window shape and the shape of the frame borders.
Co-authored-by: Uli Schlachter <psychon@znc.in>
Albert Safin [Fri, 9 Nov 2018 11:43:25 +0000 (18:43 +0700)]
Log window id in state_for_frame()
Michael Stapelberg [Wed, 28 Nov 2018 16:38:16 +0000 (17:38 +0100)]
switch to clang-format-6.0 (#3533)
Ingo Bürk [Sat, 17 Nov 2018 15:08:22 +0000 (16:08 +0100)]
Merge pull request #3432 from orestisf1993/aspect-ratio
Fix aspect ratio bugs
Ingo Bürk [Thu, 15 Nov 2018 11:57:59 +0000 (12:57 +0100)]
Merge pull request #3524 from orestisf1993/regress-randr
randr.c: Fix regression with focusing NULL container
Orestis Floros [Thu, 15 Nov 2018 11:48:14 +0000 (13:48 +0200)]
randr.c: Fix regression with focusing NULL container
This was introduced in
db3b9e41874400958cf85b461a5d1ff04a398fa3 which
removed the NULL check for next.
Fixes #3523.
Ingo Bürk [Tue, 13 Nov 2018 09:24:11 +0000 (10:24 +0100)]
Merge pull request #3521 from c-edw/feature/StripWorkspaceDocs
Update userguide docs for strip_workspace_*.
Connor E [Tue, 13 Nov 2018 08:46:16 +0000 (08:46 +0000)]
Update userguide docs for strip_workspace_*.
Orestis Floros [Mon, 1 Oct 2018 23:15:59 +0000 (02:15 +0300)]
Re-render floating cons alone when possible
Orestis Floros [Mon, 1 Oct 2018 23:13:51 +0000 (02:13 +0300)]
render_con: Get rid of render_fullscreen argument
Only true for the fullscreen container and doesn't affect any of its
children. Thus, we can get the same result by checking
->fullscreen_mode.
Orestis Floros [Mon, 1 Oct 2018 16:47:33 +0000 (19:47 +0300)]
Fix aspect ratio bugs
- ICCCM says: > If a base size is not provided, the minimum size is to
be used in its place and vice versa.
i3 didn't obey the "vice versa" part. Min size and base size are both
saved without replacements in window_update_normal_hints,
floating_check_size makes the needed replacements if either was not
provided.
- Aspect ratio is now saved correctly in manage_window because
window_update_normal_hints is called.
- i3 didn't save the aspect ratio if the window conformed the given
aspect ratio range when handle_normal_hints was called. If the window
was resized to a size outside of the given bounds, i3 didn't correct it.
- Aspect ratio now affects only tiling windows, like the rest of the
normal size hints
- The aspect ratio calculation is now done without a loop
A real life example of how these changes affect the workflow:
An mpv window, when playing a video, sets its min == max aspect ratio
during mapping. i3 ignored these hints. When resized, the window's
aspect ratio was not preserved. With this commit, resizing floating mpv
windows will always preserve the aspect ratio.
Orestis Floros [Mon, 1 Oct 2018 22:52:31 +0000 (01:52 +0300)]
floating_resize: Use uint32_t
Orestis Floros [Mon, 1 Oct 2018 12:42:53 +0000 (15:42 +0300)]
floating_check_size: Use window variable
Ingo Bürk [Sat, 10 Nov 2018 21:12:01 +0000 (22:12 +0100)]
Merge pull request #3484 from xzfc/3476-export-i3sock
Export I3SOCK
Ingo Bürk [Sat, 10 Nov 2018 20:56:34 +0000 (21:56 +0100)]
Merge pull request #3397 from orestisf1993/randr-enable-disable
Fix bugs in enabling & disabling randr outputs
Ingo Bürk [Fri, 9 Nov 2018 20:01:57 +0000 (21:01 +0100)]
Merge pull request #3516 from orestisf1993/truncate-utf8
Truncate wm_name utf8 strings to first zero byte
Orestis Floros [Fri, 9 Nov 2018 17:41:31 +0000 (19:41 +0200)]
Truncate wm_name utf8 strings to first zero byte
Fixes #3515
Orestis [Thu, 8 Nov 2018 22:31:06 +0000 (00:31 +0200)]
Merge pull request #3511 from aksel/247-gaps-resize-fix
For resizing, convert pixel diff to percentage, based on parent.
aksel [Wed, 7 Nov 2018 21:49:04 +0000 (22:49 +0100)]
For resizing, convert pixel diff to percentage, based on parent.
Previously, it first calculated one of the containers' next percentage, and then subtracted the previous percentage to find the actual change.
Now it directly calculates the change, and subtracts and adds the change to the two affected containers.
Added util function con_rect_size_in_orientation.
Removed px_resize_to_percent; inlined, using con_rect_size_in_orientation.
Also, prematurely return when pixel diff is 0, as no action is necessary.
This is related to [this issue on i3-gaps](https://github.com/Airblader/i3/issues/247).
Ingo Bürk [Wed, 7 Nov 2018 13:13:41 +0000 (13:13 +0000)]
Merge pull request #2954 from orestisf1993/swap-for-floating
Rewrite con_swap to work only with queue operations
Ingo Bürk [Wed, 7 Nov 2018 07:11:21 +0000 (07:11 +0000)]
Merge pull request #3508 from orestisf1993/load_layout-marks
load_layout: Correctly mark non-leaf containers
Orestis Floros [Tue, 6 Nov 2018 23:06:20 +0000 (01:06 +0200)]
load_layout: Correctly mark non-leaf containers
Example problematic layout:
{
"layout": "splith",
"marks": ["H1"],
"nodes": [
{
"swallows": [
{
"class": "^a$"
}
]
}
]
}
Since the marks were added to the json_node during end_map, the
container that ended up getting the "H1" mark was the child instead of
the parent.
Ingo Bürk [Mon, 5 Nov 2018 21:32:54 +0000 (22:32 +0100)]
Merge pull request #3482 from hamishimac/next
Do not assume STDIN_FILENO is available for input from child
Ingo Bürk [Mon, 5 Nov 2018 21:32:27 +0000 (22:32 +0100)]
Merge pull request #3504 from Foxboron/morten/i3-man-path
Change config order in manpage
Ingo Bürk [Mon, 5 Nov 2018 21:31:35 +0000 (22:31 +0100)]
Merge pull request #3485 from xzfc/3412-outer-border
Draw outer header borders for all layouts
Orestis [Mon, 5 Nov 2018 18:45:59 +0000 (20:45 +0200)]
Merge pull request #3505 from stapelberg/release-docs
release.sh: save docs first
Michael Stapelberg [Mon, 5 Nov 2018 18:32:29 +0000 (19:32 +0100)]
release.sh: save docs first
Otherwise, as @orestisf1993 pointed out, the saved documentation will have the
wrong version number.
Albert Safin [Sat, 27 Oct 2018 11:32:25 +0000 (18:32 +0700)]
Draw outer header borders for all layouts
Morten Linderud [Mon, 5 Nov 2018 13:09:01 +0000 (14:09 +0100)]
Change config order in manpage
This brings the headline for the configuration files inline with the
recent move to XDG directories.
Signed-off-by: Morten Linderud <morten@linderud.pw>
Ingo Bürk [Sun, 4 Nov 2018 14:53:15 +0000 (15:53 +0100)]
Merge pull request #3499 from orestisf1993/docs
userguide: break long comment
Michael Stapelberg [Sun, 4 Nov 2018 14:24:10 +0000 (15:24 +0100)]
travis: move (failing) ubuntu build from xenial to bionic
Ubuntu’s apt started refusing to load package files from unauthenticated
repositories, but the package for which we did that (xcb-xrm) is available in
newer versions of Ubuntu, so I just removed that part altogether.
Apparently this has been broken since April, and nobody noticed :-/
Michael Stapelberg [Sun, 4 Nov 2018 14:07:24 +0000 (15:07 +0100)]
update release.sh for the 4.16 release
Michael Stapelberg [Sun, 4 Nov 2018 13:55:50 +0000 (14:55 +0100)]
update debian/changelog
Michael Stapelberg [Sun, 4 Nov 2018 13:47:46 +0000 (14:47 +0100)]
Merge branch 'release-4.16'
Michael Stapelberg [Sun, 4 Nov 2018 13:47:46 +0000 (14:47 +0100)]
Set non-git version to 4.16-non-git.
Michael Stapelberg [Sun, 4 Nov 2018 13:47:34 +0000 (14:47 +0100)]
release i3 4.16
Orestis Floros [Sun, 4 Nov 2018 10:21:52 +0000 (12:21 +0200)]
userguide: break long comment
Orestis [Sat, 3 Nov 2018 12:39:49 +0000 (14:39 +0200)]
Update ewmh focused only when new focus is different (#3496)
Fixes #3495.
Orestis [Sat, 3 Nov 2018 08:42:50 +0000 (10:42 +0200)]
Merge pull request #3497 from stapelberg/clang-format
switch to clang-format-4.0
Michael Stapelberg [Sat, 3 Nov 2018 08:16:16 +0000 (09:16 +0100)]
switch to clang-format-4.0
clang-format-3.8 is old enough to have vanished from Debian testing, which we
use for our CI.
Ingo Bürk [Mon, 29 Oct 2018 13:59:25 +0000 (14:59 +0100)]
Merge pull request #3486 from orestisf1993/regress-move-floating
Fix regression with moving floating windows
Orestis Floros [Mon, 29 Oct 2018 13:46:28 +0000 (15:46 +0200)]
Fix regression with moving floating windows
This fixes a regression introduced in
6d983b5 . Consider 2 outputs:
fake-0: workspace '1'
fake-1: workspaces '2','3'
Workspace 1 focused, workspace 2 visible.
Open a floating window in 1 and move it to 3. Now, the floating window
appears in workspace 2 and disappears once focus is switched to
that workspace.
Instead of focusing 'old_focus' which might refer to a container in a
different output, we should restore focus by focusing the previously
focused workspace of the output.
Ingo Bürk [Fri, 26 Oct 2018 18:46:53 +0000 (20:46 +0200)]
Merge pull request #3483 from soumya92/next
Update badges in README
Soumya [Fri, 26 Oct 2018 16:58:04 +0000 (09:58 -0700)]
Update badges in README
issuestats.com seems to have moved on, using shields.io instead.
Hamish Macdonald [Fri, 26 Oct 2018 13:31:43 +0000 (09:31 -0400)]
Do not assume STDIN_FILENO is available for input from child
Albert Safin [Fri, 26 Oct 2018 08:40:59 +0000 (15:40 +0700)]
Export I3SOCK (#3476)
Ingo Bürk [Fri, 26 Oct 2018 07:49:35 +0000 (09:49 +0200)]
Merge pull request #3465 from soumya92/next
Add "modifiers" to events sent by i3bar
Soumya [Thu, 25 Oct 2018 16:05:17 +0000 (09:05 -0700)]
Add "modifiers" to events sent by i3bar
Orestis [Wed, 24 Oct 2018 19:57:31 +0000 (22:57 +0300)]
Merge pull request #3473 from soumya92/pango-font-alignment
Always center text vertically
Orestis [Tue, 23 Oct 2018 15:41:11 +0000 (18:41 +0300)]
Merge pull request #3475 from Gravemind/fix-i3bar-re-hidden-on-any-modifier
i3bar: Fix i3bar re-hidden by any modifier (#3474)
Ingo Bürk [Tue, 23 Oct 2018 14:41:54 +0000 (16:41 +0200)]
Merge pull request #3452 from orestisf1993/title_align
Add title_align config directive
Ingo Bürk [Tue, 23 Oct 2018 13:45:45 +0000 (15:45 +0200)]
Merge pull request #3451 from orestisf1993/tray
Close & reopen tray selwin when needed
Orestis Floros [Thu, 11 Oct 2018 20:19:21 +0000 (23:19 +0300)]
Close & reopen tray selwin when needed
Fixes #1329
Fixes #3317 (duplicate)
Examples where the tray "disappeared":
- Start without a "tray_output", reload config with "tray_output none",
remove "tray_output none" and reload.
- Start with "tray_output primary" (or "tray_output <output>"), disable
the primary output and then reconnect it.
Fixes #2010
Cached in output_for_tray
Ingo Bürk [Tue, 23 Oct 2018 13:37:12 +0000 (15:37 +0200)]
Merge pull request #3469 from yablonsky/patch-1
Update userguide "Focus Parent": add the default
Ingo Bürk [Tue, 23 Oct 2018 13:31:57 +0000 (15:31 +0200)]
Merge pull request #3448 from orestisf1993/sticky
Fix sticky focus when switching to workspace on different output
Ingo Bürk [Tue, 23 Oct 2018 13:30:11 +0000 (15:30 +0200)]
Merge pull request #3445 from orestisf1993/flaky
Fix flakyness in t/189-floating-constraints.t
Ingo Bürk [Tue, 23 Oct 2018 13:29:48 +0000 (15:29 +0200)]
Merge pull request #3444 from orestisf1993/move
Some move.c fixes
Ingo Bürk [Tue, 23 Oct 2018 13:27:50 +0000 (15:27 +0200)]
Merge pull request #3433 from orestisf1993/janitorial
Janitorial
Gravemind [Tue, 23 Oct 2018 13:15:07 +0000 (15:15 +0200)]
i3bar: Fix i3bar re-hidden by any modifier (#3474)
The bug was introduced in 4.15-next
fe6b3b7474
Soumya [Mon, 22 Oct 2018 18:47:41 +0000 (11:47 -0700)]
Always center text vertically
Andriy Yablonskyy [Sun, 21 Oct 2018 17:42:19 +0000 (13:42 -0400)]
add missing parenthesis
Andriy Yablonskyy [Sun, 21 Oct 2018 17:38:58 +0000 (13:38 -0400)]
Update userguide "Focus Parent": add the default
While reading the UserGuide, I had to refer to the TL;DR image on top to find the default keybind for "Focus Parent" since it's not mentioned in the text.
This pr fixes it.
Ingo Bürk [Sun, 21 Oct 2018 10:28:11 +0000 (12:28 +0200)]
Merge pull request #3467 from orestisf1993/userguide
userguide: Use anchor for list of commands
Orestis Floros [Sun, 21 Oct 2018 10:20:45 +0000 (13:20 +0300)]
userguide: Use anchor for list of commands
Fixes #3464
Michael Stapelberg [Mon, 15 Oct 2018 16:00:43 +0000 (18:00 +0200)]
debian/control: remove dependency on x11-utils (#3455)
This was a introduce in commit
a61e34d2771fffdf2d94ee69d887585087c76b98 in 2009,
and we haven’t used xmessage in any way in a long time.
fixes https://bugs.debian.org/910997
Orestis [Mon, 15 Oct 2018 08:16:20 +0000 (11:16 +0300)]
Merge pull request #3456 from stapelberg/travis
travis: fix mk-build-deps call by providing changelog file
Michael Stapelberg [Mon, 15 Oct 2018 06:40:00 +0000 (08:40 +0200)]
travis: fix mk-build-deps call by providing changelog file
mk-build-deps started using the changelog file to get the version number, but a
bug prevents it from falling back correctly to 1.0 if no changelog is
present. This has been fixed upstream in
https://salsa.debian.org/debian/devscripts/commit/
4b15abd4f0cfe4accbf28f24546891867344a73c ,
but we can just ship the changelog file until that fix lands.