diff options
author | Julien Moutte <julien@moutte.net> | 2005-11-14 22:01:22 +0000 |
---|---|---|
committer | Julien Moutte <julien@moutte.net> | 2005-11-14 22:01:22 +0000 |
commit | 0a55772493f263c47f0bcf95d5352ee1cccb3790 (patch) | |
tree | 0eb6ec535d66b2a063623b347c4486157a741ad7 /sys | |
parent | eac77914d3886064f5aab0dd46771da44c82744d (diff) |
sys/xvimage/xvimagesink.c: Discovered how to take away flickering while resizing the window. Please don't put that in...
Original commit message from CVS:
2005-11-14 Julien MOUTTE <julien@moutte.net>
* sys/xvimage/xvimagesink.c: (gst_xvimagesink_xwindow_new):
Discovered how to take away flickering while resizing the
window. Please don't put that in ximagesink, refactoring in
progress.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/xvimage/xvimagesink.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c index 64406c8d..f7274e67 100644 --- a/sys/xvimage/xvimagesink.c +++ b/sys/xvimage/xvimagesink.c @@ -525,6 +525,10 @@ gst_xvimagesink_xwindow_new (GstXvImageSink * xvimagesink, 0, 0, xwindow->width, xwindow->height, 0, 0, xvimagesink->xcontext->black); + /* We have to do that to prevent X from redrawing the background on + * ConfigureNotify. This takes away flickering of video when resizing. */ + XSetWindowBackgroundPixmap (xvimagesink->xcontext->disp, xwindow->win, None); + XSelectInput (xvimagesink->xcontext->disp, xwindow->win, ExposureMask | StructureNotifyMask | PointerMotionMask | KeyPressMask | KeyReleaseMask | ButtonPressMask | ButtonReleaseMask); |