~igors/do-plugins/Thunderbird-fix-redux

« back to all changes in this revision

Viewing changes to WindowManager/src/Wink/WindowControl.cs

  • Committer: Robert Dyer
  • Date: 2010-12-27 00:58:34 UTC
  • Revision ID: psybers@gmail.com-20101227005834-ltrr4uay5t1s1jgv
make focusing also unminimize windows - bug 258893

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
namespace WindowManager.Wink
26
26
{
27
 
        
28
 
        
29
27
        public static class WindowControl
30
28
        {
31
 
                
32
29
                const int SleepTime = 10;
33
30
                const int FocusDelay = 200;
34
31
                
99
96
                        
100
97
                        if (windows.Any (w => w.IsInViewport (w.Screen.ActiveWorkspace))) {
101
98
                                foreach (Window window in windows.Reverse ()) {
102
 
                                        if (window.IsInViewport (window.Screen.ActiveWorkspace) && !window.IsMinimized) {
 
99
                                        if (window.IsInViewport (window.Screen.ActiveWorkspace)) {
103
100
                                                window.CenterAndFocusWindow ();
104
101
                                                System.Threading.Thread.Sleep (SleepTime);
105
102
                                        }
169
166
                        if (w.Workspace != null && w.Workspace != w.Screen.ActiveWorkspace) 
170
167
                                w.Workspace.Activate (time);
171
168
                        
172
 
                        
173
169
                        if (w.IsMinimized) 
174
170
                                w.Unminimize (time);
175
171