sway-patched-tray-menu-github/sway
Rouven Czerwinski 16ddd00102 commands/move: reintroduce wrongly removed NULL check
Commit d3d7956576 removed this NULL check, which
leads to the following backtrace:

  #0  0x0000557bd201df46 in node_is_view (node=0x0) at ../sway/sway/tree/node.c:41
  #1  0x0000557bd1ff5d4e in seat_get_focus_inactive (seat=0x557bd3fc7580, node=0x0) at ../sway/sway/input/seat.c:968
          current = 0x557bd2033485
  #2  0x0000557bd2009f24 in cmd_move_container (argc=3, argv=0x557bd46b19c0) at ../sway/sway/commands/move.c:557
          new_output_last_focus = 0x0
          error = 0x0
          node = 0x557bd469f360
          workspace = 0x557bd4572ee0
          container = 0x557bd469f360
          no_auto_back_and_forth = false
          seat = 0x557bd3fc7580
          old_parent = 0x0
          old_ws = 0x557bd4572ee0
          old_output = 0x557bd411f740
          destination = 0x557bd46a0cc0
          new_output = 0x557bd411f740
          new_output_last_ws = 0x0
          focus = 0x557bd469f360
          __PRETTY_FUNCTION__ = "cmd_move_container"
          new_workspace = 0x557bd4572ee0
  […]

Reintroduce the NULL check to fix the bug.

Fixes #3746
2019-02-22 00:52:57 -05:00
..
commands commands/move: reintroduce wrongly removed NULL check 2019-02-22 00:52:57 -05:00
config Don't use SOCK_CLOEXEC 2019-02-19 16:34:07 +01:00
desktop Handle NULL from output_get_active_workspace 2019-02-21 21:18:03 +01:00
input Handle NULL from output_get_active_workspace 2019-02-21 21:18:03 +01:00
tree Handle NULL from output_get_active_workspace 2019-02-21 21:18:03 +01:00
commands.c Fix quote stripping 2019-02-05 07:15:25 -05:00
config.c Fix reload freeze when not modsetting current mode 2019-02-16 23:37:36 +01:00
criteria.c Revert "Add some missing frees." 2019-02-01 11:51:03 +00:00
debug-tree.c Replace wlr_log with sway_log 2019-01-21 12:59:42 +01:00
decoration.c Fix double free when unmapping any view 2018-11-15 15:22:09 +10:00
ipc-json.c Handle NULL from output_get_active_workspace 2019-02-21 21:18:03 +01:00
ipc-server.c ipc_has_event_listeners: fix inverted check of subscribed_events 2019-02-06 15:16:48 +01:00
main.c Abort early when XDG_RUNTIME_DIR is not set 2019-02-11 10:11:41 +01:00
meson.build pointer_constraint: change to a seat subcommand 2019-01-31 22:58:52 -05:00
security.c Replace _XOPEN_SOURCE with _POSIX_C_SOURCE 2018-11-25 17:19:43 +01:00
server.c Add wp-primary-selection-unstable-v1 2019-02-20 11:16:05 +01:00
sway-bar.5.scd Updates for scdoc 1.8.1 2019-01-31 08:42:29 -05:00
sway-input.5.scd sway-input.5: document wildcard and identifier troubleshooting 2019-02-16 23:50:37 +01:00
sway-output.5.scd Document cursor moving between adjacent outputs 2019-01-28 21:36:48 -05:00
sway.1.scd Remove unnecessary underscores in man pages 2019-01-27 11:27:48 -05:00
sway.5.scd Use container under cursor for mouse bindings 2019-02-17 20:33:37 -05:00
swaynag.c Replace wlr_log with sway_log 2019-01-21 12:59:42 +01:00
xdg_decoration.c Improve CSD logic 2018-09-27 22:51:37 +10:00