forked from Shinonome/dots-hyprland
sidebar: add option for hover open at end of hover region
This commit is contained in:
@@ -76,9 +76,16 @@ Scope {
|
||||
}
|
||||
|
||||
sourceComponent: FocusedScrollMouseArea {
|
||||
id: mouseArea
|
||||
implicitWidth: Config.options.sidebar.cornerOpen.cornerRegionWidth
|
||||
implicitHeight: Config.options.sidebar.cornerOpen.cornerRegionHeight
|
||||
hoverEnabled: true
|
||||
onMouseXChanged: {
|
||||
if (!Config.options.sidebar.cornerOpen.clicklessCornerEnd) return;
|
||||
if ((cornerWidget.isRight && mouseArea.mouseX >= mouseArea.width - 2)
|
||||
|| (cornerWidget.isLeft && mouseArea.mouseX <= 2))
|
||||
screenCorners.actionForCorner[cornerPanelWindow.corner]();
|
||||
}
|
||||
onEntered: {
|
||||
if (Config.options.sidebar.cornerOpen.clickless)
|
||||
screenCorners.actionForCorner[cornerPanelWindow.corner]();
|
||||
|
||||
Reference in New Issue
Block a user