fix: allow interacting with notifs and osd in fs

This commit is contained in:
2 * r + 2 * t 2026-04-30 22:05:12 +10:00
parent bcd7f6f161
commit 87a452851e
2 changed files with 18 additions and 1 deletions

View file

@ -77,6 +77,18 @@ StyledWindow {
Region {
id: emptyRegion
x: panels.notifications.x + bar.implicitWidth
y: panels.notifications.y + root.borderThickness
width: panels.notifications.width
height: panels.notifications.height
Region {
x: root.width - width
y: panels.osdWrapper.y + root.borderThickness
width: panels.osdWrapper.width * (1 - panels.osd.offsetScale) + root.borderThickness
height: panels.osd.height
}
}
Regions {

View file

@ -61,7 +61,7 @@ CustomMouseArea {
anchors.fill: parent
acceptedButtons: fullscreen ? Qt.NoButton : Qt.AllButtons
hoverEnabled: !fullscreen
hoverEnabled: true
onPressed: event => dragStart = Qt.point(event.x, event.y)
onContainsMouseChanged: {
@ -97,6 +97,11 @@ CustomMouseArea {
const dragX = x - dragStart.x;
const dragY = y - dragStart.y;
if (fullscreen) {
root.panels.osd.hovered = inRightPanel(panels.osdWrapper, x, y);
return;
}
// Show bar in non-exclusive mode on hover
if (!visibilities.bar && Config.bar.showOnHover && x < bar.clampedWidth)
bar.isHovered = true;