Bug 389215 - With compositing off, Panel doesn't fit correctly in the bottom of the screen, breaking Fitt's law
Summary: With compositing off, Panel doesn't fit correctly in the bottom of the screen...
Status: RESOLVED DOWNSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: Panel (show other bugs)
Version: 5.11.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: usability
: 390662 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-01-19 17:41 UTC by mac12
Modified: 2020-12-17 19:50 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
an example of this "issue" (32.22 KB, image/png)
2018-01-19 17:41 UTC, mac12
Details
Another occurrence of the issue (16.64 KB, image/png)
2018-01-22 23:11 UTC, Nate Graham
Details
Corners of the taskbar (548 bytes, image/png)
2018-01-22 23:21 UTC, Cqoicebordel
Details
set Opengl 2.0 to fix the issue (127.96 KB, image/png)
2018-02-07 19:00 UTC, mac12
Details
output of xprop (5.99 KB, text/plain)
2018-02-16 17:29 UTC, Cqoicebordel
Details
add ~/.cache/plasma-svgelements-breeze-dark_v5.30 (157.63 KB, text/plain)
2018-02-16 17:31 UTC, Cqoicebordel
Details
still present on 5.12.4 (1.34 MB, video/mp4)
2018-04-28 12:39 UTC, mac12
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mac12 2018-01-19 17:41:15 UTC
Created attachment 109993 [details]
an example of this "issue"

I've had this bug since i accidentally deleted "the default panel" and i have added a new one(default panel again).
Panel seems not to be at the bottom of the screen, its like there's an offset of some pixel(moving the panel above and then bottom again doesn't fix).

See attached screenshot.
Comment 1 Kai Uwe Broulik 2018-01-22 08:56:40 UTC
Did you try with another desktop theme, preferably Breeze? Do you have compositing on or off?
Comment 2 Nate Graham 2018-01-22 23:09:45 UTC
Got another report of this issue: https://pointieststick.wordpress.com/2018/01/20/this-week-in-usability-and-productivity-part-2/comment-page-1/#comment-167

The reporter originally had a single pixel in the corner from the desktop, but after moving the panel, now has the same issue outlined here--there's a line of pixels from the desktop on the bottom of his panel. He can reproduce the issue using KWin or OpenBox as the WM and is using the standard Breeze theme.
Comment 3 Nate Graham 2018-01-22 23:11:52 UTC
Created attachment 110061 [details]
Another occurrence of the issue
Comment 4 Cqoicebordel 2018-01-22 23:21:50 UTC
Created attachment 110062 [details]
Corners of the taskbar
Comment 5 Cqoicebordel 2018-01-22 23:23:21 UTC
The attachment 110061 [details] is actually my taskbar. If I try to move it from the bottom to a side, and then back, this gap happens. And only killing and restarting plasmashell solves the issue.

But without any action from me, the corners of the taskbar seems a little bit rounded, as you can see in attachment 110062 [details]. And that is the bottom left of my screen, so at that pixel, the launcher isn't accessible.
Comment 6 mac12 2018-01-23 14:47:29 UTC
(In reply to Kai Uwe Broulik from comment #1)
> Did you try with another desktop theme, preferably Breeze? Do you have
> compositing on or off?

Sorry but i'm not able again to reproduce the issue, but as other said it's not caused by those.
I have no idea of how i fixed, but maybe this issue is random.
PS
when i was having this problems, a reboot didn't fix.
Comment 7 mac12 2018-02-07 17:05:44 UTC
I'm experiencing this bug again, if someone need to test anything or get a log please ask me
Comment 8 David Edmundson 2018-02-07 17:10:44 UTC
Can you *move* but don't delete:

~/.cache/plasma_theme_default_v5.30.kcache

if that fixes it, can you upload your old version.

Your v5.N numbers might be different, also a different name if you use a different theme.
Comment 9 mac12 2018-02-07 17:17:35 UTC
I have cut to another directory, now i have to logoff/restart to try if that fixes?
Comment 10 mac12 2018-02-07 17:19:54 UTC
(In reply to mac12 from comment #9)
> I have cut to another directory, now i have to logoff/restart to try if that
> fixes?

Ok file was automatically recreated, but issue is not fixed, i have to reboot?
Comment 11 David Edmundson 2018-02-07 17:20:18 UTC
yes.

or from a console

kquitapp5 plasmashell
plasmashell
Comment 12 mac12 2018-02-07 17:22:32 UTC
(In reply to David Edmundson from comment #11)
> yes.
> 
> or from a console
> 
> kquitapp5 plasmashell
> plasmashell

Tried with kquitapp5, bug still there, now i try rebooting but i don't think will help
Comment 13 David Edmundson 2018-02-07 17:25:31 UTC
I probably phrased that badly.

Can you quit plasma
move the file
start plasma


if it saves what it had in ram, then we're not testing anything.
Comment 14 mac12 2018-02-07 17:29:20 UTC
(In reply to David Edmundson from comment #13)
> I probably phrased that badly.
> 
> Can you quit plasma
> move the file
> start plasma
> 
> 
> if it saves what it had in ram, then we're not testing anything.

Sorry, i didn't uderstand.
I've quitted using kquitapp5 plasmashell, cut the file to another directory and then restarted, but still there.
Comment 15 David Edmundson 2018-02-07 17:35:31 UTC
Oh ok, then it's not the issue I expected..
Comment 16 Cqoicebordel 2018-02-07 18:48:22 UTC
Just for info, I destroyed my home partition today, so I had a new home folder created from scratch, and this bug was present. The screenshot I shared was in Breeze dark, and with a fresh home, it was Breeze light. In both case the issue was present.
Comment 17 mac12 2018-02-07 18:58:50 UTC
I've found the source of bug: OpenGL 3.1
After setting 2.0 as default compositor issue was fixed.
(and after re-setting it to 3.1 issue wasn't here, so probably its random)
Comment 18 mac12 2018-02-07 19:00:41 UTC
Created attachment 110415 [details]
set Opengl 2.0 to fix the issue
Comment 19 David Edmundson 2018-02-07 19:01:34 UTC
yeah, we've only seen this when the panel is in non-composited mode
Comment 20 mac12 2018-02-07 19:26:04 UTC
(In reply to David Edmundson from comment #19)
> yeah, we've only seen this when the panel is in non-composited mode

And in fact opengl 2.0 is the default as i remember, so this is why this issue is not widespread.

Hoewer, now i can't test anything because i have fixed, i will wait until i get it again.
Prepare a list of things to try :D
Comment 21 Nate Graham 2018-02-16 15:05:22 UTC
Got another report of this: https://www.reddit.com/r/kde/comments/7xxtqd/why_does_my_panel_suddenly_have_a_wierd_gap/
Comment 22 David Edmundson 2018-02-16 16:31:54 UTC
>Got another report of this
Please don't do that.

If the user wants to get it fixed, send him here. I don't go the other way.
Comment 23 David Edmundson 2018-02-16 16:51:22 UTC
To expand on what I'm 90% sure the problem is.

We have a different FrameSVG used for when we have compositing or not.
The glitches have only been reported (I think) since the big FrameSVG refactor.

Something gets glitchy only with the opaque versions, and only here in the panel.
Normally a cache clear seems to fix it (though apparently not for OP) 

--

if anyone has this please send:

output of xprop (then clicking on panel)
their ~/.cache/plasma-svgelements-whateverIsRelevant
Comment 24 Cqoicebordel 2018-02-16 17:29:23 UTC
Created attachment 110726 [details]
output of xprop
Comment 25 Cqoicebordel 2018-02-16 17:31:05 UTC
Created attachment 110727 [details]
add ~/.cache/plasma-svgelements-breeze-dark_v5.30

As asked, I added my xprop output and the svgelements. I'm available to upload any files you need.
Comment 26 Nate Graham 2018-02-19 17:57:54 UTC
*** Bug 390662 has been marked as a duplicate of this bug. ***
Comment 27 Nate Graham 2018-03-09 21:02:35 UTC
FWIW, in Plasma 5.12.3, I can now reproduce this 100% on demand simply by turning off compositing. So that supports your theory, David.
Comment 28 mac12 2018-04-28 12:39:10 UTC
Created attachment 112294 [details]
still present on 5.12.4

Now i have this issue at every reboot, to fix i have simply to set opengl 2.0, after the issue is fixed until next reboot.
Comment 30 pierrescalade 2019-11-12 20:42:12 UTC
plasmashell 5.17.2 sitll have this issue.
seting OpenGL as the compositor fix the issue.
To make this work without compositor, I've edited `/usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Panel.qml` and commented line 33 (`property alias panelMask: root.mask`)
Comment 31 Nate Graham 2019-11-12 21:27:56 UTC
If you're still having the issue, please re-open the bug. :)

Can you submit a patch on Phabricator, if even just for discussion purposes? See https://community.kde.org/Infrastructure/Phabricator for instructions.
Comment 32 pierrescalade 2019-11-15 21:52:32 UTC
Thanks for your reply,
I only get this issue when using the 'Arc Dark' Global theme.
With the 'Breeze' theme I don't get this issue.

I'll first report to the 'Arc Dark' team. 
xRef: https://github.com/PapirusDevelopmentTeam/arc-kde/issues/76
Comment 33 Nate Graham 2020-12-17 19:50:14 UTC
Seems like this is a theme-specific issue.