mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-30 08:22:51 -05:00
dankbar: fix reveal on overview/niri when auto-hide on
This commit is contained in:
@@ -524,8 +524,11 @@ PanelWindow {
|
|||||||
}
|
}
|
||||||
|
|
||||||
property bool reveal: {
|
property bool reveal: {
|
||||||
const showOnWindowsSetting = barConfig?.showOnWindowsOpen ?? false;
|
const inOverviewWithShow = CompositorService.isNiri && NiriService.inOverview && (barConfig?.openOnOverview ?? false);
|
||||||
|
if (inOverviewWithShow)
|
||||||
|
return true;
|
||||||
|
|
||||||
|
const showOnWindowsSetting = barConfig?.showOnWindowsOpen ?? false;
|
||||||
if (showOnWindowsSetting && autoHide && (CompositorService.isNiri || CompositorService.isHyprland)) {
|
if (showOnWindowsSetting && autoHide && (CompositorService.isNiri || CompositorService.isHyprland)) {
|
||||||
if (barWindow.shouldHideForWindows)
|
if (barWindow.shouldHideForWindows)
|
||||||
return topBarMouseArea.containsMouse || hasActivePopout || revealSticky;
|
return topBarMouseArea.containsMouse || hasActivePopout || revealSticky;
|
||||||
@@ -533,7 +536,7 @@ PanelWindow {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (CompositorService.isNiri && NiriService.inOverview)
|
if (CompositorService.isNiri && NiriService.inOverview)
|
||||||
return (barConfig?.openOnOverview ?? false) || topBarMouseArea.containsMouse || hasActivePopout || revealSticky;
|
return topBarMouseArea.containsMouse || hasActivePopout || revealSticky;
|
||||||
|
|
||||||
return (barConfig?.visible ?? true) && (!autoHide || topBarMouseArea.containsMouse || hasActivePopout || revealSticky);
|
return (barConfig?.visible ?? true) && (!autoHide || topBarMouseArea.containsMouse || hasActivePopout || revealSticky);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user