diff options
author | corvid <corvid@lavabit.com> | 2011-01-23 18:55:28 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2011-01-23 18:55:28 +0000 |
commit | 2411c95059cb0f26a4b38075916f597e7948eca2 (patch) | |
tree | 5350ffa41e79d45f5e715cefd83603e915f99d63 /dw/layout.cc | |
parent | e5ca46df6de7044051ab73419ee75f8e167917af (diff) |
extend Johannes's deletingTopLevel workaround from 400a06a83891
Diffstat (limited to 'dw/layout.cc')
-rw-r--r-- | dw/layout.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dw/layout.cc b/dw/layout.cc index c73b9760..bfaf9969 100644 --- a/dw/layout.cc +++ b/dw/layout.cc @@ -226,8 +226,10 @@ Layout::~Layout () platform->removeIdle (resizeIdleId); if (bgColor) bgColor->unref (); + deletingTopLevel = true; if (topLevel) delete topLevel; + deletingTopLevel = false; delete platform; delete view; delete anchorsTable; @@ -773,6 +775,9 @@ bool Layout::motionNotify (View *view, int x, int y, ButtonState state) { EventButton event; + if (deletingTopLevel) + return true; + moveToWidgetAtPoint (x, y, state); event.xCanvas = x; |