[metacity] window: fix cursor not on titlebar unmaximizing csd windows
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] window: fix cursor not on titlebar unmaximizing csd windows
- Date: Fri, 3 Apr 2015 21:02:03 +0000 (UTC)
commit 7a9610f3df2039f6b801b51bb3a18b6576842de6
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Fri Apr 3 23:48:21 2015 +0300
window: fix cursor not on titlebar unmaximizing csd windows
src/core/window.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index 128746d..30b5e3a 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -7131,17 +7131,16 @@ update_move (MetaWindow *window,
display->grab_initial_window_pos.x =
x - window->saved_rect.width * prop;
- display->grab_initial_window_pos.y = y;
if (window->frame)
{
- display->grab_initial_window_pos.y += window->frame->child_y / 2;
+ display->grab_initial_window_pos.y = y + window->frame->child_y / 2;
+ display->grab_anchor_root_x = x;
+ display->grab_anchor_root_y = y;
}
window->saved_rect.x = display->grab_initial_window_pos.x;
window->saved_rect.y = display->grab_initial_window_pos.y;
- display->grab_anchor_root_x = x;
- display->grab_anchor_root_y = y;
meta_window_unmaximize (window,
META_MAXIMIZE_HORIZONTAL |
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]