[Bug Report] smart-hide leaves dock hidden after switching to another workspace
Product Feedback 14 views · 0 replies ·
w***f@pozinski.ru
deepin
2 hours ago
Author
Environment
Distribution: Deepin 25
dde-shell: 2.0.52
dde-daemon: 6.1.101
kwin-x11: 4:6.1.38
schemas: deepin-desktop-schemas 6.0.13
Kernel: 6.18.48-amd64-desktop-rolling
Machine: Sony VAIO VPCEJ2A9E, BIOS R0180Z9, Intel HD 3000
Session: X11, LANG=en_GB.UTF-8
Dock config: Hide_Mode = "smart-hide", Position = "bottom", Dock_Size = 48
Steps to reproduce
Set the dock to Smart Hide (org.deepin.ds.dock, Hide_Mode = smart-hide).
Open a browser window on Workspace 2 and maximise it, or make it fullscreen.
The dock hides, which is correct: the window overlaps its area.
Switch to Workspace 1, where the lowest window does not reach the dock area.
Expected: the dock is visible, because nothing on this workspace overlaps it.
Actual: the dock remains hidden. It does not re-evaluate on the workspace
change. Moving the pointer to the bottom edge does not change this in some
attempts (see "Not yet established").
The state clears as soon as the offending window's own state changes.
Minimising or unmaximising the browser on the other workspace brings the dock
back immediately, without any change on the current workspace.
Observed 2 of 2 attempts, over one session; not yet tested across a logout.
What it looks like
The dock keeps a flag equivalent to "a window is covering my area". That flag
is set by the maximised window on Workspace 2, and is only cleared by a
window-state event from that window. A workspace switch produces no such
event, so the flag survives into a workspace where it is no longer true.
Evidence
No log output at the decision point. The journal for the user unit
dde-shell@DDE.service, around a workspace switch, contains nothing mentioning
dock, hide, show or desktop. The fault is silent, so there is no log excerpt to
attach, noted so that nobody goes looking for one.
wmctrl -d confirms three workspaces with the browser on desktop 1 (Workspace 2)
and the dock hidden while Workspace 1 is active.
xprop on the browser window shows _NET_WM_STATE_MAXIMIZED_VERT,
_NET_WM_STATE_MAXIMIZED_HORZ and _NET_WM_STATE_HIDDEN while minimised. With the
window restored and maximised on the other desktop, the dock hides again.
What has been ruled out
Not a configuration problem. Hide_Mode is exactly smart-hide, and the three
permitted values in this build are KeepShowing, KeepHidden and SmartHide. There
is no separate auto-hide setting to fall back on.
Not a stale shell. The behaviour survives restarting the shell: systemctl, user
scope, restart dde-shell@DDE.service.
Not a positioning problem. The dock is hidden even when the lowest window on
the current workspace sits well above the dock area, so the overlap test would
pass if it were run.
Default theme; no dock plugins added or removed.
Where it probably lives
/usr/share/dde-shell/org.deepin.ds.dock/main.qml drives visibility through
Panel.hideState (Dock.Show and Dock.Hide) and sets
DLayerShellWindow.exclusionZone from hideMode. The decision that produces
SmartHide is on the C++ side, not in that file. The smallest useful change
would be for whatever tracks overlapping windows to re-evaluate when the
current desktop changes, rather than only on window-state events.
Workarounds people are living on
Minimising and restoring the offending window on the other workspace
(reliable).
Setting the dock to Keep Shown while switching workspaces often.
Named here so the number of affected users is visible, not as a suggested fix.
Willingness to test
Happy to run a patched dde-shell build and confirm the behaviour on this
machine. It is an X11 session on Intel HD 3000 hardware, which may matter if
the overlap tracking uses a different path there.
Environment
Distribution: Deepin 25
dde-shell: 2.0.52
dde-daemon: 6.1.101
kwin-x11: 4:6.1.38
schemas: deepin-desktop-schemas 6.0.13
Kernel: 6.18.48-amd64-desktop-rolling
Machine: Sony VAIO VPCEJ2A9E, BIOS R0180Z9, Intel HD 3000
Session: X11, LANG=en_GB.UTF-8
Dock config: Hide_Mode = "smart-hide", Position = "bottom", Dock_Size = 48
Steps to reproduce
The dock hides, which is correct: the window overlaps its area.
change. Moving the pointer to the bottom edge does not change this in some
attempts (see "Not yet established").
The state clears as soon as the offending window's own state changes.
Minimising or unmaximising the browser on the other workspace brings the dock
back immediately, without any change on the current workspace.
Observed 2 of 2 attempts, over one session; not yet tested across a logout.
What it looks like
The dock keeps a flag equivalent to "a window is covering my area". That flag
is set by the maximised window on Workspace 2, and is only cleared by a
window-state event from that window. A workspace switch produces no such
event, so the flag survives into a workspace where it is no longer true.
Evidence
No log output at the decision point. The journal for the user unit
dde-shell@DDE.service, around a workspace switch, contains nothing mentioning
dock, hide, show or desktop. The fault is silent, so there is no log excerpt to
attach, noted so that nobody goes looking for one.
wmctrl -d confirms three workspaces with the browser on desktop 1 (Workspace 2)
and the dock hidden while Workspace 1 is active.
xprop on the browser window shows _NET_WM_STATE_MAXIMIZED_VERT,
_NET_WM_STATE_MAXIMIZED_HORZ and _NET_WM_STATE_HIDDEN while minimised. With the
window restored and maximised on the other desktop, the dock hides again.
What has been ruled out
Not a configuration problem. Hide_Mode is exactly smart-hide, and the three
permitted values in this build are KeepShowing, KeepHidden and SmartHide. There
is no separate auto-hide setting to fall back on.
Not a stale shell. The behaviour survives restarting the shell: systemctl, user
scope, restart dde-shell@DDE.service.
Not a positioning problem. The dock is hidden even when the lowest window on
the current workspace sits well above the dock area, so the overlap test would
pass if it were run.
Default theme; no dock plugins added or removed.
Where it probably lives
/usr/share/dde-shell/org.deepin.ds.dock/main.qml drives visibility through
Panel.hideState (Dock.Show and Dock.Hide) and sets
DLayerShellWindow.exclusionZone from hideMode. The decision that produces
SmartHide is on the C++ side, not in that file. The smallest useful change
would be for whatever tracks overlapping windows to re-evaluate when the
current desktop changes, rather than only on window-state events.
Workarounds people are living on
Minimising and restoring the offending window on the other workspace
(reliable).
Setting the dock to Keep Shown while switching workspaces often.
Named here so the number of affected users is visible, not as a suggested fix.
Willingness to test
Happy to run a patched dde-shell build and confirm the behaviour on this
machine. It is an X11 session on Intel HD 3000 hardware, which may matter if
the overlap tracking uses a different path there.