]> git.sur5r.net Git - i3/i3/commit
Check container existance during drag events 2977/head
authorOrestis Floros <orestisf1993@gmail.com>
Fri, 22 Sep 2017 16:25:02 +0000 (19:25 +0300)
committerOrestis Floros <orestisf1993@gmail.com>
Sat, 23 Sep 2017 08:19:56 +0000 (11:19 +0300)
commit414d23fb7a8b09598dbf679baa56ae269e8e35a2
tree5a586e45589fa9611322b21a6cabae955f6e3205
parentbe9a2bb7f8ffac4c360b272cd5717bc158c0bb74
Check container existance during drag events

This fixes a crash that occurs when disabling floating for a container
while it is being moved or resized.

@Deiz describes the problem:
> It occurs because the command that disables floating runs before the
event loop. So, the window is tiled, its floating parent is destroyed,
but then a key event is handled which causes the position/size of the
now-destroyed parent to be modified.

Fixes #1627
src/floating.c