<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>142040</bug_id>
          
          <creation_ts>2007-02-21 22:24:54 +0000</creation_ts>
          <short_desc>&quot;Focus follows mouse&quot; does not change focus after clicking away a menu</short_desc>
          <delta_ts>2012-03-18 21:54:52 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>kwin</product>
          <component>core</component>
          <version>unspecified</version>
          <rep_platform>Ubuntu</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>munlinux</reporter>
          <assigned_to name="KWin default assignee">kwin-bugs-null</assigned_to>
          <cc>echidnaman</cc>
    
    <cc>finex</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>510661</commentid>
    <comment_count>0</comment_count>
    <who name="">munlinux</who>
    <bug_when>2007-02-21 22:24:54 +0000</bug_when>
    <thetext>Version:            (using KDE KDE 3.5.5)
Installed from:    Ubuntu Packages

To demonstrate, do e.g. the following:
- Have a konqueror window and konsole window open, but smaller than your desktop.
- Right click on desktop (you get a context menu).
- Move mouse on konqueror, left click (to get rid of the context menu).

Result: you have to click or move mouse away from konqueror and back in order to get focus on konqueror.

The same result is obtained with the following:
- Right click on konsole (you get a context menu).
- Move mouse on konqueror, left click (to get rid of the context menu).

This is not an issue with focus &quot;under mouse&quot; or &quot;focus strictly under mouse&quot;.

This report and bug 81743 share the same topic but seem inverse by content. As I commented on that report, there seem to be different kinds of context menus that behave differently.

(Please also compare the issue reported here with bug 130063.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>516912</commentid>
    <comment_count>1</comment_count>
    <who name="Lubos Lunak">l.lunak</who>
    <bug_when>2007-03-23 15:54:37 +0000</bug_when>
    <thetext>It seems focus changes are not handled properly while/after input grabs.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>516914</commentid>
    <comment_count>2</comment_count>
    <who name="Lubos Lunak">l.lunak</who>
    <bug_when>2007-03-23 15:54:46 +0000</bug_when>
    <thetext>*** Bug 130063 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>647225</commentid>
    <comment_count>3</comment_count>
    <who name="Jonathan Thomas">echidnaman</who>
    <bug_when>2008-09-18 03:24:08 +0000</bug_when>
    <thetext>Still seems to be an issue in KDE4.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1029953</commentid>
    <comment_count>4</comment_count>
    <who name="FiNeX">finex</who>
    <bug_when>2010-10-10 14:33:55 +0000</bug_when>
    <thetext>Confirmed with KDE 4.5.2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1237450</commentid>
    <comment_count>5</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2012-03-17 14:41:33 +0000</bug_when>
    <thetext>Sorry for the delay.

Fix (against kwin git master, but will likely apply on 4.8 as well)
https://git.reviewboard.kde.org/r/104316/

You need to activate an undocumented settings which will get a GUI in 4.9
kwriteconfig --file kwinrc --group Windows --key NextFocusPrefersMouse true</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1237888</commentid>
    <comment_count>6</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2012-03-18 21:54:52 +0000</bug_when>
    <thetext>Git commit 724895e5355e27d0aff8b0eaf55d26c24efc32d3 by Thomas Lübking.
Committed on 17/03/2012 at 15:34.
Pushed by luebking into branch &apos;master&apos;.

handle ungrab crossings for FFM &amp; mouse preference
REVIEW: 104316

M  +5    -3    kwin/events.cpp

http://commits.kde.org/kde-workspace/724895e5355e27d0aff8b0eaf55d26c24efc32d3</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>