Bug 341531 - "Informative" task switcher sometimes not horizontally centered (instead: left aligned)
Summary: "Informative" task switcher sometimes not horizontally centered (instead: lef...
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: tabbox (show other bugs)
Version: 5.1.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 343958 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-12-03 19:05 UTC by Kevin Funk
Modified: 2016-11-28 16:05 UTC (History)
3 users (show)

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


Attachments
Screenshot showing the issue (87.09 KB, image/png)
2014-12-03 19:06 UTC, Kevin Funk
Details
Output from "qdbus org.kde.KWin /KWin supportInformation" (5.13 KB, text/plain)
2014-12-04 23:11 UTC, Kevin Funk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Funk 2014-12-03 19:05:35 UTC
See attached screenshot.

Didn't find out what's triggering the bug (yet).

Reproducible: Always
Comment 1 Kevin Funk 2014-12-03 19:06:17 UTC
Created attachment 89824 [details]
Screenshot showing the issue
Comment 2 Thomas Lübking 2014-12-03 19:43:51 UTC
When this happens, please dump "xrandr -q", resp. "qdbus org.kde.KWin /KWin supportInformation" and attach the output here.
(Do you have more than one screen, whether currently attached/activated or not?)
Comment 3 Kevin Funk 2014-12-04 23:10:40 UTC
Just happened again. Yes, just one screen here.

% xrandr -q
Screen 0: minimum 8 x 8, current 1440 x 900, maximum 8192 x 8192
VGA-0 disconnected (normal left inverted right x axis y axis)
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 connected primary 1440x900+0+0 (normal left inverted right x axis y axis) 304mm x 190mm
   1440x900       60.0*+   40.0  
DP-4 disconnected (normal left inverted right x axis y axis)
Comment 4 Kevin Funk 2014-12-04 23:11:39 UTC
Created attachment 89833 [details]
Output from "qdbus org.kde.KWin /KWin supportInformation"
Comment 5 Thomas Lübking 2014-12-05 23:01:43 UTC
No, that's a  dead end :-(

Does it stay in that position or does it center w/ the next invocation?
Comment 6 Kevin Funk 2014-12-06 16:58:40 UTC
It never returns to the center, it will always display on the left side when invoked.

A restart of kwin solves the issue, though.
Comment 7 Rob 2014-12-16 22:27:08 UTC
Excuse me if this isn't helpful, but I thought I would chime in and just mention that I'm also affected by this bug on 5.1.1.
Comment 8 Kevin Funk 2015-03-13 15:25:26 UTC
Still an issue, on 5.2.1
Comment 9 Thomas Lübking 2015-03-13 20:12:21 UTC
Ftr.: this is easily a bug in QML/QtQuick which is supposed to position the window.

It *might* be caused by kwin specific event handling, but i could only imagine a screen size / struts change (adding/removing panels in plasmashell etc.) to be the trigger then.

Any information on a possible (behavioral) cause would be of much help.
Comment 10 Thomas Lübking 2015-03-13 20:22:42 UTC
... or a particular clients title somehow screws the calculateMaxRowWidth() function
-> you might check whether some application/window is always present when this happens.
Comment 11 Ivan Yonov 2015-07-05 12:19:32 UTC
Happens to me too. Voted +1.
Comment 12 Kevin Funk 2015-08-12 07:49:08 UTC
Note: I can no longer reproduce this. For reference, using these versions:
- plasma-desktop 4:5.3.2-0ubuntu4~ubuntu15.04~ppa1
- KF5 5.12.0-0ubuntu1~ubuntu15.04~ppa1
- Qt5 5.4.1+dfsg-2ubuntu4.1

@Ivan: On what versions are you?

I'm urged to mark this as resolved.
Comment 13 Kevin Funk 2015-08-18 10:48:49 UTC
Retracting my last comment... Just happened again. The switcher is aligned to the left.
Comment 14 Martin Flöser 2015-08-18 11:56:16 UTC
maybe related to bug #337790
Comment 15 Kevin Funk 2015-08-18 12:13:43 UTC
Yes. I noticed it happening after connecting/disconnecting an external screen. Don't know exactly when. Might be related to that issue.
Comment 16 Thomas Lübking 2015-08-19 10:39:40 UTC
Git commit f96836b2df46e94dff52d0b26f7b6b01c4cec2ff by Thomas Lübking.
Committed on 19/08/2015 at 10:31.
Pushed by luebking into branch 'Plasma/5.4'.

update SwitcherItem::screenGeometry when showing

not everytime the current screen changes.
a) that pollutes the geometry when the tabbox is invoked
b) it's insufficient for "Active Screen follows mouse" (the default)
c) less overhead (ok: "on multiscreen")
Related: bug 337790
FIXED-IN: 5.4
REVIEW: 124814

M  +2    -1    tabbox/switcheritem.cpp

http://commits.kde.org/kwin/f96836b2df46e94dff52d0b26f7b6b01c4cec2ff
Comment 17 Thomas Lübking 2015-11-04 21:13:58 UTC
*** Bug 343958 has been marked as a duplicate of this bug. ***
Comment 18 Kevin Funk 2016-11-28 15:19:30 UTC
Note: I haven't seen this issue in a while. You may want to close the issue if you think it got fixed...
Comment 19 Martin Flöser 2016-11-28 16:05:59 UTC
Assuming worksforme as of comment #18