https://bugs.kde.org/show_bug.cgi?id=512487

--- Comment #1 from Eugene <[email protected]> ---
It looks I've got some understanding why this happening.
I've updated libtaskmanager/taskfilterproxymodel.cpp the routine "bool
TaskFilterProxyModel::acceptsRow(int sourceRow) const"
There is a check:
```
// Filter by screen.
  if (d->filterByScreen && d->screenGeometry.isValid()) {
    const QRect &screenGeometry =
        sourceIdx.data(AbstractTasksModel::ScreenGeometry).toRect();

    if (screenGeometry.isValid() && screenGeometry != d->screenGeometry) {
       // I've added this qDebug:
       qDebug() << "task (" << appName << ", " << windowTitle
               << ") doesn't match screen: " << d->screenGeometry
               << "; screenGeometry:" << screenGeometry
               << ", isValid():" << screenGeometry.isValid();
       return false;
    }
  }
```
I have two displays:
2560x1440 left of 5120x1440

So right after reloading/starting plasma everything works fine:
if I disconnect the 2560x1440 display task manager on the 5120x1440 shows all
the windows.
However if I go suspend/resume my GNU/Linux box the next time I disconnect
2560x1440 this check fails for all the windows this way:
```
veebr 16 22:00:06 virgil plasmashell[888859]: task ( "Konsole" ,  "mc <..> —
Konsole" ) doesn't match screen:  QRect(2560,0 5120x1440) ; screenGeometry:
QRect(0,0 5120x1440) , isValid(): true
```
So all the applications have a the correct screenGeometery QRect(0,0
5120x1440), however in the context of TaskFilterProxyModel (d->screenGeometry)
the current screen geometry is QRect(2560,0 5120x1440) that is wrong.

I'm not sure whether this is a bug in libtaskmanager or in WM, need more time
for investigation, but right now I just have no free time:( 
Would be grateful if someone who knows could help me.
Thank you!

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to