gerritdevriese / kzones

KDE KWin Script for snapping windows into zones
https://store.kde.org/p/1909220
GNU General Public License v3.0
240 stars 14 forks source link

Can't disable OSD #9

Closed SirYaro closed 1 year ago

SirYaro commented 1 year ago

It seems to be some issue with OSD functionality.

When I drag any window, script shows osd with configured layout (default one in my case), after I drop window in the designated zone OSD stays enabled. I still can move windows behind the OSD (if I guess right where they are) and attached them to the zones, but no matter, I do OSD stay on. I need to kill a whole kwin session to get rid of it.

kwin shortcut "toggle OSD" enable OSD but for unknown reason is unable to disable it.

Also, after I enable kzones script, a black rectangle (approx 10x2cm) appears in the left top corner of the screen. It stays there until I disable script or enable somehow OSD.

I know that most likely it's not enough to find out what's wrong. But if you tell me how to provide you more data, I'm more than happy to do so.

Operating System: KDE neon 5.25 KDE Plasma Version: 5.25.5 KDE Frameworks Version: 5.98.0 Qt Version: 5.15.6 Kernel Version: 5.15.0-48-generic (64-bit) Graphics Platform: X11 Processors: 12 × AMD Ryzen 5 3600X 6-Core Processor Memory: 62.7 GiB of RAM Graphics Processor: AMD DIMGREY_CAVEFISH

gerritdevriese commented 1 year ago

Can you restart KWin in a terminal and take a look if you see any errors while this is happening?

kwin_x11 --replace & disown
SirYaro commented 1 year ago

It doesn't look like much for me, but maybe you'll read more out of this:

kwin_x11 --replace & disown
[1] 74384
yaro@yaro-desktop2:~$ kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5127:46: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5129:48: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5131:48: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5135:47: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5137:46: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5145:48: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5149:46: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5151:46: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5155:45: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5158:46: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: inet:224:50: unrecognized keysym "XF86FullScreen"
Warning: found huge icon. The icon data may be ill-encoded. (1200 x 1200)
Module 'org.kde.kwin.decoration' does not contain a module identifier directive - it cannot be protected from external registrations.
qml: KZones: Reading config...
QQmlExpression: Expression file:///home/yaro/.local/share/kwin/scripts/kzones/contents/ui/main.qml:416:13 depends on non-NOTIFYable properties:
    KWin::X11Window::rect
    KWin::X11Window::clientSize
qml: KZones: Config loaded: {"rememberWindowGeometries":true,"alwaysShowLayoutName":false,"pollingRate":100,"zoneTarget":1,"targetMethod":0,"handleUnitPercent":true,"handleUnitPixels":false,"handleSize":100,"enableDebugMode":true,"filterMode":0,"filterList":"","fadeDuration":150,"osdTimeout":500,"layouts":[{"name":"Layout 1","padding":0,"zones":[{"name":"1","x":0,"y":0,"height":100,"width":25},{"name":"2","x":25,"y":0,"height":100,"width":50},{"name":"3","x":75,"y":0,"height":100,"width":25}]}],"alternateIndicatorStyle":false,"invertedMode":false}
QQmlExpression: Expression file:///home/yaro/.local/share/kwin/scripts/kzones/contents/ui/main.qml:416:13 depends on non-NOTIFYable properties:
    KWin::X11Window::rect
    KWin::X11Window::clientSize
qml: KZones: Ready!
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 3783, resource id: 180355083, major code: 18 (ChangeProperty), minor code: 0
file:///home/yaro/.local/share/kwin/scripts/kzones/contents/ui/main.qml:471: TypeError: Cannot read property 'caption' of null
file:///home/yaro/.local/share/kwin/scripts/kzones/contents/ui/main.qml:410: TypeError: Cannot read property 'width' of null
file:///home/yaro/.local/share/kwin/scripts/kzones/contents/ui/main.qml:418: TypeError: Cannot read property 'rect' of null
file:///home/yaro/.local/share/kwin/scripts/kzones/contents/ui/main.qml:429: TypeError: Cannot read property 'geometry' of null
file:///home/yaro/.local/share/kwin/scripts/kzones/contents/ui/main.qml:440: TypeError: Cannot read property 'geometry' of null
qml: KZones: Client activated: spectacle (zone -1)
QQmlExpression: Expression file:///home/yaro/.local/share/kwin/scripts/kzones/contents/ui/main.qml:416:13 depends on non-NOTIFYable properties:
    KWin::X11Window::rect
    KWin::X11Window::clientSize
file:///home/yaro/.local/share/kwin/scripts/kzones/contents/ui/main.qml:471: TypeError: Cannot read property 'caption' of null
file:///home/yaro/.local/share/kwin/scripts/kzones/contents/ui/main.qml:410: TypeError: Cannot read property 'width' of null
file:///home/yaro/.local/share/kwin/scripts/kzones/contents/ui/main.qml:418: TypeError: Cannot read property 'rect' of null
file:///home/yaro/.local/share/kwin/scripts/kzones/contents/ui/main.qml:429: TypeError: Cannot read property 'geometry' of null
file:///home/yaro/.local/share/kwin/scripts/kzones/contents/ui/main.qml:440: TypeError: Cannot read property 'geometry' of null
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 4813, resource id: 182452230, major code: 19 (DeleteProperty), minor code: 0
qml: KZones: Client activated: systemsettings (zone 0)
QQmlExpression: Expression file:///home/yaro/.local/share/kwin/scripts/kzones/contents/ui/main.qml:416:13 depends on non-NOTIFYable properties:
    KWin::X11Window::rect
    KWin::X11Window::clientSize
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 4832, resource id: 182452230, major code: 19 (DeleteProperty), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 4833, resource id: 182452230, major code: 18 (ChangeProperty), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 4834, resource id: 182452230, major code: 19 (DeleteProperty), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 4835, resource id: 182452230, major code: 19 (DeleteProperty), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 4836, resource id: 182452230, major code: 19 (DeleteProperty), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 4837, resource id: 182452230, major code: 7 (ReparentWindow), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 4838, resource id: 182452230, major code: 6 (ChangeSaveSet), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 4839, resource id: 182452230, major code: 2 (ChangeWindowAttributes), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 4840, resource id: 182452230, major code: 10 (UnmapWindow), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 4926, resource id: 182452272, major code: 18 (ChangeProperty), minor code: 0

yaro@yaro-desktop2:~$ 
gerritdevriese commented 1 year ago

Hmm. nothing out of the ordinary in your logs.

To be completely honest, I have no idea why you're getting this behavior. I cannot replicate this on a fresh KDE neon VM (same version as yours)

Have you done any special modifications to your system that might be causing this? Does this also happen when using Wayland?

SirYaro commented 1 year ago

It seems there is something messed up within my KDE profile. :) I made a new user account and tried again with it. It worked fine straight away.

My apologies for wasting your time, Gerrit.

gerritdevriese commented 1 year ago

No worries, glad to hear that 😊