summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas James Alexander Thurman <tthurman@src.gnome.org>2006-07-31 19:56:56 +0000
committerThomas James Alexander Thurman <tthurman@src.gnome.org>2006-07-31 19:56:56 +0000
commit76e4fd8a0791ec1511b56972c9b43beb94743026 (patch)
tree00a8f160f677368e776b0e73e5ed44c861b4b08c
parent3cca3381ba6bd9a6d6c40c3656b01209fe45b9ac (diff)
downloadmetacity-76e4fd8a0791ec1511b56972c9b43beb94743026.tar.gz
Make it so maximized windows do not have rounded corners. #336850.
-rw-r--r--ChangeLog5
-rw-r--r--src/window.c8
2 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 76953f31..d4c98961 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-07-31 Björn Lindqvist <bjourne@gmail.com>
+
+ * src/window.c: Make it so maximized windows do not have rounded
+ corners. #336850.
+
2006-07-30 Jens Granseuer <jensgr@gmx.net>
* src/tabpopup.c: Fix another C89 vs. C99 issue. #347621.
diff --git a/src/window.c b/src/window.c
index 71f1d3c1..b6e2a4f7 100644
--- a/src/window.c
+++ b/src/window.c
@@ -2202,6 +2202,14 @@ meta_window_maximize_internal (MetaWindow *window,
window->maximized_horizontally || maximize_horizontally;
window->maximized_vertically =
window->maximized_vertically || maximize_vertically;
+
+ /* Fix for #336850: If the frame shape isn't reapplied, it is
+ * possible that the frame will retains its rounded corners. That
+ * happens if the clients size when maximized equals the unmaximized
+ * size.
+ */
+ if (window->frame)
+ window->frame->need_reapply_frame_shape = TRUE;
recalc_window_features (window);
set_net_wm_state (window);