mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-27 15:02:50 -05:00
dock: re-work to separate pins from all open windows
This commit is contained in:
@@ -307,6 +307,17 @@ Singleton {
|
||||
|
||||
function handleWindowsChanged(data) {
|
||||
windows = sortWindowsByLayout(data.windows)
|
||||
|
||||
// Extract focused window from initial state
|
||||
var focusedWindow = windows.find(w => w.is_focused)
|
||||
if (focusedWindow) {
|
||||
focusedWindowId = String(focusedWindow.id)
|
||||
focusedWindowIndex = windows.findIndex(w => w.id === focusedWindow.id)
|
||||
} else {
|
||||
focusedWindowId = ""
|
||||
focusedWindowIndex = -1
|
||||
}
|
||||
|
||||
updateFocusedWindow()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user