gri3-wm/src
Oliver Graff 252db3b8cf Don't refocus a workspace cleaned up by `workspace_show` during rename
When moving a workspace to the current output by way of a rename, if the
current workspace is empty, it will be removed by `workspace_show`.
Attempting to restore focus to this removed workspace causes a crash.
Follow the pattern in workspace.c:996 to only restore the original focus if the
original workspace still exists.

Add a test to ensure that the renamed workspace moves to its appropriate
output and that a crash does not occur.

Fixes #3228
2018-05-01 11:25:13 +03:00
..
assignments.c run_assignments: check for A_COMMAND early 2018-03-19 03:17:32 +02:00
bindings.c Define ADD_TRANSLATED_KEY once 2018-04-28 12:21:39 +03:00
click.c Prefer compiler warnings to assertions for unhandled switch cases 2018-04-04 19:20:55 +03:00
commands.c Don't refocus a workspace cleaned up by `workspace_show` during rename 2018-05-01 11:25:13 +03:00
commands_parser.c Ensure all *.[ch] files include config.h 2016-10-23 21:09:24 +02:00
con.c Don't call con_fullscreen_permits_focusing with ignore_focus 2018-04-22 16:56:36 +03:00
config.c Remove obsolete macro REQUIRED_OPTION 2018-04-20 13:05:23 +03:00
config_directives.c i3bar: make modifier behave like floating_modifier 2018-04-17 02:00:03 +03:00
config_parser.c migrate_config: scalloc converted config 2017-12-09 20:07:58 +02:00
display_version.c no-op refactoring: make ipc_connect find socket path 2017-11-26 16:41:59 +01:00
ewmh.c Support _NET_WM_STATE_FOCUSED 2018-03-23 14:30:57 +02:00
fake_outputs.c fake_outputs: Allow designating a fake output as primary 2017-09-19 14:57:08 +00:00
floating.c Fix focus order in floating_enable for unfocused windows 2018-03-30 18:29:32 +03:00
handlers.c Fix redundant return statements 2018-04-27 00:09:42 +03:00
ipc.c send_tick: set "first" field (#3271) 2018-04-28 14:47:28 +02:00
key_press.c Ensure all *.[ch] files include config.h 2016-10-23 21:09:24 +02:00
load_layout.c Introduce get_existing_workspace_by_name 2018-03-28 15:18:43 +03:00
log.c Report error during error log creation (#2625) 2017-01-10 09:29:06 +01:00
main.c main.c: remove redundant 'focused' declaration 2018-04-27 01:16:42 +03:00
manage.c Fix redundant return statements 2018-04-27 00:09:42 +03:00
match.c Implement 'swap' command. 2017-05-15 21:06:38 +02:00
move.c Fix focus order in floating_disable for unfocused windows 2018-03-30 18:20:40 +03:00
output.c _con_move_to_con: don't change focus when moving to active workspace 2018-03-28 15:10:11 +03:00
randr.c Introduce get_existing_workspace_by_name 2018-03-28 15:18:43 +03:00
regex.c Fix memleak: free regex when parsing fails 2017-08-28 09:22:56 +02:00
render.c Replace http:// with https:// where applicable 2017-09-24 10:19:07 +02:00
resize.c Improve resize_find_tiling_participants() and simplify cmd_resize_tiling_width_height() (#3111) 2018-01-06 17:59:27 +01:00
restore_layout.c Move XCB event handling into xcb_prepare_cb. 2017-10-23 21:06:13 +02:00
scratchpad.c Make "scratchpad show" return correct info 2018-04-20 22:30:41 +08:00
sd-daemon.c Always use socket activation 2016-06-11 14:47:23 +02:00
sighandler.c Replace http:// with https:// where applicable 2017-09-24 10:19:07 +02:00
startup.c Fix redundant casts to the same type 2018-04-27 00:09:42 +03:00
sync.c move i3 sync code into sync_respond (for following commits) 2018-03-30 21:05:32 +02:00
tree.c Prefer fullscreen floating containers when on directional focus 2018-03-25 14:47:45 +03:00
util.c Fix compilation warnings on all Debian architectures. (#3007) 2017-09-30 10:16:21 -07:00
version.c Ensure all *.[ch] files include config.h 2016-10-23 21:09:24 +02:00
window.c Replace http:// with https:// where applicable 2017-09-24 10:19:07 +02:00
workspace.c Workspace renaming: Interpret outputs as nondirectional 2018-04-04 13:37:59 -04:00
x.c Support _NET_WM_STATE_FOCUSED 2018-03-23 14:30:57 +02:00
xcb.c add error check and log for xcb_create_window 2017-05-12 09:01:37 +02:00
xcursor.c Ensure all *.[ch] files include config.h 2016-10-23 21:09:24 +02:00
xinerama.c Store output names as a linked list 2017-09-13 08:23:24 +00:00