Bug 477145 - Consider making "Dodge windows" only disappear when touched by the active window, not any window
Summary: Consider making "Dodge windows" only disappear when touched by the active win...
Status: RESOLVED INTENTIONAL
Alias: None
Product: plasmashell
Classification: Plasma
Component: Panel (show other bugs)
Version: master
Platform: Other Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-17 15:42 UTC by PK
Modified: 2025-03-05 12:59 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
panel stays hidden even when there is no real reason for it to stay hidden (223.80 KB, image/jpeg)
2023-11-17 15:42 UTC, PK
Details
dodge only active slider (1.03 MB, image/png)
2025-02-28 06:48 UTC, PK
Details

Note You need to log in before you can comment on or make changes to this bug.
Description PK 2023-11-17 15:42:58 UTC
Created attachment 163242 [details]
panel stays hidden even when there is no real reason for it to stay hidden

SUMMARY
***
I was just able to test the new "Dodge windows" functionality of Plasma 6. 
Apart from the fact that it works very smooth I have one remark...
Perhaps it would be more practical and even elegant if the panel only "Dodged" for active windows.
As it is now, once there is a full screen window, the panel will always behave as if it was auto-hiding in the old fashioned way.
I illustrate this with an attachment.

***


STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2023-11-17 17:58:49 UTC
I think that's expected, yeah. I'm not sure I think it's a good idea to change that, as then we'll have a different triggering condition for Dodge Windows compared to all the other Panel effects that take into account being touched by any windows.

What do you think, Niccolò and Bharadwaj?
Comment 2 Bharadwaj Raju 2023-11-17 18:19:02 UTC
It's probably a good idea.

I think most people actually have one window or another maximized (or tiled such that it would touch the panel) all the time when actually working. So in practice this renders Dodge Windows to be equivalent to plain Autohide, except on the desktop. Which isn't much of a feature.

Having another TaskManager model to filter only based on active window for Dodge Windows is IMO fine. It won't disturb or add complexity to the rest of the QML code handling panel states. We'd just need to change what signal we listen for on the C++ side.

Only downside I can think of is that if you switch back-and-forth between a touching window and a non-touching one frequently, the panel popping up might be distracting? But I don't think this is a big issue.
Comment 3 Bharadwaj Raju 2023-11-17 18:20:35 UTC
In fact we could probably do this without even the small overhead of another model, if we just add a property which filters (on QML side, not a filter on the model) the result of the existing TasksModel
Comment 4 Bug Janitor Service 2023-11-17 20:07:01 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/3550
Comment 5 PK 2023-11-25 13:18:43 UTC
I am  using/playing with the "dodge windows" option that is now available. It "dodges"  all windows.
I am happy with this solution. I would like to be able to make it dodge for active windows only, but if that doesn't happen it is already very nice this way. I work with a 16:9 ratio screen, like many people. So vertical space is something I really not have in abundance.
I like very much the ubuntu-dock - on the left side of the screen. I make something like that often in kde. It makes not so much difference to me if it is autohiding, not hiding at all or "dodging windows". Vertical space is not such an issue.
But if I make a nice floating panel on the bottom of the panel I am very happy when it doesn't get in the way. And "Dodge windows" helps a lot!
Personally I don't like autohiding panels. I don't like to start the system with one. So empty.
Thanks.
Comment 6 Nate Graham 2023-11-29 16:45:12 UTC
You're welcome!

Yeah, after some discussion we decided not to implement the change to make it on;y dodge the active window, as then it would be covering up content for other maximized or tiled windows a lot of the time, which would impair your ability to read or view content on those windows.
Comment 7 Nate Graham 2024-01-09 23:19:42 UTC
*** Bug 478940 has been marked as a duplicate of this bug. ***
Comment 8 Alexander 2025-01-28 17:58:58 UTC
TLDR: I would really appreciate that feature in Plasma 6.

I would like to add that I do not use Plasma 6 only because this feature lacks in this release. In Plasma 5 I use Latte Dock and in GNOME I use Dash to Dock.

For me, this is the most convenient way to work with panels, because it is hidden then I do not want to see it and visible when i want it. e.g. I can press Meta and panel will appear, because fullscreen window loose it's focus.
Comment 9 PK 2025-02-28 06:48:22 UTC
Created attachment 178967 [details]
dodge only active slider

Imho it wouldn't take so much visual clutter to make the panel dodge only active windows.
Comment 10 PK 2025-02-28 07:03:45 UTC
(In reply to PK from comment #9)
> Created attachment 178967 [details]
> dodge only active slider
> 
> Imho it wouldn't take so much visual clutter to make the panel dodge only
> active windows.

Oh... I realize now that it couldn't be exactly so simple as in the mockup ao attachment 178967 [details]. I'm sorry.
Comment 11 lolqweety 2025-03-05 12:59:34 UTC
I don't know if it's a good place to leave feedback, but:

I am very much in favor of adding this functionality, either as a change to dodge windows or as a separate 'dodge active windows' option.