summaryrefslogtreecommitdiff
path: root/otk
diff options
context:
space:
mode:
Diffstat (limited to 'otk')
-rw-r--r--otk/display.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/otk/display.cc b/otk/display.cc
index f45dd49b..bd6d2d05 100644
--- a/otk/display.cc
+++ b/otk/display.cc
@@ -162,6 +162,8 @@ line argument.\n\n"));
void OBDisplay::destroy()
{
delete _gccache;
+ while (_grab_count > 0)
+ ungrab();
XCloseDisplay(display);
}