[mutter] MetaWindow: fix detecting the response to an extended _NET_WM_SYNC_REQUEST
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] MetaWindow: fix detecting the response to an extended _NET_WM_SYNC_REQUEST
- Date: Thu, 14 Feb 2013 21:22:16 +0000 (UTC)
commit aeb589c17618a5d0d673adf6ee58701b9ebc5885
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Thu Feb 14 13:02:01 2013 -0500
MetaWindow: fix detecting the response to an extended _NET_WM_SYNC_REQUEST
During resizing, An odd counter value (indicating the beginning of a frame)
shouldn't cause us to redraw and start a new frame, only an even counter
value. This was causing the frozen state for the window frame counter to
overlap the frozen state for the resize, causing the window not to be
updated.
https://bugzilla.gnome.org/show_bug.cgi?id=693833
src/core/window.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index eb135ac..ea50d69 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -9523,7 +9523,8 @@ meta_window_update_sync_request_counter (MetaWindow *window,
if (window == window->display->grab_window &&
meta_grab_op_is_resizing (window->display->grab_op) &&
- new_counter_value >= window->display->grab_sync_counter_wait_serial)
+ new_counter_value >= window->display->grab_sync_counter_wait_serial &&
+ (!window->extended_sync_request_counter || new_counter_value % 2 == 0))
{
meta_topic (META_DEBUG_RESIZING,
"Alarm event received last motion x = %d y = %d\n",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]