Bug 188808 - Checked "show only current screen" option shows maximized applications from other screens
Summary: Checked "show only current screen" option shows maximized applications from o...
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: decorations (other bugs)
Version First Reported In: unspecified
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2009-04-04 15:53 UTC by Frank Scheffold
Modified: 2018-10-27 02:56 UTC (History)
4 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 Frank Scheffold 2009-04-04 15:53:31 UTC
Version:            (using KDE 4.2.2)
OS:                Linux
Installed from:    Unspecified Linux

Hello,
im running Kde 4.2.2 with 2 monitors with different resolutions in xinerama (nvidia driver). For each monitor I have got a widget taskbar configured to show _only_ the applications for the current monitor.
But, when I maximize an application on monitor 1, it is also shown in the taskbar on monitor 2. When the application is not maximized it only shown correctly on the corresponding monitor. In the stasks plasmoid it is the same issue.

If you want, I can send you screenshots for more information or test the patches which fix the issue.
Comment 1 Rob Wouters 2009-04-29 15:33:39 UTC
I can reproduce this bug. Exact same problem.
Comment 2 Marco Martin 2009-05-29 14:35:08 UTC
can't reprodice anymore here, is still present in trunk for anyone?
Comment 3 Frank Scheffold 2009-06-02 20:39:14 UTC
Today I tested it with latest kdesvn-build from trunk. I also couldn't reproduce it.
Comment 4 Aaron J. Seigo 2009-06-05 04:12:50 UTC
... another bug bites the dust! and another one's gone, another one's gone .. another bug bites the dust .. hoo-ha!
Comment 5 Rob Wouters 2009-06-06 05:56:15 UTC
I still have the same problem running 4.3 beta 1 (4.2.89)... Not solved unfortunately :(
Comment 6 Rob Wouters 2009-06-06 06:01:09 UTC
Btw, I just tried setting the kwin borders to 0 and then it works as aspected. A maximized window does not appear on the other taskbar.

When you maximize a screen the borders aren't visible but it seems that they are taken into consideration to determine whether a window is on a particular screen.

Hope the above makes sense, if not let me know and I'll try to clarify.
Comment 7 Rob Wouters 2009-06-06 18:04:31 UTC
I feel like I'm kinda talking to myself here, but I think I figured it out. I went looking through the source code and found this in libs/taskmanager/taskmanager.cpp:

    // for window decos that fudge a bit and claim to extend beyond the
    // edge of the screen, we just contract a bit.
    QRect window = wi.frameGeometry();
    QRect desktop = Kephal::ScreenUtils::screenGeometry(screen);
    desktop.adjust(5, 5, -5, -5);
    return window.intersects(desktop);

As you can see here it only adjusts for borders up to 5. Coincidentally my border was set to 6. Setting it to 5 resolved this bug. I don't know if it makes sense to hard-code the margin 5 here. Maybe there's a way to desktop.adjust() based on the thickness of the window borders.

So steps to reproduce:
1. Make a panel on each monitor with a Task Manager on each panel.
2. Set "Only show tasks from current screen" for both Task Manager Settings.
3. Set KWin borders to 6 or more.
4. Maximize an application on one screen.
5. The application appears on both Task Managers.

Hope this is of any use to anyone :-)
Comment 8 Aaron J. Seigo 2009-06-09 05:02:21 UTC
window borders aren't supposed to lie at all, but they sometimes do and so we allow a small fudge factor there. but if the window manager is saying there are window borders when there aren't, then we have a problem.

this is either a bug in kwin (publishing window frame geometry when there is no frame) or a bug in NETWinInfo::update...
Comment 9 Martin Flöser 2010-12-18 14:01:52 UTC
which window decoration are you using? Do you use the option to show window borders on maximized windows?
Comment 10 Martin Flöser 2013-01-30 16:35:25 UTC
questions from comment #9 not yet answered, required for proper investigation.
Comment 11 Andrew Crouthamel 2018-09-24 02:10:01 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 12 Andrew Crouthamel 2018-10-27 02:56:59 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!