Restoring an Iconified Window

Hi !

Is there someway to restore a window iconified with
SDL_WM_IconifyWindow ? I’m trying to control a window with
an external event and i can minimize it with this function
but i can’t restore it!

If there is no way to do it with SDL, is it possible to do it
with X11 calls ? I have tried the next code with no luck.

void screen_max()
{
SDL_SysWMinfo wm;

SDL_VERSION( &wm.version );
SDL_GetWMInfo( &wm );

XMoveResizeWindow( wm.info.x11.display, wm.info.x11.window,
0, 0, 1024, 768 );
XMapRaised( wm.info.x11.display, wm.info.x11.window );
}

Any comment ?

Thanks,
Jorge________________________________________________________________________________
Este mensaje se dirige exclusivamente a su destinatario y puede contener
informaci?n CONFIDENCIAL sometida a secreto profesional o cuya divulgaci?n
est? prohibida en virtud de la legislaci?n vigente. Si ha recibido este
mensaje por error, le rogamos que nos lo comunique inmediatamente por esta
misma v?a o por tel?fono (34 93 739 67 00) y proceda a su destrucci?n.
N?tese que el correo electr?nico v?a Internet no permite asegurar ni la
confidencialidad de los mensajes que se transmiten ni la correcta recepci?n
de los mismos. En el caso de que el destinatario de este mensaje no
consintiera la utilizaci?n del correo electr?nico v?a Internet, rogamos lo
ponga en nuestro conocimiento de manera inmediata. This message is
intended exclusively for its addressee and may contain information that is
CONFIDENTIAL and protected by a professional privilege or which disclosure
is prohibited by law. If this message has been received in error, please
immediately notify us via e-mail or by telephone (34 93 739 67 00) and
delete it. Please note that Internet e-mail does not guarantee the
confidentiality or the proper receipt of the messages sent. If the
addressee of this message does not consent to the use of Internet e-mail,
please communicate it to us immediately.


Hi !

Is there someway to restore a window iconified with
SDL_WM_IconifyWindow ? I’m trying to control a window with
an external event and i can minimize it with this function
but i can’t restore it!

If there is no way to do it with SDL, is it possible to do it
with X11 calls ? I have tried the next code with no luck.

void screen_max()
{
SDL_SysWMinfo wm;

SDL_VERSION( &wm.version );
SDL_GetWMInfo( &wm );

XMoveResizeWindow( wm.info.x11.display, wm.info.x11.window,
0, 0, 1024, 768 );
XMapRaised( wm.info.x11.display, wm.info.x11.window );
}

Any comment ?

Use wm_window instead of window. :slight_smile:

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment