aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/shell.qml
blob: abddf360893d7b49c48fe3af25263d911b3e5091 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (C) 2026 Danilo M. <danix@danix.xyz>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

import Quickshell
import Quickshell.Wayland

ShellRoot {
    // Quickshell exits once no window is visible, and this shell's drawer is
    // closed most of the time. A 1x1 transparent window with an empty mask
    // holds the process open without drawing anything or catching a click.
    // See AGENTS.md: without it the shell loads, reports no error, and quits.
    PanelWindow {
        visible: true
        implicitWidth: 1
        implicitHeight: 1
        color: "transparent"
        exclusionMode: ExclusionMode.Ignore
        mask: Region {}
        WlrLayershell.keyboardFocus: WlrKeyboardFocus.None
    }
}