forked from Shinonome/dots-hyprland
fix opening right sidebar with mouse not dismissing notifs
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import qs.modules.common
|
|
||||||
import qs
|
import qs
|
||||||
|
import qs.modules.common
|
||||||
|
import qs.services
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import Quickshell
|
import Quickshell
|
||||||
import Quickshell.Hyprland
|
import Quickshell.Hyprland
|
||||||
@@ -44,6 +45,10 @@ Singleton {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onSidebarRightOpenChanged: {
|
||||||
|
if(GlobalStates.sidebarRightOpen) Notifications.timeoutAll();
|
||||||
|
}
|
||||||
|
|
||||||
property real screenZoom: 1
|
property real screenZoom: 1
|
||||||
onScreenZoomChanged: {
|
onScreenZoomChanged: {
|
||||||
Quickshell.execDetached(["hyprctl", "keyword", "cursor:zoom_factor", root.screenZoom.toString()]);
|
Quickshell.execDetached(["hyprctl", "keyword", "cursor:zoom_factor", root.screenZoom.toString()]);
|
||||||
|
|||||||
@@ -70,7 +70,6 @@ Scope {
|
|||||||
|
|
||||||
function toggle(): void {
|
function toggle(): void {
|
||||||
GlobalStates.sidebarRightOpen = !GlobalStates.sidebarRightOpen;
|
GlobalStates.sidebarRightOpen = !GlobalStates.sidebarRightOpen;
|
||||||
if(GlobalStates.sidebarRightOpen) Notifications.timeoutAll();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function close(): void {
|
function close(): void {
|
||||||
@@ -79,7 +78,6 @@ Scope {
|
|||||||
|
|
||||||
function open(): void {
|
function open(): void {
|
||||||
GlobalStates.sidebarRightOpen = true;
|
GlobalStates.sidebarRightOpen = true;
|
||||||
Notifications.timeoutAll();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -89,7 +87,6 @@ Scope {
|
|||||||
|
|
||||||
onPressed: {
|
onPressed: {
|
||||||
GlobalStates.sidebarRightOpen = !GlobalStates.sidebarRightOpen;
|
GlobalStates.sidebarRightOpen = !GlobalStates.sidebarRightOpen;
|
||||||
if(GlobalStates.sidebarRightOpen) Notifications.timeoutAll();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
GlobalShortcut {
|
GlobalShortcut {
|
||||||
@@ -98,7 +95,6 @@ Scope {
|
|||||||
|
|
||||||
onPressed: {
|
onPressed: {
|
||||||
GlobalStates.sidebarRightOpen = true;
|
GlobalStates.sidebarRightOpen = true;
|
||||||
Notifications.timeoutAll();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
GlobalShortcut {
|
GlobalShortcut {
|
||||||
|
|||||||
Reference in New Issue
Block a user