[mutter] meta-surface-actor-x11: Fix unredirect heuristic
- From: Adel Gadllah <agadllah src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] meta-surface-actor-x11: Fix unredirect heuristic
- Date: Sat, 11 Oct 2014 22:35:56 +0000 (UTC)
commit cd32e4a68a939f5f8aed38ce402a0f5b58aa9053
Author: Adel Gadllah <adel gadllah gmail com>
Date: Sat Oct 11 22:55:26 2014 +0200
meta-surface-actor-x11: Fix unredirect heuristic
Damage coordinates are relative to the drawable not to the screen. So we
have to check whether x and y are 0 and not window_rect.x/y otherwise the
herustic will never trigger for windows on monitors whos x and y are not 0.
https://bugzilla.gnome.org/show_bug.cgi?id=738271
src/compositor/meta-surface-actor-x11.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/compositor/meta-surface-actor-x11.c b/src/compositor/meta-surface-actor-x11.c
index 8af5ca2..4aa7ecd 100644
--- a/src/compositor/meta-surface-actor-x11.c
+++ b/src/compositor/meta-surface-actor-x11.c
@@ -193,8 +193,8 @@ meta_surface_actor_x11_process_damage (MetaSurfaceActor *actor,
MetaRectangle window_rect;
meta_window_get_frame_rect (priv->window, &window_rect);
- if (window_rect.x == x &&
- window_rect.y == y &&
+ if (x == 0 &&
+ y == 0 &&
window_rect.width == width &&
window_rect.height == height)
priv->full_damage_frames_count++;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]