summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2004-06-16 22:14:07 +0000
committerHavoc Pennington <hp@src.gnome.org>2004-06-16 22:14:07 +0000
commit5e012eb3b0cce183fdfabc720853959018297454 (patch)
treec746772f1b4bfba72661d33325fe11c1e1a3496f
parent61b9cbca78c6c179977e06cd6ed1de1857bd669b (diff)
downloadmetacity-gnome-2-2-rhel3.tar.gz
add temporary hack to fix an artifact on unshading windows in wireframegnome-2-2-rhel3
2004-06-16 Havoc Pennington <hp@redhat.com> * src/window.c (meta_window_unshade): add temporary hack to fix an artifact on unshading windows in wireframe resize mode; fix from Bernd Schmidt bernds@redhat.com
-rw-r--r--ChangeLog6
-rw-r--r--src/window.c12
2 files changed, 18 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 4996f70f..d20300a9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2004-06-16 Havoc Pennington <hp@redhat.com>
+ * src/window.c (meta_window_unshade): add temporary hack to fix an
+ artifact on unshading windows in wireframe resize mode; fix from
+ Bernd Schmidt bernds@redhat.com
+
+2004-06-16 Havoc Pennington <hp@redhat.com>
+
* add hacky "no focus on map" pref patch (clearly labeled as a
hack only in rhel3)
diff --git a/src/window.c b/src/window.c
index c5c640e7..6b9c3874 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1955,6 +1955,18 @@ meta_window_unshade (MetaWindow *window)
if (window->shaded)
{
window->shaded = FALSE;
+
+ /* This isn't correct; we need a more generic fix in
+ * meta_window_show/meta_window_hide (force a repaint on
+ * entire wireframe area, essentially?)
+ */
+ if (window->display->grab_wireframe_active)
+ {
+ window->display->grab_wireframe_active = FALSE;
+ meta_effects_end_wireframe (window->display->grab_window->screen,
+ &window->display->grab_wireframe_rect);
+ }
+
meta_window_queue_move_resize (window);
meta_window_queue_calc_showing (window);