]> git.sur5r.net Git - i3/i3/log
i3/i3
6 years agoMerge pull request #3231 from orestisf1993/target-is-a-workspace
Ingo Bürk [Sat, 7 Apr 2018 19:13:41 +0000 (21:13 +0200)]
Merge pull request #3231 from orestisf1993/target-is-a-workspace

Fix crash when moving container to marked workspace

6 years agoFix crash when moving container to marked workspace 3231/head
Orestis Floros [Sat, 7 Apr 2018 18:43:29 +0000 (21:43 +0300)]
Fix crash when moving container to marked workspace

Was a small typo.

This also has the (positive) side-effect of allowing to move all the
content of a marked workspace next to the target container, see added
tests.

6 years agoMerge pull request #3223 from orestisf1993/minor
Ingo Bürk [Thu, 5 Apr 2018 08:59:34 +0000 (10:59 +0200)]
Merge pull request #3223 from orestisf1993/minor

Minor changes

6 years agoMerge pull request #3221 from ograff/issue-3208
Orestis [Thu, 5 Apr 2018 08:32:38 +0000 (11:32 +0300)]
Merge pull request #3221 from ograff/issue-3208

Issue #3208

6 years agoWorkspace renaming: Interpret outputs as nondirectional 3221/head
Oliver Graff [Sat, 31 Mar 2018 19:56:59 +0000 (15:56 -0400)]
Workspace renaming: Interpret outputs as nondirectional

Currently when renaming outputs, an output assignment of "left" will
cause the workspace to move left. Treat this assignment as a proper name
instead (even though it is unlikely an output will be named "left").

Move logic for determining output to move to out of
`workspace_move_to_output`

Add test for ignoring direcionality during rename.

Fixes #3208.

6 years agoPrefer compiler warnings to assertions for unhandled switch cases 3223/head
Orestis Floros [Wed, 4 Apr 2018 15:12:44 +0000 (18:12 +0300)]
Prefer compiler warnings to assertions for unhandled switch cases

Using 'default:' cases can hide logical errors which would lead to i3
crashes for users. With this change the compiler will print a warning
when a case is not handled. For example, if I add a new value in the
Font.type enum:
../../i3/libi3/font.c: In function ‘draw_text’:
../../i3/libi3/font.c:378:5: warning: enumeration value ‘NEWFONT’ not handled in switch [-Wswitch]
     switch (savedFont->type) {
     ^~~~~~

6 years agoA__NET_REQUEST_FRAME_EXTENTS: use render_font_height()
Orestis Floros [Wed, 4 Apr 2018 15:09:34 +0000 (18:09 +0300)]
A__NET_REQUEST_FRAME_EXTENTS: use render_font_height()

6 years agoMerge pull request #3215 from orestisf1993/focus-next-prev
Ingo Bürk [Tue, 3 Apr 2018 18:42:00 +0000 (20:42 +0200)]
Merge pull request #3215 from orestisf1993/focus-next-prev

Small window decoration scrolling bugfix

6 years agoUse con_orientation instead of ternary operator 3215/head
Orestis Floros [Sat, 31 Mar 2018 23:11:29 +0000 (02:11 +0300)]
Use con_orientation instead of ternary operator

6 years agoWindow decoration scrolling: don't focus sibling
Orestis Floros [Sat, 31 Mar 2018 23:02:50 +0000 (02:02 +0300)]
Window decoration scrolling: don't focus sibling

The current behaviour is buggy in the following layout:
T [ A* V [ B C ] ], where the focus stack in V is B > C.
When the user scrolls down, focus correctly moves to B but if the user
scrolls down again the whole vertical container is focused.

This happens because 'bool scroll_next_possible' is false but
con_activate is called on the tabbed container's sibling - the vertical
container.

6 years agoMerge pull request #2941 from orestisf1993/issue-2938
Ingo Bürk [Sat, 31 Mar 2018 18:34:17 +0000 (20:34 +0200)]
Merge pull request #2941 from orestisf1993/issue-2938

Fix focus order in floating_disable & floating_enable for unfocused windows

6 years agoMerge pull request #3214 from stapelberg/sync
Ingo Bürk [Fri, 30 Mar 2018 19:33:03 +0000 (21:33 +0200)]
Merge pull request #3214 from stapelberg/sync

unflake t/525-i3bar-mouse-bindings.t

6 years agot/525-i3bar-mouse-bindings.t: sync with i3 _and_ i3bar 3214/head
Michael Stapelberg [Fri, 30 Mar 2018 19:08:35 +0000 (21:08 +0200)]
t/525-i3bar-mouse-bindings.t: sync with i3 _and_ i3bar

See the comment in the code for rationale.

6 years agoi3bar: forward the sync request via IPC, not X11
Michael Stapelberg [Fri, 30 Mar 2018 19:07:48 +0000 (21:07 +0200)]
i3bar: forward the sync request via IPC, not X11

i3bar’s X11 output is not what our testcases are testing — the state
manipulations which i3bar triggers via IPC messages to i3 are what we are
interested in.

6 years agointroduce the sync IPC command
Michael Stapelberg [Fri, 30 Mar 2018 19:06:18 +0000 (21:06 +0200)]
introduce the sync IPC command

Sending the sync command via IPC ensures pending IPC messages are handled by i3
before the sync response is read. This is rarely useful for direct IPC
connections to i3, but becomes useful when synchronizing with i3bar, which might
have pending IPC messages in response to button clicks.

6 years agomove i3 sync code into sync_respond (for following commits)
Michael Stapelberg [Fri, 30 Mar 2018 19:05:32 +0000 (21:05 +0200)]
move i3 sync code into sync_respond (for following commits)

6 years agoRemove special handling of floating containers in con_next_focused 2941/head
Orestis Floros [Mon, 25 Sep 2017 11:00:43 +0000 (14:00 +0300)]
Remove special handling of floating containers in con_next_focused

Explanation for the changed test:
After $third is switched to floating, the test moves focus to $second.
So, the parent of $second (the stacked container) is above $third in the
focus stack and it's children ($first, $second) should get focused
before $second. When $second is switched to floating the correct focus
order for the workspace should be $second->parent (floating con is the
parent) > $first->parent (stacked con) > $third.

Fixes #1975

6 years agoAdd testcases for toggling floating windows from different workspaces
Orestis Floros [Thu, 14 Sep 2017 23:29:08 +0000 (02:29 +0300)]
Add testcases for toggling floating windows from different workspaces

6 years agoFix focus order in floating_enable for unfocused windows
Orestis Floros [Thu, 14 Sep 2017 10:00:14 +0000 (13:00 +0300)]
Fix focus order in floating_enable for unfocused windows

Partially fixes issue #2938

6 years agoFix focus order in floating_disable for unfocused windows
Orestis Floros [Wed, 13 Sep 2017 00:54:40 +0000 (03:54 +0300)]
Fix focus order in floating_disable for unfocused windows

Partially fixes issue #2938

6 years agoUse con_detach instead of TAILQ_REMOVE in floating
Orestis Floros [Thu, 14 Sep 2017 09:16:19 +0000 (12:16 +0300)]
Use con_detach instead of TAILQ_REMOVE in floating

6 years agoAdd --modifier flag to i3-config-wizard (#3210)
Joona [Fri, 30 Mar 2018 10:57:41 +0000 (03:57 -0700)]
Add --modifier flag to i3-config-wizard (#3210)

Add --modifier flag to i3-config-wizard

The --modifier flag accepts either alt or win, and will generate the
configuration file without opening a window.

Also adds i3-config-wizard's flags to the manpage.

Fixes #3136.

6 years agoMerge pull request #3213 from orestisf1993/issue-2535
Ingo Bürk [Fri, 30 Mar 2018 10:48:12 +0000 (12:48 +0200)]
Merge pull request #3213 from orestisf1993/issue-2535

Fix memory leak when _XKB_RULES_NAMES can't be found

6 years agoFix memory leak when _XKB_RULES_NAMES can't be found 3213/head
Orestis Floros [Thu, 29 Mar 2018 14:42:58 +0000 (17:42 +0300)]
Fix memory leak when _XKB_RULES_NAMES can't be found

Steps to reproduce:

1. Force the branch to be taken:

diff --git a/src/bindings.c b/src/bindings.c
index fe77bc8f..caa5848c 100644
--- a/src/bindings.c
+++ b/src/bindings.c
@@ -941,7 +941,7 @@ bool load_keymap(void) {

     struct xkb_keymap *new_keymap = NULL;
     int32_t device_id;
-    if (xkb_supported && (device_id = xkb_x11_get_core_keyboard_device_id(conn)) > -1) {
+    if (0) {
         if ((new_keymap = xkb_x11_keymap_new_from_device(xkb_context, conn, device_id, 0)) == NULL) {
             ELOG("xkb_x11_keymap_new_from_device failed\n");
             return false;

2. Run `python2 ./xproperty.py _XKB_RULES_NAMES ''` (from
https://github.com/siemer/xproperty) in the xinitrc
3. Memory sanitizers detect memory leaks.

Note: We don't (and didn't) pass NULL in xkb_keymap_new_from_names() but
an xkb_rule_names structures with NULL fields (fill_rmlvo_from_root only
fills its argument when there are no errors) should be equivalent:
https://github.com/xkbcommon/libxkbcommon/blob/767fa86d42a5e25e7043622d189247e02a5ca379/NEWS#L349-L351
> The function xkb_keymap_new_from_names() now accepts a NULL value for
the 'names' parameter, instead of failing. This is equivalent to passing
a 'struct xkb_rule_names' with all fields set to NULL.

Fixes #2535.

6 years agoMerge pull request #3200 from orestisf1993/_con_move_to_con
Ingo Bürk [Thu, 29 Mar 2018 10:06:29 +0000 (12:06 +0200)]
Merge pull request #3200 from orestisf1993/_con_move_to_con

_con_move_to_con: don't change focus when moving to active workspace

6 years agoMerge pull request #3207 from orestisf1993/get_workspace_by_
Ingo Bürk [Thu, 29 Mar 2018 10:06:05 +0000 (12:06 +0200)]
Merge pull request #3207 from orestisf1993/get_workspace_by_

Introduce get_workspace_by_* functions

6 years agoMerge pull request #3192 from Exagone313/next
Orestis [Thu, 29 Mar 2018 09:16:12 +0000 (12:16 +0300)]
Merge pull request #3192 from Exagone313/next

translate_keysyms: fix potential memory leak

6 years agoIntroduce get_existing_workspace_by_num 3207/head
Orestis Floros [Tue, 27 Mar 2018 19:36:51 +0000 (22:36 +0300)]
Introduce get_existing_workspace_by_num

6 years agoIntroduce get_existing_workspace_by_name
Orestis Floros [Tue, 27 Mar 2018 19:18:17 +0000 (22:18 +0300)]
Introduce get_existing_workspace_by_name

6 years ago_con_move_to_con: don't change focus when moving to active workspace 3200/head
Orestis Floros [Sun, 25 Mar 2018 01:45:19 +0000 (04:45 +0300)]
_con_move_to_con: don't change focus when moving to active workspace

Seems to be the intention, indicated by this comment (con.c:1307-1309):
    /* For split containers, we use the currently focused container within it.
     * This allows setting marks on, e.g., tabbed containers which will move
     * con to a new tab behind the focused tab. */

Related to #3085.

6 years agoFix potential memory leak 3192/head
Elouan Martinet [Tue, 20 Mar 2018 13:06:17 +0000 (13:06 +0000)]
Fix potential memory leak

xkb_state_new uses calloc and may fail in a rare case, which would cause a memory leak.
Note that xkb_state_unref checks if the parameter given is not null (!state) before freeing.
Calls to xkb_state_new have been grouped to remove code duplication.

Signed-off-by: Elouan Martinet <exa@elou.world>
6 years agoMerge pull request #3205 from orestisf1993/free
Ingo Bürk [Tue, 27 Mar 2018 07:02:28 +0000 (09:02 +0200)]
Merge pull request #3205 from orestisf1993/free

cmd_append_layout: resolve_tilde already allocates memory

6 years agocmd_append_layout: resolve_tilde already allocates memory 3205/head
Orestis Floros [Tue, 27 Mar 2018 00:36:54 +0000 (03:36 +0300)]
cmd_append_layout: resolve_tilde already allocates memory

Fixes a small memory leak with all append_layout commands.

6 years agoMerge pull request #3204 from orestisf1993/focus_next
Ingo Bürk [Mon, 26 Mar 2018 19:35:12 +0000 (21:35 +0200)]
Merge pull request #3204 from orestisf1993/focus_next

_con_move_to_con: focus_next isn't always con_next_focused(con)

6 years agoxcb_drag_prepare_cb: drain events (#3193)
Orestis [Mon, 26 Mar 2018 15:59:34 +0000 (18:59 +0300)]
xcb_drag_prepare_cb: drain events (#3193)

As discussed in PR #3085, X11 events can appear while
dragloop->callback() is running.

Co-authored-by: Michael Stapelberg <michael@stapelberg.de>
6 years ago_con_move_to_con: focus_next isn't always con_next_focused(con) 3204/head
Orestis Floros [Sun, 25 Mar 2018 19:29:00 +0000 (22:29 +0300)]
_con_move_to_con: focus_next isn't always con_next_focused(con)

con_next_focused uses con's parent. But since con can be inside an
unfocused container this means that one of it's siblings could become
focused in the current workspace.

6 years agoMerge pull request #3203 from orestisf1993/free
Ingo Bürk [Sun, 25 Mar 2018 18:12:16 +0000 (20:12 +0200)]
Merge pull request #3203 from orestisf1993/free

memory leaks

6 years agocon_toggle_layout: free(tm_dup) outside loop 3203/head
Orestis Floros [Sun, 25 Mar 2018 17:48:20 +0000 (20:48 +0300)]
con_toggle_layout: free(tm_dup) outside loop

6 years agoFree A_TO_WORKSPACE_NUMBER assignments
Orestis Floros [Sun, 25 Mar 2018 17:35:53 +0000 (20:35 +0300)]
Free A_TO_WORKSPACE_NUMBER assignments

6 years agocfg_workspace: memleak on duplicate workspace assignment
Orestis Floros [Sun, 25 Mar 2018 17:23:46 +0000 (20:23 +0300)]
cfg_workspace: memleak on duplicate workspace assignment

assignment->output is set but lost since TAILQ_INSERT_TAIL is never
called when duplicate is set.
This essentially happens on every reload.

6 years agostartup.c: free timer
Orestis Floros [Sun, 25 Mar 2018 17:04:31 +0000 (20:04 +0300)]
startup.c: free timer

Small memleak. The timer is not called used again since ev_timer_init is
called with repeat = 0.

6 years agoMerge pull request #3202 from orestisf1993/issue-3201
Ingo Bürk [Sun, 25 Mar 2018 12:31:39 +0000 (14:31 +0200)]
Merge pull request #3202 from orestisf1993/issue-3201

Prefer fullscreen floating containers when on directional focus

6 years agoPrefer fullscreen floating containers when on directional focus 3202/head
Orestis Floros [Sun, 25 Mar 2018 11:25:20 +0000 (14:25 +0300)]
Prefer fullscreen floating containers when on directional focus

Fixes #3201

6 years agoMerge pull request #3196 from orestisf1993/_con_move_to_con
Ingo Bürk [Sat, 24 Mar 2018 17:49:26 +0000 (18:49 +0100)]
Merge pull request #3196 from orestisf1993/_con_move_to_con

_con_move_to_con cleanup

6 years agoMerge pull request #3199 from orestisf1993/workspace_show
Ingo Bürk [Sat, 24 Mar 2018 17:39:37 +0000 (18:39 +0100)]
Merge pull request #3199 from orestisf1993/workspace_show

workspace_show: remove redundant if

6 years agocon_activate -> con_focus when it is used as a building block 3196/head
Orestis Floros [Fri, 23 Mar 2018 11:27:05 +0000 (13:27 +0200)]
con_activate -> con_focus when it is used as a building block

6 years ago_con_move_to_con: remove outdated comment
Orestis Floros [Fri, 23 Mar 2018 11:00:36 +0000 (13:00 +0200)]
_con_move_to_con: remove outdated comment

6 years ago_con_move_to_con: showing target_ws is useless
Orestis Floros [Fri, 23 Mar 2018 10:56:30 +0000 (12:56 +0200)]
_con_move_to_con: showing target_ws is useless

The current_ws is shown latter anyway:
    if (!ignore_focus) {
        workspace_show(current_ws);
        ...

This also causes the following bug:
- Open a window in an empty workspace
- Switch to another workspace
- seturgent to the first window
- Move another window to the first workspace
- Urgent flag is now reset

6 years agoworkspace_show: remove redundant if 3199/head
Orestis Floros [Sat, 24 Mar 2018 13:14:20 +0000 (15:14 +0200)]
workspace_show: remove redundant if

6 years agoMerge pull request #3198 from orestisf1993/_workspace_show
Ingo Bürk [Sat, 24 Mar 2018 12:47:59 +0000 (13:47 +0100)]
Merge pull request #3198 from orestisf1993/_workspace_show

_workspace_show -> workspace_show

6 years ago_workspace_show -> workspace_show 3198/head
Orestis Floros [Sat, 24 Mar 2018 12:26:11 +0000 (14:26 +0200)]
_workspace_show -> workspace_show

a9b57a44a9d328d5153158445bc6a5c7b78420b0 removed the extra parameter of
workspace_show.

6 years agoMerge pull request #3184 from orestisf1993/issue-1341
Ingo Bürk [Fri, 23 Mar 2018 18:17:12 +0000 (19:17 +0100)]
Merge pull request #3184 from orestisf1993/issue-1341

floating_enable & floating_maybe_reassign_ws changes

6 years agofloating_maybe_reassign_ws: use get_output_from_rect 3184/head
Orestis Floros [Sat, 17 Mar 2018 18:43:11 +0000 (20:43 +0200)]
floating_maybe_reassign_ws: use get_output_from_rect

This significantly reduces the number of ELOGs while dragging floating
containers. The behaviour is improved since floating containers in the
edge of the screen will still get reassigned to their closest workspace.

For example, consider this setup:
fake-outputs 500x500+0+0,500x500+500+0

Now, open a window in the right output and run:
i3-msg floating enable, move position 0 px 450 px
The window is on the bottom edge of the left workspace but if you run:
i3-msg focus mode_toggle
focus will go to the right workspace since floating_maybe_reassign_ws
didn't change the assigned workspace of the floating container.

6 years agofloating_enable: change reassign logic
Orestis Floros [Sat, 17 Mar 2018 15:47:16 +0000 (17:47 +0200)]
floating_enable: change reassign logic

This allows the floating container's top left corner to be mapped
outside any output as long as they are contained partially by one. This,
for example, will allow:
mpv --geometry +1+1 video.mp4

For windows mapped to (0, 0) see comment in floating.c:270-273:
/* Some clients (like GIMP’s color picker window) get mapped
 * to (0, 0), so we push them to a reasonable position
 * (centered over their leader) */

 The floating_reassign_ws call is removed since we try to place the new
 floating container in the current output:
 /* Sanity check: Are the coordinates on the appropriate output? If not, we
  * need to change them */

Fixes #1341

6 years agoIntroduce get_output_from_rect
Orestis Floros [Sat, 17 Mar 2018 18:42:54 +0000 (20:42 +0200)]
Introduce get_output_from_rect

6 years agocontained_by_output: return output and rename to output_containing_rect
Orestis Floros [Sat, 17 Mar 2018 15:42:49 +0000 (17:42 +0200)]
contained_by_output: return output and rename to output_containing_rect

6 years agoMerge pull request #3195 from orestisf1993/issue-2993
Ingo Bürk [Fri, 23 Mar 2018 13:52:48 +0000 (14:52 +0100)]
Merge pull request #3195 from orestisf1993/issue-2993

Improve directional moving of fullscreen containers

6 years agoMerge pull request #3178 from orestisf1993/pr-2314
Ingo Bürk [Fri, 23 Mar 2018 13:50:46 +0000 (14:50 +0100)]
Merge pull request #3178 from orestisf1993/pr-2314

Support _NET_WM_STATE_FOCUSED

6 years agoImprove directional moving of fullscreen containers 3195/head
Orestis Floros [Fri, 23 Mar 2018 13:46:40 +0000 (15:46 +0200)]
Improve directional moving of fullscreen containers

Fixes #2993.

6 years agoSupport _NET_WM_STATE_FOCUSED 3178/head
Tony Crisci [Mon, 25 Jul 2016 00:43:56 +0000 (20:43 -0400)]
Support _NET_WM_STATE_FOCUSED

_NET_WM_STATE_FOCUSED is set on _NET_WM_STATE to indicate that the
window is focused. It must be set when the window is newly focused and
removed once the window no longer has focus.

> _NET_WM_STATE_FOCUSED indicates whether the window's decorations are
> drawn in an active state. Clients MUST regard it as a read-only hint.
> It cannot be set at map time or changed via a _NET_WM_STATE client
> message.

For example, this is used by GTK applications to show the decoration in
an active or inactive state. This change can be tested by opening a GTK
application (like evince), focusing the window and unfocusing the
window, and observing a change in the window decorations.

Fixes #2273

6 years agoMerge pull request #3185 from orestisf1993/cmd_move_window_to_position
Ingo Bürk [Wed, 21 Mar 2018 07:38:41 +0000 (08:38 +0100)]
Merge pull request #3185 from orestisf1993/cmd_move_window_to_position

Remove 'method' from cmd_move_window_to_position

6 years agocmd_move_window_to_position: improve error message 3185/head
Orestis Floros [Sun, 18 Mar 2018 00:41:12 +0000 (02:41 +0200)]
cmd_move_window_to_position: improve error message

6 years agoRemove 'method' from cmd_move_window_to_position
Orestis Floros [Sun, 18 Mar 2018 00:08:16 +0000 (02:08 +0200)]
Remove 'method' from cmd_move_window_to_position

For command:
move window to [absolute] position X px Y px
if the optional keyword 'absolute' is provided the end result is the
same even though it is implemented differently. Only difference is that
with absolute the floating window can move completely outside of any
output.

This commit removes the 'method' argument and only keeps the sane
implementation.

6 years agoMerge pull request #3191 from orestisf1993/userguide
Ingo Bürk [Tue, 20 Mar 2018 07:39:23 +0000 (08:39 +0100)]
Merge pull request #3191 from orestisf1993/userguide

Fix userguide link

6 years agoFix userguide link 3191/head
Orestis Floros [Mon, 19 Mar 2018 16:30:22 +0000 (18:30 +0200)]
Fix userguide link

[[move_to_outputs]] doesn't work currently:
https://i3wm.org/docs/userguide.html#move_to_outputs
This does:
https://i3wm.org/docs/userguide.html#_moving_containers_workspaces_to_randr_outputs

This combines a 'BlockId Element' with an 'anchor'. Both should work
now.

6 years agoMerge pull request #3189 from orestisf1993/run_assignments
Ingo Bürk [Mon, 19 Mar 2018 13:32:54 +0000 (14:32 +0100)]
Merge pull request #3189 from orestisf1993/run_assignments

run_assignments: check for A_COMMAND early

6 years agoMerge pull request #3188 from orestisf1993/free_ran_assignments
Ingo Bürk [Mon, 19 Mar 2018 06:04:45 +0000 (07:04 +0100)]
Merge pull request #3188 from orestisf1993/free_ran_assignments

Free ran_assignments

6 years agoMerge pull request #3187 from orestisf1993/assign-memleak
Ingo Bürk [Mon, 19 Mar 2018 06:03:47 +0000 (07:03 +0100)]
Merge pull request #3187 from orestisf1993/assign-memleak

Fix memleak: FREE(assign->dest.output)

6 years agorun_assignments: check for A_COMMAND early 3189/head
Orestis Floros [Mon, 19 Mar 2018 01:17:32 +0000 (03:17 +0200)]
run_assignments: check for A_COMMAND early

6 years agoFree ran_assignments 3188/head
Orestis Floros [Mon, 19 Mar 2018 01:00:35 +0000 (03:00 +0200)]
Free ran_assignments

When we run 'reload' all the assignments are freed:
https://github.com/i3/i3/blob/e3e09119bf994ea3f5222441832952a8dd352941/src/config.c#L99-L109

Assignments are saved to each window after they are executed:
https://github.com/i3/i3/blob/e3e09119bf994ea3f5222441832952a8dd352941/src/assignments.c#L41-L46

This means that the pointers stored in window->ran_assignments are
invalid (shouldn't be dangerous currently but could lead to a segfault
if the code is modified) after a 'reload'.

6 years agoFix memleak: FREE(assign->dest.output) 3187/head
Orestis Floros [Mon, 19 Mar 2018 00:02:59 +0000 (02:02 +0200)]
Fix memleak: FREE(assign->dest.output)

6 years agoMerge pull request #3186 from orestisf1993/i3-msg
Ingo Bürk [Sun, 18 Mar 2018 06:51:50 +0000 (07:51 +0100)]
Merge pull request #3186 from orestisf1993/i3-msg

i3-msg: only print input + errorposition if they exist

6 years agoi3-msg: only print input + errorposition if they exist 3186/head
Orestis Floros [Sun, 18 Mar 2018 01:38:06 +0000 (03:38 +0200)]
i3-msg: only print input + errorposition if they exist

Before:
$ i3-msg floating disable, move window to position 100 px 100 px
ERROR: Your command: (null)
ERROR:               (null)
ERROR: Cannot change position of a window/container because it is not floating.
[{"success":true},{"success":false,"error":"Cannot change position of a window/container because it is not floating."}]

After:
$ i3-msg floating disable, move window to position 100 px 100 px
ERROR: Cannot change position of a window/container because it is not floating.
[{"success":true},{"success":false,"error":"Cannot change position of a window/container because it is not floating."}]

6 years agotestcases: remove assumption from state atoms test
Tony Crisci [Mon, 25 Jul 2016 00:43:09 +0000 (20:43 -0400)]
testcases: remove assumption from state atoms test

Remove the assumption that only two atoms can possibly be set in
t/253-multiple-net-wm-state-atoms.t so that the tests will pass when
more atoms are supported that may be set during this test.

6 years agoMerge pull request #3180 from chrisduerr/next
Ingo Bürk [Sat, 17 Mar 2018 06:31:48 +0000 (07:31 +0100)]
Merge pull request #3180 from chrisduerr/next

Add alacritty to `i3-sensible-terminal`

6 years agoAdd alacritty to i3-sensible-terminal 3180/head
Christian Duerr [Fri, 16 Mar 2018 21:53:39 +0000 (22:53 +0100)]
Add alacritty to i3-sensible-terminal

6 years agoMerge pull request #2975 from orestisf1993/move-con_focus
Michael Stapelberg [Fri, 16 Mar 2018 08:31:53 +0000 (09:31 +0100)]
Merge pull request #2975 from orestisf1993/move-con_focus

Fix move's focus bugs

6 years agoMerge pull request #3177 from orestisf1993/trailing
Ingo Bürk [Thu, 15 Mar 2018 19:41:47 +0000 (20:41 +0100)]
Merge pull request #3177 from orestisf1993/trailing

Remove trailing whitespace from Perl scripts

6 years agoRemove trailing whitespace from Perl scripts 3177/head
Orestis Floros [Thu, 15 Mar 2018 19:33:45 +0000 (21:33 +0200)]
Remove trailing whitespace from Perl scripts

6 years agoDon't call con_focus in tree_move 2975/head
Orestis Floros [Fri, 22 Sep 2017 01:48:32 +0000 (04:48 +0300)]
Don't call con_focus in tree_move

Fixes:
- Issue where moving an urgent (unfocused) window resets it's urgency
hint.
- Moving an unfocused container to a new parent should not move it to
the top of the focus stack.

6 years agoCorrect insert_con_into's focus handling
Orestis Floros [Sat, 23 Sep 2017 16:23:49 +0000 (19:23 +0300)]
Correct insert_con_into's focus handling

Change from always putting con on the head of the new parent. Important
for moving unfocused containers.

6 years agoMerge pull request #3176 from orestisf1993/dump-asy-marks
Ingo Bürk [Wed, 14 Mar 2018 13:24:00 +0000 (14:24 +0100)]
Merge pull request #3176 from orestisf1993/dump-asy-marks

dump-asy.pl: Add marks

6 years agoMerge pull request #3175 from orestisf1993/dump-asy
Ingo Bürk [Wed, 14 Mar 2018 13:23:39 +0000 (14:23 +0100)]
Merge pull request #3175 from orestisf1993/dump-asy

dump-asy.pl: Add options

6 years agodump-asy.pl: Add marks 3176/head
Orestis Floros [Wed, 14 Mar 2018 12:59:26 +0000 (14:59 +0200)]
dump-asy.pl: Add marks

6 years agodump-asy.pl: Add --save option 3175/head
Orestis Floros [Wed, 14 Mar 2018 12:43:12 +0000 (14:43 +0200)]
dump-asy.pl: Add --save option

6 years agodump-asy.pl: Add --gv option
Orestis Floros [Wed, 14 Mar 2018 10:18:58 +0000 (12:18 +0200)]
dump-asy.pl: Add --gv option

6 years agodump-asy.pl: Add POD usage
Orestis Floros [Wed, 14 Mar 2018 10:11:53 +0000 (12:11 +0200)]
dump-asy.pl: Add POD usage

6 years agoMerge pull request #3172 from klorax/patch-1
Ingo Bürk [Sun, 11 Mar 2018 18:54:39 +0000 (19:54 +0100)]
Merge pull request #3172 from klorax/patch-1

Docs [#3164]: Clarification about X resource value

6 years agoDocs [#3164]: Clarification about X resource value 3172/head
Klorax [Sun, 11 Mar 2018 17:04:32 +0000 (18:04 +0100)]
Docs [#3164]: Clarification about X resource value

Clarification about X resource value: they are loaded verbatim and must therefore be in the format that i3 uses.
Solves #3164.

6 years agoMerge pull request #3167 from hwangcc23/fix-3163
Ingo Bürk [Sun, 11 Mar 2018 15:33:10 +0000 (16:33 +0100)]
Merge pull request #3167 from hwangcc23/fix-3163

Add strip_workspace_name

6 years agoAdd strip_workspace_name 3167/head
hwangcc23 [Sat, 10 Mar 2018 04:49:09 +0000 (12:49 +0800)]
Add strip_workspace_name

See the issue #3163 (https://github.com/i3/i3/issues/3163).

Add strip_workspace_name to strip off the workspace name.

6 years agoRefocus focused window for FOCUS_IN events on the root window. (#3097)
Ingo Bürk [Sat, 10 Mar 2018 18:18:44 +0000 (19:18 +0100)]
Refocus focused window for FOCUS_IN events on the root window. (#3097)

This deals with (admittedly somewhat misbehaving) clients which
use XSetInputFocus to take focus, but then don't properly restore
focus. This has been observed with TK apps, but also, e.g., Steam.

fixes #2722
fixes #3096

6 years agoMerge pull request #3166 from Hritik14/next
Ingo Bürk [Sat, 10 Mar 2018 18:11:55 +0000 (19:11 +0100)]
Merge pull request #3166 from Hritik14/next

Fixed typo

6 years agoMerge pull request #3168 from stapelberg/release-fixes
Ingo Bürk [Sat, 10 Mar 2018 18:08:19 +0000 (19:08 +0100)]
Merge pull request #3168 from stapelberg/release-fixes

Release fixes

6 years agoupdate release.sh after release 3168/head
Michael Stapelberg [Sat, 10 Mar 2018 17:53:20 +0000 (18:53 +0100)]
update release.sh after release

6 years agorelease: new-enough dput no longer needs an explicit file name
Michael Stapelberg [Sat, 10 Mar 2018 17:53:04 +0000 (18:53 +0100)]
release: new-enough dput no longer needs an explicit file name

6 years agorelease: also build a Debian source-only upload
Michael Stapelberg [Sat, 10 Mar 2018 17:52:50 +0000 (18:52 +0100)]
release: also build a Debian source-only upload

6 years agorelease: disable git’s rename protection (prevented merging)
Michael Stapelberg [Sat, 10 Mar 2018 17:52:27 +0000 (18:52 +0100)]
release: disable git’s rename protection (prevented merging)

6 years agodebian: update changelog
Michael Stapelberg [Sat, 10 Mar 2018 17:35:11 +0000 (18:35 +0100)]
debian: update changelog

6 years agoMerge branch 'release-4.15'
Michael Stapelberg [Sat, 10 Mar 2018 17:29:21 +0000 (18:29 +0100)]
Merge branch 'release-4.15'