From 5e012eb3b0cce183fdfabc720853959018297454 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Wed, 16 Jun 2004 22:14:07 +0000 Subject: add temporary hack to fix an artifact on unshading windows in wireframe 2004-06-16 Havoc Pennington * 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 --- ChangeLog | 6 ++++++ src/window.c | 12 ++++++++++++ 2 files changed, 18 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4996f70f..d20300a9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-06-16 Havoc Pennington + + * 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 * add hacky "no focus on map" pref patch (clearly labeled as a 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); -- cgit v1.2.1