projects
/
manmower
/
cgl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b027522
)
unredirect on a window with bad timing can cause a BadValue error
author
Dana Jansens
<danakj@orodu.net>
Fri, 25 Jun 2010 17:43:21 +0000
(19:43 +0200)
committer
Dana Jansens
<danakj@orodu.net>
Sat, 26 Jun 2010 23:30:51 +0000
(
01:30
+0200)
exemplified by right clicking on wbar a lot causing it to remap itself
openbox/composite.c
patch
|
blob
|
history
diff --git
a/openbox/composite.c
b/openbox/composite.c
index
ea8fbca
..
6e52ead
100644
(file)
--- a/
openbox/composite.c
+++ b/
openbox/composite.c
@@
-649,8
+649,11
@@
static void composite_window_unredir(ObWindow *w)
{
if (!w->redir) return;
+ /* this call can cause a BadValue error */
+ obt_display_ignore_errors(TRUE);
XCompositeUnredirectWindow(obt_display, window_redir(w),
CompositeRedirectManual);
+ obt_display_ignore_errors(FALSE);
w->is_redir = FALSE;
}