# Refresh problem in X11

**URL:** <https://discourse.libsdl.org/t/refresh-problem-in-x11/15996>\
**Category:** SDL Development\
**Created:** [January 26, 2009, 8:17am UTC](https://discourse.libsdl.org/t/refresh-problem-in-x11/15996 "2009-01-26T08:17:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julien\_Clement1](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/j/958977/32.png) [@Julien\_Clement1](https://discourse.libsdl.org/u/Julien_Clement1)\
**Post date:** [January 26, 2009, 8:17am UTC](https://discourse.libsdl.org/t/refresh-problem-in-x11/15996/1 "2009-01-26T08:17:40Z")

</div>

Look guys,

The first answer was already satisfying, no need to fight. If there is a different behavior on some systems, then I need to find a trick to fix it.Triggering a whole refresh is a good solution, by catching SDL expose events.  
By the way, there’s a little tipo mistake in the WiKi (“whan” instead of “when”):  
\<\<  
Description  
SDL\_ExposeEvent is a member of the SDL\_Event union and is used whan an event of type SDL\_VIDEOEXPOSE is reported. A  
VIDEOEXPOSE event is triggered when the screen has been modified  
outside of the application, usually by the window manager and needs to  
be redrawn.

> >

thanks

Julien

---

<div class="post-metadata">

**Author:** ![JonnyD](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/jonnyd/32/1604_2.png) [@JonnyD](https://discourse.libsdl.org/u/JonnyD)\
**Post date:** [January 26, 2009, 4:29pm UTC](https://discourse.libsdl.org/t/refresh-problem-in-x11/15996/2 "2009-01-26T16:29:12Z")

</div>

What? I use “whan” all the time!

Jonny DOn Mon, Jan 26, 2009 at 3:17 AM, julien CLEMENT wrote:

> Look guys,
> 
> The first answer was already satisfying, no need to fight. If there is a  
> different behavior on some systems, then I need to find a trick to fix  
> it.Triggering a whole refresh is a good solution, by catching SDL expose  
> events.  
> By the way, there’s a little tipo mistake in the WiKi (“whan” instead of  
> “when”):  
> \<\<  
> Description
> 
> SDL\_ExposeEvent [http://www.libsdl.org/cgi/docwiki.cgi/SDL\_ExposeEvent](http://www.libsdl.org/cgi/docwiki.cgi/SDL_ExposeEvent) is  
> a member of the SDL\_Event[http://www.libsdl.org/cgi/docwiki.cgi/SDL\_Event](http://www.libsdl.org/cgi/docwiki.cgi/SDL_Event)union and is used  
> whan an event of type SDL\_VIDEOEXPOSE is reported.  
> A VIDEOEXPOSE event is triggered when the screen has been modified outside  
> of the application, usually by the window manager and needs to be redrawn.
> 
> > >
> 
> thanks
> 
> Julien
> 
> * * *
> 
> SDL mailing list  
> SDL at [lists.libsdl.org](http://lists.libsdl.org)  
> [http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org](http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)
