From 816fee1b684d1bb6706661fb6e5d8f9cac73c483 Mon Sep 17 00:00:00 2001 From: BERTRAND Joel Date: Thu, 10 Sep 2009 20:30:06 +0200 Subject: [PATCH] Fix miniwindows auto-arranging bug With this patch, minimized windows do not reshuffle anymore. See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=361241 where Martin Hinsch reported: "The behaviour of icons (minimized applications) is severely broken when automatic placement is switched on. * When switching the workspace icons often stick thereby covering (and hiding) icons on the workspace one is switching to. * After minimizing an application, clicking (singly or doubly) on one of the icons causes all of them to reshuffle, usually in a way that the icon in question changes its place (which is extremely annoying). * Icon placement ignores the dock so that icons disappear behind it/cover it. All of these suddenly appeared about a year ago (I think with 91.0). The problems are not architecture-specific since they occur in exactly the same way on my pentium machine. Wiping the complete configuration (rm -r ~/GNUstep) did not make a change either." --- src/actions.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/actions.c b/src/actions.c index 5217b2bb..4ddfcd2c 100644 --- a/src/actions.c +++ b/src/actions.c @@ -1097,6 +1097,9 @@ void wIconifyWindow(WWindow * wwin) wIconSelect(wwin->icon); WMPostNotificationName(WMNChangedState, wwin, "iconify"); + + if (wPreferences.auto_arrange_icons) + wArrangeIcons(wwin->screen_ptr, True); } void wDeiconifyWindow(WWindow * wwin) -- 2.11.4.GIT