Open zoro11031 opened 2 years ago
If I had to add this feature to the dock, I would do it together with remembering the floating state, workspace and output, and use the same cache file - for the nwg-panel and nwg-dock features to be consistent. You'll also be able to restore from scratchpad by clicking the Scratchpad panel module icons.
So yes, it's possible. Adding to my TODO list.
I know the nwg-panel already has this implemented, but would it be possible to also implement this in the dock? For me it would feel redundant to have two separate UI pieces show my open applications, and I prefer using the dock over the panel module :).
I know the behavior right now is that when you click an open app it takes you to the workspace that that app is running on if you are not already there. To prevent breaking that for those who rely on this feature, maybe have it be an optional toggle in the dock? Alternatively, it could be a right click context menu to minimize, and then if it's detected that the app is running in scratchpad, a regular click would reveal it from scratchpad (not sure if this idea is actually possible to implement with the way Wayland works, I know there's some issues with applications detecting the state of windows for separate apps. If it's not possible just disregard it haha)