KDE integration: Follow the focus Policy
Submitted by Victor Toso
Assigned to Spice Bug List
++++ Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1270914 ++++
Description of problem:
In KDE desktop environment, Virtual Machine Manager/ KDE Desktop allow virtual machine to steal window focus on mouseover. This occurs in spite of Sysconfig settings being explicitly set to the most restrictive levels available to prevent such occurrence.
Example: In KDE, set the following two parameters:
System Settings > Window Behavior > Focus > Activating Windows > Policy > Click to Focus
System Settings > Window Behavior > Focus > Activating Windows > Focus Stealing Prevention = HIGH
With these settings, the active window should not change without a mouse click. What actually happens is that if the mouse should drift from a window in which the user is working (such as a spreadsheet) into the VM window, while the user is typing data into the spreadsheet, the input data is misdirected into the virtual machine. This misdirection of input data / theft of focus occurs when the mouse cursor drifts across the window boundary into the VM window and "hovers" there while the user is typing into the other window. Focus should not change on a "hover" event when the policy is set to "click to focus" and focus stealing prevention is set to "high".
Version-Release number of selected component (if applicable): KDE 4.14.9 Virtual Machine Manager 1.1.0
All the time. Driving me crazy.
Steps to Reproduce:
- Set Activating Windows Policy to "Click to Focus"
- Set Focus Stealing Prevention to High
- Open a virtual machine
- Work in a different window (ie: type into a spreadsheet)
- Notice that focus switches from the active window to VM when mouse slips across the VM window boundary, such that input text is misdirected into the VM.
Unexpected change of focus.
Preservation of focus.