~tiagosh/unity-2d/fix-dash-cursor

« back to all changes in this revision

Viewing changes to spread/Workspaces.qml

[workspace switcher] Fixed workspace switcher activation.

DesktopInfo does not have an 'activeWindow' property anymore, luckily it was not actually used but by 'lastActiveWindow' that was not itself used.. Fixes: https://bugs.launchpad.net/bugs/928398. Approved by .

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
       screen. Each workspace will individually filter them to select only those that
74
74
       belong to it. */
75
75
    property variant allWindows: WindowsList { }
76
 
    property int lastActiveWindow: 0
77
76
 
78
77
    /* Group all Workspace elements into a single Item to help workspaceByNumber
79
78
       iterate over less items than it would need to if the Repeater was adding children
209
208
    }
210
209
 
211
210
    function show() {
212
 
        /* Save the currently active window before showing and activating the switcher,
213
 
           so that we can use it to pre-select the active window on the workspace */
214
 
        lastActiveWindow = desktop.activeWindow
215
 
 
216
211
        allWindows.load()
217
212
 
218
213
        spreadView.show()