Bug 371671 - Panel won't auto-hide after enabling/disabling compositing
Summary: Panel won't auto-hide after enabling/disabling compositing
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: Panel (show other bugs)
Version: 5.8.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL: https://dl.dropboxusercontent.com/u/1...
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-25 17:11 UTC by xmakerenx
Modified: 2020-12-18 10:12 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description xmakerenx 2016-10-25 17:11:52 UTC
I am using archlinux 4.8.4-1-ARCH and plasma 5.8.2, 
after enabling/disabling compositing with kwin panels that are set to auto-hide will remain visible instead of auto-hiding.

Reproducible: Always

Steps to Reproduce:
1. start a plasma 5 session
2. set a panel to auto-hide
3. enable/disable compositing

Actual Results:  
panel remain visible and won't auto-hide again until passing the mouse on it

Expected Results:  
panel should reshow itself for a sec after enabling/disabling compositing and than auto-hide.
Comment 1 David Edmundson 2016-10-25 20:26:19 UTC
Can you run "xprop" and click on the panel please.
Comment 2 xmakerenx 2016-10-25 20:37:57 UTC
_KDE_NET_WM_ACTIVITIES(STRING) = "00000000-0000-0000-0000-000000000000"
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_CHANGE_DESKTOP
WM_STATE(WM_STATE):
                window state: Normal
                icon window: 0x0
_NET_WM_STATE(ATOM) = 
_NET_WM_USER_TIME(CARDINAL) = 158295926
_KDE_NET_WM_SHADOW(CARDINAL) = 0, 0, 0, 33587727, 0, 33587728, 0, 0, 0, 1, 1, 1
_NET_WM_STRUT(CARDINAL) = 0, 0, 0, 0
_NET_WM_STRUT_PARTIAL(CARDINAL) = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
_KDE_SLIDE(_KDE_SLIDE) = 0xffffffff, 0x3
_KDE_NET_WM_USER_CREATION_TIME(CARDINAL) = 74413
_NET_WM_DESKTOP(CARDINAL) = 4294967295
_KDE_NET_WM_BACKGROUND_CONTRAST_REGION(_KDE_NET_WM_BACKGROUND_CONTRAST_REGION) = 0x3f1ed741, 0xbd73d3a2, 0xbd73d3a2, 0x0, 0xbe4d0fe8, 0x3ef5a102, 0xbe4d0fe8, 0x0, 0xbca59c07, 0xbca59c07, 0x3f28e79b, 0x0, 0x3f4cccce, 0x3f4cccce, 0x3f4cccce, 0x3f800000
_KDE_NET_WM_BLUR_BEHIND_REGION(CARDINAL) = 
_NET_WM_ICON(CARDINAL) =        Icon (16 x 16):
                        

        Icon (22 x 22):


XdndAware(ATOM) = BITMAP
WM_NAME(STRING) = 
_NET_WM_NAME(UTF8_STRING) = "Plasma"
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x3, 0x4, 0x0, 0x0, 0x0
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_DOCK
_XEMBED_INFO(_XEMBED_INFO) = 0x0, 0x1
WM_CLIENT_LEADER(WINDOW): window id # 0x2000014
WM_HINTS(WM_HINTS):
                Client accepts input or input focus: False
                Initial state is Normal State.
_NET_WM_PID(CARDINAL) = 668
_NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 33554486
WM_CLASS(STRING) = "plasmashell", "plasmashell"
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
WM_NORMAL_HINTS(WM_SIZE_HINTS):
                user specified location: 2960, 1028
                user specified size: 1920 by 52
                program specified minimum size: 1920 by 52
                program specified maximum size: 1920 by 52
                window gravity: Static

**it also  drew some icons in different sizes which I cut out.
Comment 3 Bhushan Shah 2016-10-26 04:15:13 UTC

*** This bug has been marked as a duplicate of bug 370413 ***
Comment 4 Bhushan Shah 2016-10-26 04:17:18 UTC
Main bug here is, panel gets moved by 1 pixel when enabling/disabling compositing and hence panel autohide stuff doesn't work.
Comment 5 Bhushan Shah 2016-10-26 04:24:44 UTC
Erm, didn't mean to set it as duplicate, but to link it up with https://bugs.kde.org/show_bug.cgi?id=370413
Comment 6 xmakerenx 2016-10-26 12:41:34 UTC
I doubt the panel gets moved by one pixel as I have checked and moving it by one pixel is somewhat noticeable.
Moreover I wrote this simple script to check the panel position 
#!/bin/bash 
while [  1 ]; do
    xwininfo -id 0x2000035 | grep upper # replace 0x2000035 with your panel id
done
and ran it while I was enabling/disabling compositing.
I than sent the output of the script to a file and later run this 2 commands
    wc -l data.txt # divide the number here by 4
    grep 1028 data.txt | wc -l
and the numbers from both commands match which seem to indicate the panel didn't move even for an instant.

BTW not sure if I was clear but the panel will auto-hide if I pass the mouse on it after enabling/disabling compositing.
Comment 7 Justin Zobel 2020-12-18 03:55:17 UTC
I've just tested this on 5.20.4 and I can't replicate the issue, can you please test.

I have set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved/worksforme" when you respond, thank you.
Comment 8 xmakerenx 2020-12-18 10:12:36 UTC
I have tested the issue now as well and I can't reproduce it now either.
I am using Plasma 5.20.4 now.