mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-11 16:50:16 +00:00
MainScreen+SmartPanel: Allow click on the bar when a panel is open.
This commit is contained in:
@@ -71,6 +71,14 @@ PanelWindow {
|
||||
right: true
|
||||
}
|
||||
|
||||
// Margins to exclude bar area so bar remains clickable
|
||||
margins {
|
||||
top: placeholder.barPosition === "top" ? (placeholder.barMarginV + Style.barHeight) : 0
|
||||
bottom: placeholder.barPosition === "bottom" ? (placeholder.barMarginV + Style.barHeight) : 0
|
||||
left: placeholder.barPosition === "left" ? (placeholder.barMarginH + Style.barHeight) : 0
|
||||
right: placeholder.barPosition === "right" ? (placeholder.barMarginH + Style.barHeight) : 0
|
||||
}
|
||||
|
||||
// Sync state to placeholder
|
||||
onIsPanelVisibleChanged: {
|
||||
placeholder.isPanelVisible = isPanelVisible
|
||||
@@ -243,9 +251,9 @@ PanelWindow {
|
||||
// Content wrapper with opacity animation
|
||||
Item {
|
||||
id: contentWrapper
|
||||
// Position at placeholder location within fullscreen window
|
||||
x: placeholder.panelItem.x
|
||||
y: placeholder.panelItem.y
|
||||
// Position at placeholder location, compensating for window margins
|
||||
x: placeholder.panelItem.x - (placeholder.barPosition === "left" ? (placeholder.barMarginH + Style.barHeight) : 0)
|
||||
y: placeholder.panelItem.y - (placeholder.barPosition === "top" ? (placeholder.barMarginV + Style.barHeight) : 0)
|
||||
width: placeholder.panelItem.width
|
||||
height: placeholder.panelItem.height
|
||||
z: 1 // Above click-to-close MouseArea
|
||||
|
||||
Reference in New Issue
Block a user