[Bug 293734] New: kwin does not honor disableMultihead=true and causes window focus problems

Ferdinand Hübner ferdinand.huebner at gmail.com
Thu Feb 9 18:14:26 GMT 2012


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

           Summary: kwin does not honor disableMultihead=true and causes
                    window focus problems
           Product: kde
           Version: unspecified
          Platform: Gentoo Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: dualhead
        AssignedTo: unassigned-bugs at kde.org
        ReportedBy: ferdinand.huebner at gmail.com


Version:           unspecified (using KDE 4.8.0) 
OS:                Linux

I have a multihead setup with two X screens. When I set disableMultihead=true
in ~/.kde4/share/config/kcmdisplayrc, plasma does not start on the second
screen, but kwin does.

This has various negative side-effects. When an application (on screen 0)
spawns a modal dialog, that dialog gets focused. Once I close the dialog the
focus is not returned to the spawning window. In fact, no window on screen 0
gets focus at all. This is incredibly annoying with keyboard-intense
applications that spawn a lot of dialogs, like kmymoney. You have to manually
focus the application before you can start typing again. 
This does not happen on gtk-apps like google chrome. If you open the "About"
dialog in chrome and close it, the focus returns to chrome.

I am using "click to focus" and "focus stealing prevention low". Setting it to
"focus follows mouse" and/or "focus stealing prevention high" has no effect.

If I open an xterm on screen 1, switch to screen 0, start dolphin, open and
close its "About" dialog, the xterm on screen 1 gets focused.

The alt+tab switch seems to be affected, too. Closing a modal dialog and
pressing alt+tab does not cycle through active windows on screen 0. My guess is
that it tries to cycle through the windows on screen 1 for no apparent reason.

My current workaround is to kill the secon kwin process in a startup script
(and hope that I kill the one on screen 1). When I do that, the focus is always
returned to the application that spawned the modal dialog.

This issue appeared sometime around 4.7.1. I had no such problems with older
versions. A fresh user profile does not change the behavior either.

Reproducible: Always

Steps to Reproduce:
- Start KDE on a system with two X screens
- Start an xterm on display 1 
- Start dolphin on display 0
- Open the "About" dialog in dolphin
- Close the "About" dialog
- The xterm on screen 1 gains focus

Actual Results:  
The window focus is on the wrong display

Expected Results:  
Dolphin on display 0 should regain focus

Kernel 3.2.1-gentoo-r2, x86, nvidia binary driver 290.10, GeForce 9500GT

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Unassigned-bugs mailing list