shell icon indicating copy to clipboard operation
shell copied to clipboard

Deadzones / Invisible popups

Open thaemisch opened this issue 1 year ago • 13 comments

In the center of each side of the screen, where the popups are, i have dezadzones where i cannot click stuff. Examples, particularily annoying: Spotify: Previous, Pause/Play/Next are entirely covered and unusable Browser: Cannot click/close tabs that are in the middle of the screen

I tried looking in the code where this sort of stuff is configured, but i could not find it.

thaemisch avatar Jun 09 '25 20:06 thaemisch

I did btw manage to remove the active window preview on the left (the feature does not make any sense to me on a tiling window manager), but i still get the deadzone - i am confusion

thaemisch avatar Jun 09 '25 20:06 thaemisch

@thaemisch you can still control spotify using pavu or the top dash.

Agree with rest. similar issue.

dalpax avatar Jun 09 '25 20:06 dalpax

Are you running quickshell in wayland? You can run it in wayland using the env var QT_QPA_PLATFORM=wayland

soramanew avatar Jun 10 '25 02:06 soramanew

@soramanew i am now, but i still get the issue

thaemisch avatar Jun 10 '25 06:06 thaemisch

Hey, I had the same issue and came here looking for a fix and unfortunately didn't, so I dug in myself. The issue is modules/Drawers/Exclusions.qml. From what I see, the only needed one is the one with anchors.left: true (it'll look very broken otherwise!). The others seem to decrease the gaps a tiny bit, bit I would rather that then a dead zone. Commenting out the other 3 "fixed" the issue.

msix29 avatar Jun 10 '25 10:06 msix29

@msix29 nice, thank you so much

My modules/drawers/Exlusions.qml now looks like this:

pragma ComponentBehavior: Bound

import "root:/widgets"
import "root:/config"
import Quickshell
import QtQuick

Scope {
    id: root

    required property ShellScreen screen
    required property Item bar

    ExclusionZone {
        anchors.left: true
        exclusiveZone: root.bar.implicitWidth - BorderConfig.thickness
    }

    /*ExclusionZone {
        anchors.top: true
    }

    ExclusionZone {
        anchors.right: true
    }

    ExclusionZone {
        anchors.bottom: true
    }
    */

    component ExclusionZone: StyledWindow {
        screen: root.screen
        name: "border-exclusion"
        exclusiveZone: BorderConfig.thickness
    }
}

with - BorderConfig.thickness added for equal gaps on all sides

I then increased gaps_outby 10 to get the original gap size.

thaemisch avatar Jun 10 '25 11:06 thaemisch

@thaemisch Hi. Do you know why caelestial-shell do this deadzones? Your solution works. But center of left side it still here. I really try find root of the problem, but can't. Maybe you did?

Moguchiu avatar Jun 14 '25 18:06 Moguchiu

@Moguchiu i created a PR ^^^ that fixes this issue

thaemisch avatar Jun 14 '25 19:06 thaemisch

@thaemisch Oh i see. Thanks. So do you know why deathzones appear in a first place? Strange bug in quickshells or some .qml setting cause this?

Moguchiu avatar Jun 14 '25 19:06 Moguchiu

@thaemisch better use implicitWidth and imlicitHeight instead of regular width and height. Because of warnings:

 WARN scene: QML ExclusionZone (parent or ancestor of WlrLayershell) at **/modules/drawers/Exclusions.qml[35:30]: Setting `height` is deprecated. Set `implicitHeight` instead.
  WARN scene: QML ExclusionZone (parent or ancestor of WlrLayershell) at **/modules/drawers/Exclusions.qml[35:30]: Setting `width` is deprecated. Set `implicitWidth` instead.

Moguchiu avatar Jun 14 '25 19:06 Moguchiu

Fixed, thank you!

thaemisch avatar Jun 14 '25 19:06 thaemisch

So do you know why deathzones appear in a first place? Strange bug in quickshells or some .qml setting cause this?

i have no idea, this is all very strange. not everyone has this bug, so im curious to see if this breaks something on a config where it was not an issue.

Could obviously not test this.

thaemisch avatar Jun 14 '25 19:06 thaemisch

@thaemisch So far your solution don't brake anything in my config, and other warnings or errors don't appear. I was having this deadzones when activate caelestial-shell for the first time. I use nixos, so I was thinking this happening because of that and starting tweaking .qml configs of shell. I rid of all things which I don't use but deadzones was still here. But now they finally gone. Hooray. Actually I think they appear because of something small and stupid. It always like this. And that why somebody will find why by accident.

Moguchiu avatar Jun 14 '25 20:06 Moguchiu