feat: open dash only on focused monitor
This commit is contained in:
parent
d9463f5ded
commit
b801e460a4
1 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
||||||
import Quickshell
|
import Quickshell
|
||||||
|
import Quickshell.I3
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
import QtQml
|
import QtQml
|
||||||
|
@ -11,10 +12,10 @@ PanelWindow {
|
||||||
id: homeWindow
|
id: homeWindow
|
||||||
|
|
||||||
property bool animRunning: false
|
property bool animRunning: false
|
||||||
|
property bool focused: I3.monitorFor(homeWindow.screen).focused
|
||||||
|
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
visible: animRunning || NyshState.dashOpen
|
visible: (animRunning || NyshState.dashOpen) && focused
|
||||||
|
|
||||||
focusable: true
|
focusable: true
|
||||||
|
|
||||||
anchors {
|
anchors {
|
||||||
|
|
Loading…
Add table
Reference in a new issue