Skip to content

Add "Last Active Click" Taskbar Option #280

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ Below is an overview of the key features and functionality offered by Win11Deblo
- Disable the widgets service & hide icon from the taskbar.
- Hide the chat (meet now) icon from the taskbar.
- Enable the 'End Task' option in the taskbar right click menu. (W11 only)
- Enable the 'Last Active Click' behavior in the taskbar app area. This allows you to repeatedly click on an application's icon in the taskbar to switch focus between multiple active windows for that application.

#### Start
- Disable & hide the recommended section in the start menu. (W11 only)
Expand Down
16 changes: 16 additions & 0 deletions Regfiles/Enable_Last_Active_Click.reg
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Windows Registry Editor Version 5.00

; When clicking the icon of a a running application in the taskbar (that
; currently has multiple windows open), typically a pop-up will appear showing
; the multiple windows, and you'll have to click a second time to select the
; window you want to focus on.
;
; This registry hack instead turns the icon click into a "focus on the last
; active window" action. You can click it repeatedly to cycle focus through all
; the windows open for that application.
;
; With this enabled, the pop-up window display will still show if you hover
; your mouse over the taskbar icon.

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"LastActiveClick"=dword:00000001
16 changes: 16 additions & 0 deletions Regfiles/Sysprep/Enable_Last_Active_Click.reg
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Windows Registry Editor Version 5.00

; When clicking the icon of a a running application in the taskbar (that
; currently has multiple windows open), typically a pop-up will appear showing
; the multiple windows, and you'll have to click a second time to select the
; window you want to focus on.
;
; This registry hack instead turns the icon click into a "focus on the last
; active window" action. You can click it repeatedly to cycle focus through all
; the windows open for that application.
;
; With this enabled, the pop-up window display will still show if you hover
; your mouse over the taskbar icon.

[HKEY_USERS\default\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"LastActiveClick"=dword:00000001
8 changes: 8 additions & 0 deletions Regfiles/Undo/Disable_Last_Active_Click.reg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Windows Registry Editor Version 5.00

; This disables the last-active-click action for the taskbar.
; (Please see the `Enable_Last_Active_Click.reg` file for an
; explanation of what this undoes.)

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"LastActiveClick"=-
10 changes: 10 additions & 0 deletions Win11Debloat.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ param (
[switch]$DisableWidgets, [switch]$HideWidgets,
[switch]$DisableChat, [switch]$HideChat,
[switch]$EnableEndTask,
[switch]$EnableLastActiveClick,
[switch]$ClearStart,
[string]$ReplaceStart,
[switch]$ClearStartAllUsers,
Expand Down Expand Up @@ -1095,6 +1096,11 @@ function DisplayCustomModeOptions {
AddParameter 'EnableEndTask' "Enable the 'End Task' option in the taskbar right click menu"
}
}

Write-Output ""
if ($( Read-Host -Prompt " Enable the 'Last Active Click' behavior in the taskbar app area? (y/n)" ) -eq 'y') {
AddParameter 'EnableLastActiveClick' "Enable the 'Last Active Click' behavior in the taskbar app area"
}
}

Write-Output ""
Expand Down Expand Up @@ -1677,6 +1683,10 @@ switch ($script:Params.Keys) {
RegImport "> Enabling the 'End Task' option in the taskbar right click menu..." "Enable_End_Task.reg"
continue
}
'EnableLastActiveClick' {
RegImport "> Enabling the 'Last Active Click' behavior in the taskbar app area..." "Enable_Last_Active_Click.reg"
continue
}
'ExplorerToHome' {
RegImport "> Changing the default location that File Explorer opens to `Home`..." "Launch_File_Explorer_To_Home.reg"
continue
Expand Down