Bug 303135 - Konsole stays on top of other windows on secondary monitor
Summary: Konsole stays on top of other windows on secondary monitor
Status: RESOLVED DUPLICATE of bug 296076
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 4.8.4
Platform: Fedora RPMs Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
Depends on:
Reported: 2012-07-07 05:17 UTC by Marcus U
Modified: 2012-07-09 00:16 UTC (History)
0 users

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

xprop output for the offending console window (48.97 KB, text/plain)
2012-07-08 00:40 UTC, Marcus U

Note You need to log in before you can comment on or make changes to this bug.
Description Marcus U 2012-07-07 05:17:14 UTC
When Konsole and other applications are on the secondary monitor, I can't bring a window on top of the Konsole window by clicking it in the task bar or clicking its title bar (when the Konsole window is not maximized) - the Konsole window behaves as if 'Keep Above Others' were enabled (it is not). However, middle-clicking on the title bar lowers the Konsole window correctly. Disabling/enabling compositing and having any of the windows maximized/minimized made no difference. This is a very peculiar glitch and is at least in my cases reproducible nearly 100% of the time (I did a lot of testing and I caught one instance where it suddenly worked normally, however, restoring and maximizing the Konsole window brought the bug back alive). It also appears to be reproducible only if more than half of the window is on the secondary monitor (I did all testing by eye but it appears to be exactly half) - if more than half of it is on the primary monitor, everything works normally, but if more than half of it lies on the secondary monitor, the bug is observable on both monitors (that is, clicking an application in the task bar or its title bar fails to bring it on the top of the Konsole window regardless of which monitor it is on). Also note that it only fails to bring the application above the Konsole window - the window appears above all other windows and is correctly activated.

Reproducible: Always

Steps to Reproduce:
1. Start Konsole and any selection of other applications.
2. Place the Konsole window such that more than half of it lies on the secondary monitor.
3. Have the Konsole window on the top.
4. Try to bring any window to the top of the Konsole window by clicking its title bar or the respective entry in the task bar.
Actual Results:  
The window is not raised above the Konsole window (but is raised above all other winows); the Konsole window stays on top.

Expected Results:  
The window appears above the Konsole window.

Using two monitors (1440x900 on the left, 1366x768 on the right) on one X screen - no xinerama or anything of the sort.
Comment 1 Thomas Lübking 2012-07-07 09:54:46 UTC
Do you happen to have another fullscreen konsole on another virtual desktop?
In that case it'd be bug #296076

Otherwise it sounds like either bug #261799 or bug #293265 but both should be fixed in 4.8.4

In any case it will *most* likely be related to a second konsole window so it's very important to describe your setup regarding them, thanks.
Comment 2 Marcus U 2012-07-07 13:40:16 UTC
I did indeed have a Konsole instance in full screen mode - though that was on another activity, not a virtual desktop (only using one). Anyway, the bug indeed disappeared when I exited full screen mode, only to come back again once I switched to full screen again. However, the bug only appears when that particular Konsole instance is in fullscreen mode - I tried entering full screen on several different instances of Konsole (as well as Konqueror and Okular) on different activities, but everything worked as it should. Also, when exiting fullscreen on the offending instance, I noticed that for some reason it no longer has a border or titlebar, as if KWin simply "died" on that particular instance (though I can still drag it around using alt and maximising/restoring etc. work fine when I right-click the window's taskbar entry). I didn't close the offender yet in case I need to do any further tests.
Comment 3 Thomas Lübking 2012-07-07 14:52:58 UTC
I'd say it's an outcome of bug #296076 (desktop or activity doesn't matter, they suffer from the same defect)

The absent titlebar could either derive from a kwin internal state or an application request or an altered window type. Ideally run "xprop > weird_konsole.props" and click the window when the cursor turns into a cross. Then attach the file here.

I'll however mark it a dupe since the window should loose the fullscreen state with the focus and then no longer be on top of the stack (dragging its siblings with it)

This is however unfortunately not a trivial change and will target 4.10

*** This bug has been marked as a duplicate of bug 296076 ***
Comment 4 Marcus U 2012-07-08 00:40:03 UTC
Created attachment 72359 [details]
xprop output for the offending console window
Comment 5 Thomas Lübking 2012-07-08 20:52:23 UTC
Thanks - the prop is unspectacular.
However, the window is maximized, please check
kreadconfig --file kwinrc --group Windows --key BorderlessMaximizedWindows
Comment 6 Marcus U 2012-07-09 00:16:02 UTC
That prints false

However, not sure if relevant, but the border is not displayed even when the window is not maximized.