Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • KWin KWin
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 58
    • Issues 58
    • List
    • Boards
    • Service Desk
    • Milestones
  • Bugzilla
    • Bugzilla
  • Merge requests 160
    • Merge requests 160
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PlasmaPlasma
  • KWinKWin
  • Merge requests
  • !1603

scripts/minimizeall: Try to preserve last active window

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Vlad Zahorodnii requested to merge work/zzag/minimize-all-preserve-last-active-window into master Nov 02, 2021
  • Overview 2
  • Commits 1
  • Pipelines 0
  • Changes 1

Windows in workspace.clientList() are sorted in the map order. This means that the minimize all script will try to activate the last mapped window when unminimizing windows, which is a bit annoying.

This change ensures that the minimize all script doesn't activate wrong window by minimizing and unminimizing windows in the stacking order. It's not a bullet-proof solution though, but it should produce good enough results.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: work/zzag/minimize-all-preserve-last-active-window