Discussion:
FVWM: Issue with 2.6.2: FvwmButtons closing swallowed iiim-panel window
Raimund Steger
2011-08-27 21:05:24 UTC
Permalink
Hi,

I've noticed that starting with 2.6.2, FvwmButtons closes my iiim-panel
(input method status window on Solaris 10) when FVWM restarts.

This is the line that I use to swallow the window:

*FvwmButtonsIiimPanel: (Swallow (UseOld, NoClose, SwallowNew) \
"iiim-panel" nop)

The session log shows error messages like:

(iiim-panel:7224): Gdk-WARNING **: GdkWindow 0x440001b unexpectedly
destroyed

Now if I restore _only_ the _XSync_ call (not the XGrabServer) in
FvwmButtons.c, it works again.

Which means, the problem seems to disappear if I apply the following:

---8<------------

diff -ru fvwm-2.6.2/modules/FvwmButtons/FvwmButtons.c
fvwm-2.6.2-rs0/modules/FvwmButtons/FvwmButtons.c
--- fvwm-2.6.2/modules/FvwmButtons/FvwmButtons.c Mon Jun 6 22:41:54 2011
+++ fvwm-2.6.2-rs0/modules/FvwmButtons/FvwmButtons.c Sat Aug 27 21:34:00
2011
@@ -346,6 +346,7 @@
#endif
}
}
+ XSync(Dpy, 0);

fsm_close();
/* Hey, we have to free the pictures too! */

---8<------------

However, I realize that this might also be a problem with my
configuration or maybe a bug in iiim-panel.

Any suggestions?

-Raimund
--
Worringer St 31, Duesseldorf 40211 Germany, +49-179-2981632, icq 16845346
Thomas Adam
2011-08-27 21:12:47 UTC
Permalink
Hi,
Post by Raimund Steger
Hi,
I've noticed that starting with 2.6.2, FvwmButtons closes my iiim-panel
(input method status window on Solaris 10) when FVWM restarts.
Is it just this application which exhibits a problem?
Post by Raimund Steger
 *FvwmButtonsIiimPanel: (Swallow (UseOld, NoClose, SwallowNew) \
     "iiim-panel" nop)
 (iiim-panel:7224): Gdk-WARNING **: GdkWindow 0x440001b unexpectedly
destroyed
It probably doesn't like being reparented when the FvwmButton is
destroyed following a restart. I've seen this with a few GTK
applications.

File a bug with iiiim-panel, they need to fix that, or whatever is
causing the actual problem.

-- Thomas Adam
Thomas Adam
2011-08-27 21:59:32 UTC
Permalink
Post by Raimund Steger
Hi,
I've noticed that starting with 2.6.2, FvwmButtons closes my
iiim-panel (input method status window on Solaris 10) when FVWM
restarts.
*FvwmButtonsIiimPanel: (Swallow (UseOld, NoClose, SwallowNew) \
"iiim-panel" nop)
(iiim-panel:7224): Gdk-WARNING **: GdkWindow 0x440001b
unexpectedly destroyed
Now if I restore _only_ the _XSync_ call (not the XGrabServer) in
FvwmButtons.c, it works again.
Please try the CVS version, I've added something similar there which should
fix your problem.

-- Thomas Adam
--
"Deep in my heart I wish I was wrong. But deep in my heart I know I am
not." -- Morrissey ("Girl Least Likely To" -- off of Viva Hate.)
Raimund Steger
2011-08-27 22:38:33 UTC
Permalink
Hi,
Post by Thomas Adam
[...]
Please try the CVS version, I've added something similar there which should
fix your problem.
Looks good, thanks!

In the meantime, I've tested other applications with 2.6.2 and a
(UseOld, NoClose) configuration:

* rxvt
* xclock
* gtk-demo (GTK 2.18.7)

They all survive the restart just fine, so as you suggested, it does
look like iiim-panel has some specific issue here.

-Raimund
--
Worringer St 31, Duesseldorf 40211 Germany, +49-179-2981632, icq 16845346
Loading...