Shaped SDL window - more info

Andreas Schiffler wrote:

Except now it crashes the Xserver hard when I click on the windows menu bar.
So something is still missing … I am not sure if there is more code I need
to add (event handler for resizing maybe), or if it is a SDL or XFree issue.

What does SDL do when I drag the window?

In response to myself - I still get the crash. But I wanted to clarify the
conditions a bit more. Someone might have any ideas where and how to look for
the cause.

I have a standard SDL window. The shape gets applied and works just fine on the
initial window display. I can overlap the shaped window with other windows. I
can give it the focus or take it away.The Xserver only crashes when I try to
drag the window in using the window title bar.

xeyes works in shaped mode. It can be dragged without a problem - so its not
the Xserver or the extension code that’s causing the crash.

I checked if the crash is caused by the ConfigureNotify event code and the
default event code which in turn call SDL_PrivateResize. Commenting out
resizing code didn’t make any difference - the crash still occured

My question is: what makes the SDL window different that causes the Xserver to
crash when moving a shaped window?

Ciao
Andreas–
| Andreas Schiffler aschiffler at home.com |
| Senior Systems Engineer - Deskplayer Inc., Buffalo |
| 4707 Eastwood Cres., Niagara Falls, Ont L2E 1B4, Canada |
| +1-905-371-3652 (private) - +1-905-371-8834 (work/fax) |

I have a standard SDL window. The shape gets applied and works just fine on the
initial window display. I can overlap the shaped window with other windows. I
can give it the focus or take it away.The Xserver only crashes when I try to
drag the window in using the window title bar.

if the X server crashes, it’s a bug in that server. if it’s just unresponsive
it might be a client grabbing the server that has crashed, perhaps the
window manager

Mattias Engdeg?rd wrote:

I have a standard SDL window. The shape gets applied and works just fine on the
initial window display. I can overlap the shaped window with other windows. I
can give it the focus or take it away.The Xserver only crashes when I try to
drag the window in using the window title bar.

if the X server crashes, it’s a bug in that server. if it’s just unresponsive
it might be a client grabbing the server that has crashed, perhaps the
window manager

It WAS the windows manager!

The app works fine with “twm” and “fvwm2” but crashes the Xserver under
"helix-gnome/sawmill".

Still, its somewhat related to SDL, since other shaped apps like xeyes or tuxEyes
work fine with helix-gnome.

Ciao
Andreas–
| Andreas Schiffler aschiffler at home.com |
| Senior Systems Engineer - Deskplayer Inc., Buffalo |
| 4707 Eastwood Cres., Niagara Falls, Ont L2E 1B4, Canada |
| +1-905-371-3652 (private) - +1-905-371-8834 (work/fax) |

It WAS the windows manager!

The app works fine with “twm” and “fvwm2” but crashes the Xserver under
"helix-gnome/sawmill".

Still, its somewhat related to SDL, since other shaped apps like xeyes or tuxEyes
work fine with helix-gnome.

It may be a bug related to size, or shape, or window atoms that the window
manager is expecting and not finding… or even the fact that SDL uses two
windows for each display - one for input and one for drawing.

If you post a link to a complete example, I can download it and test it here.

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software