[Xfce4-commits] [xfce/xfwm4] 04/04: Sync compositor after resizing the Cairo wireframe

noreply at xfce.org noreply at xfce.org
Tue Jan 20 21:41:49 CET 2015


This is an automated email from the git hooks/post-receive script.

olivier pushed a commit to branch master
in repository xfce/xfwm4.

commit 8e809bac903b4f155835be42adf3f826faade336
Author: Olivier Fourdan <fourdan at xfce.org>
Date:   Tue Jan 20 21:31:54 2015 +0100

    Sync compositor after resizing the Cairo wireframe
    
    Signed-off-by: Olivier Fourdan <fourdan at xfce.org>
---
 src/wireframe.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/wireframe.c b/src/wireframe.c
index a64ba5d..ec2f45c 100644
--- a/src/wireframe.c
+++ b/src/wireframe.c
@@ -35,6 +35,7 @@
 #include <libxfce4util/libxfce4util.h>
 #include "screen.h"
 #include "client.h"
+#include "compositor.h"
 #include "frame.h"
 #include "ui_style.h"
 #include "wireframe.h"
@@ -153,6 +154,10 @@ wireframeDrawCairo (WireFrame *wireframe, int width, int height)
                      wireframe->width - OUTLINE_WIDTH_CAIRO,
                      wireframe->height - OUTLINE_WIDTH_CAIRO);
     cairo_stroke (wireframe->cr);
+    /* Force a resize of the compositor window to avoid flickering */
+    compositorResizeWindow (screen_info->display_info, wireframe->xwindow,
+                            wireframe->x, wireframe->y,
+                            wireframe->width, wireframe->height);
 }
 
 void

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list