sway-patched-tray-menu/sway
Brian Ashworth 69a1a0ff99 Fix scratchpad fullscreen behavior and crash
When setting fullscreen on a hidden scratchpad container, there was a
check to see if there was an existing fullscreen container on the
workspace so it could be fullscreen disabled first. Since the workspace
is NULL, it would cause a SIGSEGV. This adds a NULL check to avoid the
crash.

This also changes the behavior of how fullscreen is handled when adding
a container to the scratchpad or changing visibility of a scratchpad
container to match i3's. The behavior is as follows:
- When adding a container to the scratchpad or hiding a container back
  into the scratchpad, there is an implicit fullscreen disable
- When setting fullscreen on a container that is hidden in the
  scratchpad, it will be fullscreen when shown (and fullscreen disabled
  when hidden as stated above)
- When setting fullscreen global on a container that is hidden in the
  scratchpad, it will be shown immediately as fullscreen global. The
  container is not moved to a workspace and remains in the
  scratchpad. The container will be visible until fullscreen disabled
  or killed. Since the container is in the scratchpad, running
  `scratchpad show` or `move container to scratchpad` will have no
  effect

This also changes `container_replace` to transfer fullscreen and
scratchpad status.
2019-04-13 08:48:37 -06:00
..
commands Fix scratchpad fullscreen behavior and crash 2019-04-13 08:48:37 -06:00
config config/output: unbreak on 32-bit architectures 2019-04-08 14:02:52 -06:00
desktop Fix scratchpad fullscreen behavior and crash 2019-04-13 08:48:37 -06:00
input Fix scratchpad fullscreen behavior and crash 2019-04-13 08:48:37 -06:00
tree Fix scratchpad fullscreen behavior and crash 2019-04-13 08:48:37 -06:00
commands.c Implement inhibit_idle command 2019-03-24 19:26:12 -06:00
config.c swaybg: one instance for all outputs 2019-04-04 20:08:21 +03:00
criteria.c criteria: fix __focused__ when no focus or unset 2019-03-23 09:53:23 +02:00
decoration.c Fix double free when unmapping any view 2018-11-15 15:22:09 +10:00
ipc-json.c Support WLR_INPUT_DEVICE_SWITCH in sway 2019-03-19 23:58:47 -04:00
ipc-server.c Add support for manually setting subpixel hinting on outputs. 2019-03-24 09:37:24 +02:00
main.c Remove debug tree 2019-03-18 11:29:19 -04:00
meson.build Implement inhibit_idle command 2019-03-24 19:26:12 -06:00
security.c Replace _XOPEN_SOURCE with _POSIX_C_SOURCE 2018-11-25 17:19:43 +01:00
server.c Set DISPLAY after initializing Xwayland 2019-03-04 21:16:00 +01:00
sway-bar.5.scd swaybar: add overlay mode (fix #1620) 2019-02-24 20:05:47 -05:00
sway-input.5.scd sway-input.5: add xkeyboard-config(7) to "see also" 2019-04-12 21:45:13 +03:00
sway-ipc.7.scd Add support for manually setting subpixel hinting on outputs. 2019-03-24 09:37:24 +02:00
sway-output.5.scd Add support for manually setting subpixel hinting on outputs. 2019-03-24 09:37:24 +02:00
sway.1.scd Update language in sway.desktop & sway(1) 2019-03-10 15:09:52 -04:00
sway.5.scd Implement inhibit_idle command 2019-03-24 19:26:12 -06:00
swaynag.c Replace wlr_log with sway_log 2019-01-21 12:59:42 +01:00
xdg_decoration.c view: set xdg_decoration->view to NULL, check decoration destroy 2019-02-23 03:03:03 -05:00