a few comments

2008-04-22  Thomas Thurman  <tthurman@gnome.org>

        * src/core/effects.c: a few comments


svn path=/trunk/; revision=3685
This commit is contained in:
Thomas Thurman 2008-04-22 12:15:05 +00:00 committed by Thomas James Alexander Thurman
parent 7f8ad91af6
commit a8912c4fb9
2 changed files with 18 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2008-04-22 Thomas Thurman <tthurman@gnome.org>
* src/core/effects.c: a few comments
2008-04-10 Lucas Rocha <lucasr@gnome.org> 2008-04-10 Lucas Rocha <lucasr@gnome.org>
* src/Makefile.am: no need to create a symlink to .desktop file in * src/Makefile.am: no need to create a symlink to .desktop file in

View File

@ -21,6 +21,16 @@
* 02111-1307, USA. * 02111-1307, USA.
*/ */
/**
* \file effects.c "Special effects" other than compositor effects.
*
* Before we had a serious compositor, we supported swooping
* rectangles for minimising and so on. These are still supported
* today, even when the compositor is enabled.
*/
#include <config.h> #include <config.h>
#include "effects.h" #include "effects.h"
#include "display.h" #include "display.h"
@ -256,14 +266,15 @@ update_wireframe_window (MetaDisplay *display,
#endif #endif
} }
/**
* A hack to force the X server to synchronize with the
* graphics hardware.
*/
static void static void
graphics_sync (BoxAnimationContext *context) graphics_sync (BoxAnimationContext *context)
{ {
XImage *image; XImage *image;
/* A hack to force the X server to synchronize with the
* graphics hardware
*/
image = XGetImage (context->screen->display->xdisplay, image = XGetImage (context->screen->display->xdisplay,
context->screen->xroot, context->screen->xroot,
0, 0, 1, 1, 0, 0, 1, 1,