Bug 92468 - KDE integration: Follow the focus Policy
Summary: KDE integration: Follow the focus Policy
Status: RESOLVED MOVED
Alias: None
Product: Spice
Classification: Unclassified
Component: spice-gtk (show other bugs)
Version: unspecified
Hardware: Other All
: medium enhancement
Assignee: Spice Bug List
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-15 10:05 UTC by Victor Toso
Modified: 2018-06-03 10:21 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Victor Toso 2015-10-15 10:05:34 UTC
++++ 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

and

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

How reproducible:

All the time.  Driving me crazy.

Steps to Reproduce:
1. Set Activating Windows Policy to "Click to Focus"
2. Set Focus Stealing Prevention to High
3. Open a virtual machine
4. Work in a different window (ie: type into a spreadsheet)
5. 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.

Actual results:

Unexpected change of focus.

Expected results:

Preservation of focus.

Additional info:
Comment 1 Victor Toso 2015-10-15 10:11:18 UTC
Not sure if this is a gtk bug or a client bug. But as it seems at first that this could be part of desktop-integration in spice-gtk.. so I cloned it here.
Comment 2 GitLab Migration User 2018-06-03 10:21:46 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/spice/spice-gtk/issues/31.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.