fix: allow interacting with notifs and osd in fs
This commit is contained in:
parent
bcd7f6f161
commit
87a452851e
2 changed files with 18 additions and 1 deletions
|
|
@ -77,6 +77,18 @@ StyledWindow {
|
||||||
|
|
||||||
Region {
|
Region {
|
||||||
id: emptyRegion
|
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 {
|
Regions {
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ CustomMouseArea {
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
acceptedButtons: fullscreen ? Qt.NoButton : Qt.AllButtons
|
acceptedButtons: fullscreen ? Qt.NoButton : Qt.AllButtons
|
||||||
hoverEnabled: !fullscreen
|
hoverEnabled: true
|
||||||
|
|
||||||
onPressed: event => dragStart = Qt.point(event.x, event.y)
|
onPressed: event => dragStart = Qt.point(event.x, event.y)
|
||||||
onContainsMouseChanged: {
|
onContainsMouseChanged: {
|
||||||
|
|
@ -97,6 +97,11 @@ CustomMouseArea {
|
||||||
const dragX = x - dragStart.x;
|
const dragX = x - dragStart.x;
|
||||||
const dragY = y - dragStart.y;
|
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
|
// Show bar in non-exclusive mode on hover
|
||||||
if (!visibilities.bar && Config.bar.showOnHover && x < bar.clampedWidth)
|
if (!visibilities.bar && Config.bar.showOnHover && x < bar.clampedWidth)
|
||||||
bar.isHovered = true;
|
bar.isHovered = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue