diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-01-11 18:13:12 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-01-11 18:13:12 -0500 |
| commit | 2b80e4e8ef56bb4fba614139601e750344418e5b (patch) | |
| tree | 1dd720f6fa3b3ff489819d12fc2832e84185814a /openbox/popup.c | |
| parent | 6133bbd5f732622d8d5650d262413429c38af842 (diff) | |
ignore mouse clicks on override-redirect windows that aren't owned by openbox
Diffstat (limited to 'openbox/popup.c')
| -rw-r--r-- | openbox/popup.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/openbox/popup.c b/openbox/popup.c index 071f5b62..283348e7 100644 --- a/openbox/popup.c +++ b/openbox/popup.c @@ -58,6 +58,7 @@ ObPopup *popup_new(void) XMapWindow(ob_display, self->text); stacking_add(INTERNAL_AS_WINDOW(self)); + g_hash_table_insert(window_map, &self->bg, self); return self; } @@ -68,6 +69,7 @@ void popup_free(ObPopup *self) XDestroyWindow(ob_display, self->text); RrAppearanceFree(self->a_bg); RrAppearanceFree(self->a_text); + g_hash_table_remove(window_map, &self->bg); stacking_remove(self); g_free(self); } |
