<?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>80897</bug_id>
          
          <creation_ts>2004-05-04 16:24:37 +0000</creation_ts>
          <short_desc>focus under mouse - focus stealing preventinon doesn&apos;t work</short_desc>
          <delta_ts>2013-09-24 19:58:01 +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>general</component>
          <version>unspecified</version>
          <rep_platform>Debian testing</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>wishlist</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="arne anka">kde-bugs</reporter>
          <assigned_to name="KWin default assignee">kwin-bugs-null</assigned_to>
          <cc>bkorb</cc>
    
    <cc>brendan</cc>
    
    <cc>brian</cc>
    
    <cc>erkintek</cc>
    
    <cc>kde</cc>
    
    <cc>rlk</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>228774</commentid>
    <comment_count>0</comment_count>
    <who name="arne anka">kde-bugs</who>
    <bug_when>2004-05-04 16:24:37 +0000</bug_when>
    <thetext>Version:            (using KDE KDE 3.2.2)
Installed from:    Debian testing/unstable Packages

the granularity of the &quot;focus stealing prevention level&quot; should be more fine grained:
- if i choose &quot;normal&quot; any opening window grabs the focus -- this is not only annoying but also a security issue as eg passwords you&apos;re just typing appear elsewhere
- level &quot;high&quot; prevents _any_: widow to pup up in the forground, instead the button on the wiondowbar flashes

there should be made a decision whether the user is typing something or not and thus depending on this decision the window should grab the focus or not. used together with &quot;focus under mouse&quot; even the case &quot;i&apos;m just reading and the new window gets the focus :-(&quot; could be managed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>228821</commentid>
    <comment_count>1</comment_count>
    <who name="Lubos Lunak">l.lunak</who>
    <bug_when>2004-05-04 18:07:09 +0000</bug_when>
    <thetext>This is one of the reasons I added extra text to description of the &apos;mouse (strictly) under mouse&apos; policies saying that these policies break several other kwin features. With other focus policies it should work fine. I&apos;ll leave this report open as wishlist, as maybe it&apos;s possible to get focus stealing prevention somehow working even with those policies, but it&apos;s hard enough even with reasonable focus policies.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>321902</commentid>
    <comment_count>2</comment_count>
    <who name="">rlk</who>
    <bug_when>2005-03-07 20:19:18 +0000</bug_when>
    <thetext>I&apos;d like focus stealing to be complete, even with &quot;focus strictly follows mouse&quot;.

For background, I use focus strictly follows mouse, with both auto raise and click raise turned off.  I&apos;d like to have focus stealing entirely disabled, so that the focus is *only* where I choose to move the mouse.  I&apos;m fully aware of what this means, and it&apos;s what I want: if I move the mouse into a window that&apos;s partially obscured, and start typing, my typing will go into that window, and I may be typing blind.  That&apos;s exactly what I want.  Likewise, I don&apos;t want pop up windows to grab the focus under any circumstances.  In fact, I&apos;d like windows to pop up *away* from the mouse where possible if the mouse is over a window.  I prefer focus (strictly) under mouse so that I can entirely defocus.

I&apos;m not certain whether this is exactly the same thing, but whenever a window is popped up, the desktop is forcibly switched out from under me to whichever desktop the window pops up on.  In addition, certain windows (such as those spawned by javaws) always seem to get focus whenever I switch into a desktop containing these windows, even though I&apos;m using focus strictly follows mouse.

What it really boils down to is that I simply don&apos;t want the focus to ever change except by my action, and I want to be able to have no focus in addition to focus on the window of my choice.

Other than alt-tab (which I never use), what other features are broken by focus (strictly or otherwise) under mouse?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>471438</commentid>
    <comment_count>3</comment_count>
    <who name="Lubos Lunak">l.lunak</who>
    <bug_when>2006-09-20 17:03:20 +0000</bug_when>
    <thetext>*** Bug 134330 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>629803</commentid>
    <comment_count>4</comment_count>
    <who name="">bkorb</who>
    <bug_when>2008-07-27 20:12:09 +0000</bug_when>
    <thetext>&quot;wishlist&quot;?
http://www.codinghorror.com/blog/archives/001011.html
http://en.wikipedia.org/wiki/Focus_stealing -- ``This is considered a major annoyance by most users&apos;&apos;
It is a bug.  Brain damage inspired by Microsoft Windows and emulated in KDE.  Setting focus stealing prevention to &quot;extreme&quot; is insufficient in KDE.  There is one and only one reasonable exception:  xv (and similar programs that might need to capture window content via selecting &quot;current&quot;), but even then it should be possible for the program to capture what it needs without stealing  back focus.  If setting prevention to &quot;extreme&quot; is not strong enough, then you have to invent a term to mean &quot;absolutely, positively, never, ever allow any program to steal focus, period.  No exceptions&quot;.  That should be strong enough.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>630027</commentid>
    <comment_count>5</comment_count>
    <who name="Lubos Lunak">l.lunak</who>
    <bug_when>2008-07-28 14:22:42 +0000</bug_when>
    <thetext>I have no problem accepting a patch from somebody smarter than me.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>630029</commentid>
    <comment_count>6</comment_count>
    <who name="">rlk</who>
    <bug_when>2008-07-28 14:28:59 +0000</bug_when>
    <thetext>In bug 134339 you stated:

      Focus stealing prevention doesn&apos;t work with focus (strictly) under mouse focus policies because of difficulties with these focus policies. A patch is welcome.

What are the difficulties with these focus policies that prevent focus stealing prevention from working?  If it&apos;s window manager features like alt-tab and such, that&apos;s fine -- I have no problem with those not working.  But please be specific.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>630057</commentid>
    <comment_count>7</comment_count>
    <who name="">bkorb</who>
    <bug_when>2008-07-28 15:17:11 +0000</bug_when>
    <thetext>``I have no problem accepting a patch from somebody smarter than me.&apos;&apos;
I&apos;d hope that somebody more familiar with the code than me could do it without an extreme amount of effort.  After all, how many different functions in the code actually set focus?

   if (focus_policy == DO_NOT_EVEN_THINK_ABOUT_REFOCUSING)
      return;

If it isn&apos;t close to that easy, maybe the code needs some reworking.

And, for what it is worth, setting focus with keyboard shortcuts does not make any sense with focus under/follows mouse policies.  Not only would I not complain about them being disabled, I think it would be a bug to have them actually work.  If the mouse controls focus, then perforce the keyboard cannot.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>630061</commentid>
    <comment_count>8</comment_count>
    <who name="Lubos Lunak">l.lunak</who>
    <bug_when>2008-07-28 15:28:28 +0000</bug_when>
    <thetext>I don&apos;t remember anymore, it was a long time ago. In general, focus under mouse policies break normal assumptions about how focus works. For example, the basic rule of focus under mouse is that the window under the mouse is active. If the window under the mouse is to be always the active one, then this rule conflicts with any other rule about which window should be active, such as with focus stealing prevention. I don&apos;t remember the details, but it was simply too much work for too little gain.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>630082</commentid>
    <comment_count>9</comment_count>
    <who name="">bkorb</who>
    <bug_when>2008-07-28 16:24:03 +0000</bug_when>
    <thetext>&quot;too little gain&quot; -- let me explain why I use &quot;focus follows mouse&quot;.

When you must click to focus, unless you are careful to hit the title bar, the click is passed to the application and it responds to the click.  More often than not, this perturbs the &quot;current position&quot; in that application.  This can be a great inconvenience.  To avoid that problem, you can use the &quot;alt-tab&quot; method of navigation, but when you have two wide-screen monitors and a half dozen or more windows in each of several desk tops, um, that doesn&apos;t work so well either.  So, you&apos;re back to mouse selection wherein you have to make sure you get it exactly on the title bar, without touching any functional buttons that may be up there, too.  For me, the gain would not be &quot;too little&quot;, other than the fact that there is a monumentally huge learning curve in getting to understand the KWin code.  Thank you for your time and consideration.  Regards - Bruce</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>630092</commentid>
    <comment_count>10</comment_count>
    <who name="">rlk</who>
    <bug_when>2008-07-28 17:00:19 +0000</bug_when>
    <thetext>I guess I see one problem with focus follows mouse, but it need not apply to focus strictly follows mouse.

If the mouse is over the root window, then with focus follows mouse the focus is delivered to the last window to have focus, while with focus strictly follows mouse (my preference), nothing has focus (or rather, the root window has default focus, but since it doesn&apos;t accept keyboard events, that doesn&apos;t matter.

Now let&apos;s suppose a new window pops up under your mouse; it gets focus by either FFM or FSFM.  If your mouse is over a window, then what should probably happen is that the new window pops under the existing window, so there&apos;s no problem, but if the mouse is over the root, it will suddenly get focus.  With FFM, that defeats focus stealing prevention, but with FSFM, it&apos;s &quot;stealing&quot; focus that just isn&apos;t there to begin with (or you could say that it&apos;s &quot;taking&quot;, but not &quot;stealing&quot;, focus).

I&apos;m willing to live with that particular exception to focus stealing prevention, and with FSFM, it&apos;s arguably not even an exception to begin with.

Another possibility would be that newly created windows never get focus *at all* until you perform some specific action to give focus.  For example, moving the mouse into the window (if the mouse is over the window where it popped, you&apos;d move the mouse out and back in), or clicking on the title bar, or explicitly raising the window (which I do with a keystroke -- alt-f1 -- that&apos;s explicitly bound to that).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>630300</commentid>
    <comment_count>11</comment_count>
    <who name="">bkorb</who>
    <bug_when>2008-07-29 04:30:44 +0000</bug_when>
    <thetext>``if the mouse is over the root, it will suddenly get focus.  With FFM, that
  defeats focus stealing prevention&apos;&apos;
Yep, true enough.  Also enough of an end-case that I don&apos;t really care.  This scenario would not yank me from one desk top to another.  This scenario would not yank my mouse from my current window to another existing window and give it focus.  Those are my crucial gripes.  End cases where exact meaning become fuzzy can go any way and I don&apos;t care a lot.  It is the day to day Thunderbird and even emacs yanking me about that I find unacceptable.

``I&apos;m willing to live with that particular exception to focus stealing
  prevention, and with FSFM, it&apos;s arguably not even an exception to begin with.&apos;&apos;
I think we&apos;re pretty much in complete agreement.  We just need to convince someone intimate with the code to improve the focus stealing prevention for mouse-following focus policies.  :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>765902</commentid>
    <comment_count>12</comment_count>
    <who name="Brendan Hide">brendan</who>
    <bug_when>2009-05-27 21:31:09 +0000</bug_when>
    <thetext>Can we get the severity bumped up? Its a &quot;brain dead inspired&quot; security flaw!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1153675</commentid>
    <comment_count>13</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2011-08-14 09:50:25 +0000</bug_when>
    <thetext>*** Bug 280051 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1153676</commentid>
    <comment_count>14</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2011-08-14 09:52:09 +0000</bug_when>
    <thetext>Bug 280051 suggests that this is a bug (that could affect security), not a feature request, and severity should be raised accordingly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1153708</commentid>
    <comment_count>15</comment_count>
    <who name="Martin Flöser">mgraesslin</who>
    <bug_when>2011-08-14 12:49:53 +0000</bug_when>
    <thetext>(In reply to comment #14)
&gt; Bug 280051 suggests that this is a bug (that could affect security), not a
&gt; feature request, and severity should be raised accordingly.

I disagree: focus under mouse is a broken concept. Users who use it are aware of the limitations including the fact that focus stealing prevention does not work. If users want to have the functionality of a reasonable focus policy, they have to use one of those.

The only solution I see to fix this &quot;bug&quot; is to remove the unreasonable focus policies.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1153719</commentid>
    <comment_count>16</comment_count>
    <who name="">bkorb</who>
    <bug_when>2011-08-14 13:39:38 +0000</bug_when>
    <thetext>``focus under mouse is a broken concept&apos;&apos;
And I think that clicking a window to set focus *AND THEN PASS THROUGH THE CLICK* is a broken concept.  Furthermore, since my work tasks take me from window to window all the time, I would be continually having to click the window and then adjust current place (reclick) within window -- assuming I can remember where I was.  Over and over and over again.  All day long.

Broken.

FSFM is much better than that, even if some of you think I am wrong to find it more convenient.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1153720</commentid>
    <comment_count>17</comment_count>
    <who name="Martin Flöser">mgraesslin</who>
    <bug_when>2011-08-14 13:44:10 +0000</bug_when>
    <thetext>&gt; FSFM is much better than that, even if some of you think I am wrong to find it
&gt; more convenient.
If focus follows mouse is working for you, just use it. Focus follows mouse belongs to the 
reasonable focus policies. Only Focus under mouse and focus strictly under mouse are broken 
from the concept.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1153721</commentid>
    <comment_count>18</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2011-08-14 13:47:02 +0000</bug_when>
    <thetext>FTR:
The security issue claim is completely bogus.
What do you think how kglobalaccel (global shortcuts) works?
(Your application has the focus and nevertheless another application can react to keyboard events... just think about it... Run &quot;kcmshell4 keys&quot;, try to set &quot;a&quot; as shortcut to anything, now try to enter that char anywhere. A keylogger would just not eat it but pass it on to the client or use XTest to pipe it back into the system when unsure where to drop it)

=&gt; The protection against malware is to not run it.

Now run &quot;pinentry-qt4&quot; and enter &quot;getpin&quot; when it asks what to do.
Next try to trigger any global shortcut, including alt+tab or whatever.
(for the ubuntu users: ctrl+d quits pinentry after you closed the window)

Usually any client can &quot;read&quot; the input to all other clients unless one client actively grabs the keyboard.
At this time the focus state of the window doesn&apos;t matter anymore and /this/ is, how secure input in X11 works - not by hoping to have the focus or whatever (what doesn&apos;t get you *anything* in this regard)

geee... ;-)

===================

On topic:
i&apos;d say anyone here&apos;s precisely asking for &quot;Focus Follows Mouse&quot; (read: &quot;FOLLOWS&quot;, not &quot;UNDER&quot;) which allows for focus stealing prevention as well as alt+tab and will not pass the focus to a client that randomly shows up under the pointer (what is however different from focus stealing)

A wish to separate focus from raising (ie. allow the client to raise but not pass it the focus alongside the stealing prevention) is iirc pending somewhere else in this bugzilla and not hard to do at all.

============

F(S)UM are rather for old (maybe now rather &quot;dead&quot;?) X11 geeks and perhaps users of window tiling.
Removing them might be a little bold, but since there&apos;s plenty of space in that dialog below the setting, there could indeed be a &quot;Don&apos;t be stupid - you don&apos;t want this!&quot; message. But if I was a ditributor targetting certain kinds of users, i&apos;d just remove them downstream.

Moving away the mouse is worse than anything and -i&apos;d say- no option at all and moving away the window can easily collide with window geometry requests as well as with the requirement to find *some* decent position for the client.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1153723</commentid>
    <comment_count>19</comment_count>
    <who name="">rlk</who>
    <bug_when>2011-08-14 13:58:02 +0000</bug_when>
    <thetext>Why can&apos;t it be made to work, and why is it a broken concept?

See my suggestion in #10 above: if you can&apos;t find somewhere reasonable to put the window that doesn&apos;t collide with the existing window, pop it *under* the current window (this would work with both FUM and FFM), or even at the very bottom of the stack altogether (just above the root window).

The two typical issues I have are:

1) At startup, I&apos;m starting a number of things (several xterms, emacs, pidgin, and firefox).  When pidgin starts up, it puts up a password prompt in the center of the screen.  Firefox takes longer to start up, so it pops up over the password prompt.  I either have to take a chance on typing my password before Firefox pops up, move the password prompt to somewhere on the screen I hope firefox won&apos;t pop, or wait for firefox to come up before typing my password to pidgin.

2) I have some huge spreadsheets, and LibreOffice takes its time getting started, in any event.  So I want to start that spreadsheet, and while it&apos;s getting going, do something else.  It might take 20-30 seconds between clicking the icon and the spreadsheet window even getting created, during which I can&apos;t do anything else because the spreadsheet might pop up at any moment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1153726</commentid>
    <comment_count>20</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2011-08-14 14:18:59 +0000</bug_when>
    <thetext>Did you ever try &quot;focus FOLLOWS mouse&quot; then?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1153753</commentid>
    <comment_count>21</comment_count>
    <who name="">rlk</who>
    <bug_when>2011-08-14 16:17:41 +0000</bug_when>
    <thetext>&lt;grin type=&quot;sheepish&quot;&gt;Thanks, that combined with high focus stealing prevention appears to do exactly what I want (on superficial testing).&lt;/grin&gt;

However, there&apos;s a comment that &quot;high&quot; focus stealing prevention probably doesn&apos;t work with mouse focus policies.  That doesn&apos;t appear to be the case, so why is that comment there?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1153767</commentid>
    <comment_count>22</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2011-08-14 17:41:42 +0000</bug_when>
    <thetext>(In reply to comment #21)
&gt; However, there&apos;s a comment that &quot;high&quot; focus stealing prevention probably
&gt; doesn&apos;t work with mouse focus policies.

Forgive my ignorance: &quot;there&quot; is &quot;where&quot;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1153785</commentid>
    <comment_count>23</comment_count>
    <who name="">rlk</who>
    <bug_when>2011-08-14 19:15:26 +0000</bug_when>
    <thetext>My apologies; it&apos;s in the Help for Window Behavior in the KDE Help Center (not to mention that I misread it -- it states &quot;This setting is probably not really usable when &gt;not&lt; using mouse focus policy&quot;).  I guess I&apos;m having a bad day :-(

(Now, if I could only figure out how to turn off smooth scroll in the help center; the Konqueror setting doesn&apos;t apply to it.  But that&apos;s a subject for another bug.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1153985</commentid>
    <comment_count>24</comment_count>
    <who name="">rlk</who>
    <bug_when>2011-08-15 14:23:28 +0000</bug_when>
    <thetext>So FFM has one important problem: if I use keyboard accelerators to raise/lower windows, the focus doesn&apos;t change (or it changes to something other than what I expect) when I lower the window under the mouse.  This is a rather serious problem for my working style.

I normally create a stack of xterms (2 or 3, but sometimes more) at the top right of the screen (all 80x72, so they&apos;re a strictly coinciding stack of windows).  I typically also have a Firefox and one or more emacs windows scattered about.

I use alt-F2 as my accelerator to lower a window (don&apos;t ask why I use that accelerator; I doubt it matters, but just for completeness; alt-F1 is raise, alt-F2 is lower, alt-F3 is minimize, probably from back in the X9 days when xwm was the only window manager).  My expectation is that when I do this the window under the mouse (another xterm) is the one that will receive focus, but instead something else gets the focus.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1154075</commentid>
    <comment_count>25</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2011-08-15 19:42:12 +0000</bug_when>
    <thetext>&quot;of course&quot; - because the focus follows crossing (window borders) events what does not happen.
Otherwise you&apos;d end up with FUM and with the same issues regarding the focus stealing.

KWin could however act differently for events triggered by itself or rather explicitly provide &quot;lower window AND put focus to the window with the cursor above it if using FFM&quot;

atm. you can change the focus chain from &quot;recently used&quot; to &quot;stacking order&quot; what passes the focus to the most top one (in this situation) - i think there&apos;s another report with such request (to prefer the cursor position - see bug #159989)

Interesting that we get all this requests on the again atm, seems KDE4 gets adopted by the geeks ;-)

@EVERYONE:
would FFM alongside a 3rd option for the next focus (bug #159989) fit your needs?
(&quot;so that we can close this bug, spend more time on the other, write a patch and get it fixed&quot;)

Seriously: afaics focus UNDER mouse will never work with any focus stealing protection. Iff you can prove different, that&apos;d be great.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1154084</commentid>
    <comment_count>26</comment_count>
    <who name="">rlk</who>
    <bug_when>2011-08-15 19:55:26 +0000</bug_when>
    <thetext>From what I can determine, FFM combined with focus stealing prevention *and a change to the focus chain to pass focus to the window immediately under the mouse* would work for me.  The special case of &quot;Kwin could however act differently for events triggered by itself&quot; would not be sufficient: when a window closes of its own accord (e. g. by exiting from an xterm), I want the focus to pass to the window under the mouse (and if that&apos;s the root window, focus should pass to the root window).

This suggests a policy of &quot;focus strictly follows mouse&quot;, which would probably be what I want.

The workarounds described in 159989 (use either autoraise or click to raise) are specifically *not* acceptable to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1154090</commentid>
    <comment_count>27</comment_count>
    <who name="">rlk</who>
    <bug_when>2011-08-15 20:00:59 +0000</bug_when>
    <thetext>By the way, my usage pattern has no concept of &quot;recently used&quot; window.  I don&apos;t use alt-tab navigation between windows, so I don&apos;t want the window manager selecting some arbitary window to receive focus.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1154145</commentid>
    <comment_count>28</comment_count>
    <who name="">bkorb</who>
    <bug_when>2011-08-15 22:52:29 +0000</bug_when>
    <thetext>And, for more completeness, here&apos;s my usage pattern:

I have lots of windows open that are all highly sensitive to &quot;current position&quot;.  Like &quot;rlk&quot;, I haven&apos;t the foggiest notion of which window may be next-most-recently-used.  I know where my mouse is.  I never, ever, *ever* want focus yanked from where I am working without explicit action on my part.  That little pop-up task manager would be cool for that, if only it did not pop up for windows that are gone and if the &quot;come and see me&quot; window were always flagged with that red star.  It is broken and the subject of other bug reports.

So, don&apos;t yank me around.

Another crucial point is that I do not want to perturb windows in order to give it focus.  If I click it, the click gets passed through and current position is trashed.  If I use keyboard shortcuts, I have no control over which window is going to become &quot;in focus&quot;.  So, I like moving the mouse and let that be my indicator as to what I want to become in focus.  No need for extra keystrokes.  No clicking and perturbing windows.  Just move the mouse and now that window has focus.  Simple.  Easy.  Clean.  Fast (0.2 second setting).

That&apos;s the way I need to work.  I don&apos;t really give a hoot what the policy name is.  That is the behavior I need.  My current policy is called &quot;Focus Follows Mouse&quot;, only just now learning that there is a distinction between that and &quot;Focus Under Mouse&quot;.  A clear warning with a description of the distinction would be helpful for folks without the detailed knowledge that many folks here have.

With all of that said, I must confess that I haven&apos;t been yanked about recently the way I was several years ago when I first came upon this bug report.  It is possible (likely?) that some intervening fixes made the situation more bearable.  The main remaining gripe about the situation is that with &quot;extreme focus stealing prevention&quot;, many windows pop under and remain hidden because the task bar thingey doesn&apos;t necessarily highlight the new window with that little red star.  With that glitch fixed, I think I&apos;d be a happy camper.  (vis-a-vis focus management anyway)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1154158</commentid>
    <comment_count>29</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2011-08-16 00:31:39 +0000</bug_when>
    <thetext>(In reply to comment #28)
&gt; I never, ever, *ever* want focus yanked from where I am working without
&gt; explicit action on my part.

-&gt; FFM, extreme stealing protection (i later read that you tend to agree ;-)

&gt; If I click it, the click gets passed through and current position is trashed.

FTR: You are aware that you can only give it the focus or in addition raise it but NOT pass the click to the client? (kcmshell4 kwinoptions, &quot;window actions&quot;)

&gt; It is possible (likely?) that some intervening fixes made the situation more
&gt; bearable.

Since 2008? I don&apos;t think so.

&gt; With that glitch fixed, I think I&apos;d be a happy camper.
One could actually use the compositor to (translucently) display the window on top of the stack and then &quot;melt&quot; or at least fade through to it&apos;s actual stack position (this is only visual. it would never intercept clicks or affect the focus)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1192845</commentid>
    <comment_count>30</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2011-12-01 12:29:11 +0000</bug_when>
    <thetext>Git commit f7140b7ff0763335d3996ce3e635325d7a25bea7 by Thomas Lübking.
Committed on 22/08/2011 at 13:53.
Pushed by luebking into branch &apos;master&apos;.

add mouse preference against focus chain

there&apos;s currently no GUI config item, use
   kwriteconfig --file kwinrc --group Windows --key NextFocusPrefersMouse true
   qdbus org.kde.kwin /KWin reconfigure

BUG: 159989
CCBUG: 80897
FIXED-IN: 4.8

M  +59   -31   kwin/activation.cpp
M  +61   -46   kwin/kcmkwin/kwinoptions/windows.cpp
M  +2    -0    kwin/kcmkwin/kwinoptions/windows.h
M  +2    -0    kwin/options.cpp
M  +1    -1    kwin/options.h
M  +17   -0    kwin/workspace.cpp

http://commits.kde.org/kde-workspace/f7140b7ff0763335d3996ce3e635325d7a25bea7</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1220993</commentid>
    <comment_count>31</comment_count>
    <who name="">rlk</who>
    <bug_when>2012-01-31 03:33:36 +0000</bug_when>
    <thetext>This is still not working in KDE 4.8.0 (OpenSUSE 12.1 KDE:Distro:Factory, kwin-4.8.0-722.4.x86_64).

If I use meta-F2 (which I&apos;ve bound to lower window), the active window doesn&apos;t always become the one under my mouse.  Sometimes I have to do this a few times to get the incorrect behavior, but as best as I can tell the behavior is the same as in 4.7.4.

I&apos;m attaching my kwinrc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1220994</commentid>
    <comment_count>32</comment_count>
      <attachid>68358</attachid>
    <who name="">rlk</who>
    <bug_when>2012-01-31 03:34:47 +0000</bug_when>
    <thetext>Created attachment 68358
kwinrc with KDE 4.8.0

NextFocusPrefersMouse does not appear to work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1221201</commentid>
    <comment_count>33</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2012-01-31 13:17:45 +0000</bug_when>
    <thetext>Lowering a window does not activate another.
FFM is not FUM, will not be and can not be. If we&apos;d change the behaviour like this, you could immediately forget about focus stealing prevention and just use FUM anyway.

Affected are situations when another window becomes activated because the current one is minimized, closed or you change the desktop or so.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1221217</commentid>
    <comment_count>34</comment_count>
    <who name="">rlk</who>
    <bug_when>2012-01-31 13:53:52 +0000</bug_when>
    <thetext>Actually, lowering a window *does* result in a different window being activated with FFM as well as with FUM.  Sometimes that window happens to be the one under the mouse, and sometimes it&apos;s a different one.  The problem here is that when I lower a window by means of my keyboard accelerator, even with this latest change sometimes kwin picks a different window to activate.

What I want, in essence, is for windows to not grab the focus unless I make a decision to do so.  So if a window pops itself up, it should not grab the focus (like FFM with high focus stealing prevention), but if I lower a window by means of a keyboard accelerator or something, it should recalculate the current window.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1221319</commentid>
    <comment_count>35</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2012-01-31 16:53:35 +0000</bug_when>
    <thetext>(In reply to comment #34)
&gt; Actually, lowering a window *does* result in a different window being activated
yes, sorry. you&apos;re right.

This is the &quot;lower&quot; ./. &quot;toggle raise and lower&quot; situation.

The lower shortcut/mouseop picks the topmost client and activates it - no idea whether this is really sane and how to handle, but the patch and config item deals only with picking the &quot;next&quot; client to activate what this code simply doesn&apos;t do.

=&gt; we need to figure what to do when the user lowers a client (for the toggle variant doe not alter focus), but that is a different issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1228770</commentid>
    <comment_count>36</comment_count>
    <who name="">rlk</who>
    <bug_when>2012-02-20 14:21:40 +0000</bug_when>
    <thetext>It should pick the topmost client *that is under the mouse* to activate.  That may result in the same client staying active, if it is the only one under the mouse.

This is the only behavior that makes sense to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1228815</commentid>
    <comment_count>37</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2012-02-20 15:48:28 +0000</bug_when>
    <thetext>That is actually about to change - the history of that lower ./. toggle raise/lower has been sorted out as well (mostly because of the keyboard shortcut, that one will likely change for 4.9)
https://git.reviewboard.kde.org/r/103975/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1229126</commentid>
    <comment_count>38</comment_count>
    <who name="">rlk</who>
    <bug_when>2012-02-21 14:04:59 +0000</bug_when>
    <thetext>So no relief for another 6 months? :-(

The current behavior appears objectively wrong to me, at least from a user standpoint.  &quot;Focus under mouse&quot; should have the focus under the mouse whenever possible.  Activating a random (from the perspective of the user) client, that isn&apos;t under the mouse, makes no sense whatsoever.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1229155</commentid>
    <comment_count>39</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2012-02-21 16:27:43 +0000</bug_when>
    <thetext>Actually for the &quot;unreasonable&quot; focus policies it&apos;s ok to skip that change for even 4.8 since they&apos;re also bypassed for the &quot;activateNext&quot; stuff (which the current behavior apparently was derived from) because the focus is supposed to be always mouse driven - we just cannot alter the &quot;regular&quot; behavior (including FFM) w/o introducing a new regression.

Ultimately the lowerClient slot was then abused to get the alt+esc shortcut behavior, common among several systems.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1229158</commentid>
    <comment_count>40</comment_count>
    <who name="">rlk</who>
    <bug_when>2012-02-21 16:34:47 +0000</bug_when>
    <thetext>What is alt-esc (sorry, I use accelerators)?

What&apos;s the bottom line here?  Can focus under mouse be made to work properly, do we need a new policy that does do the right thing, or what?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1229236</commentid>
    <comment_count>41</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2012-02-21 19:39:58 +0000</bug_when>
    <thetext>the alt+esc shortcut triggers some sort of inverse alt+tab where the current client is deactivated and positioned on the bottom of the stack (no, wasn&apos;t aware myself until recently ;-)

To support both, the alt+esc behavior and the former &quot;plain lower&quot; we&apos;ll have to introduce a new shortcut, thus new visible string, thus wait for 4.9

The &quot;alt+esc&quot; condition however makes absolutely no sense in the pure mouse drive F(S)UM policies (but does in FFM &amp; CTF) what means it doesn&apos;t have to be implemented there at all (so the window is just lowered and the focus stays with the mouse, since this is what F(S)UM is about)

The behavior for lowering the window with the mousebutton will in 4.8.1 be (in general!) to pass the focus to the client under the mouse (which may be the same one) unless the lowered client didn&apos;t have the focus anyway.

In addition it&apos;s possible and justified to skip that alt+esc shortcut behavior for F(S)UM (and 4.8.1 as well)

For 4.9, the &quot;lower window&quot; shortcut and the &quot;alt+esc inverse tabboxing&quot; shortcut should become distinct - regardless of the focus policy.

Altogether this has however ABSOLUTELY nothing to do with this actual bug being about FUM &amp; focus stealing prevention - that&apos;s no gonna work anyway.

----
inb4 &quot;finally&quot;: it wasn&apos;t that easy to sort out what happened when and (probably) &quot;why&quot; in this regard.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1229239</commentid>
    <comment_count>42</comment_count>
    <who name="">rlk</who>
    <bug_when>2012-02-21 19:49:32 +0000</bug_when>
    <thetext>Ah.  I don&apos;t use alt-esc (or alt-tab, for that matter).  I have alt-f2 bound to Lower Window (alt-f1 bound to Raise Window, and alt-f3 bound to Minimize Window). This comes from the old X10 xwm behavior.  Using FUM, this only deactivates the window if it results in the mouse being immediately over a different window when it&apos;s lowered.  If lowering the window results in the same window being under the mouse, it stays active.

What I want is this behavior combined with focus stealing prevention.  I don&apos;t care what it&apos;s called.  With FFM, it looks like the behavior is *almost* correct, except for shifting focus to what appears to me to be a random window rather than the one immediately under the mouse.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1233653</commentid>
    <comment_count>43</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2012-03-07 20:54:57 +0000</bug_when>
    <thetext>Git commit 095c602617949afc55e34d0634f8de8357ca28eb by Thomas Lübking.
Committed on 21/02/2012 at 23:55.
Pushed by luebking into branch &apos;KDE/4.8&apos;.

- lower windows does not change focus for F(S)UM
- lower by shortcut honors nextFocusPrefersMouse setting
REVIEW: 104041

M  +10   -3    kwin/useractions.cpp

http://commits.kde.org/kde-workspace/095c602617949afc55e34d0634f8de8357ca28eb</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1233738</commentid>
    <comment_count>44</comment_count>
    <who name="">rlk</who>
    <bug_when>2012-03-08 03:53:49 +0000</bug_when>
    <thetext>Don&apos;t know all of the details of the code, but that looks right.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1237540</commentid>
    <comment_count>45</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2012-03-17 22:06:02 +0000</bug_when>
    <thetext>I&apos;m closing this bug that initially says &quot;make FSP work with FUM&quot; as won&apos;t fix because that cannot fix and the whole thing turned to anything different and nobody can read through all this ;-)

In case there are other issues or suggestions regarding FFM, please check whether such report is already present or head over to the brainstorm section of forum.kde.org (unless you&apos;re really sure the behavior is actually a bug and no way intended)

you may also be interested in https://git.reviewboard.kde.org/r/104316/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1395584</commentid>
    <comment_count>46</comment_count>
    <who name="">rlk</who>
    <bug_when>2013-09-06 19:39:44 +0000</bug_when>
    <thetext>So it looks like there are a few new policies in 4.11, but they still don&apos;t do what I&apos;m looking for.

The one of interest is &quot;Focus follows mouse - mouse precedence&quot; which is described as

&quot;This is mostly the same as Focus Follows Mouse. If an active window has to be chosen by the system (e. g. because the currently active one was closed) the window under the mouse is the preferred candidate. Choose this if you want a hover controlled focus.&quot;

What I want is for newly-created windows to be at the top, but to not receive focus until I take action to give it focus (by moving the mouse into them).

If I set focus stealing prevention to medium, new applications that I pop from something else receive focus even though they&apos;re not under the mouse.  Say, for example, that I have an xterm window on the right side of my screen, and type &quot;emacs&quot; into it.  The emacs window is created at the left side of the screen, and receives focus.  It should not (by my preference) receive focus.

If I set focus stealing prevention to high, then new applications don&apos;t get focus, but in some cases they&apos;re left at the bottom, invisible.  Starting emacs from xterm works correctly (the emacs window is at the top of the stack, but does not receive focus).  However, if I launch an application from the KDE menu or from the panel, that application remains hidden at the bottom of the window (presumably I would miss reminder windows that way).  I want it visible, just not receiving focus.

Both of these *almost* do what I want, but in both cases, the things that don&apos;t work are severely problematic.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1395595</commentid>
    <comment_count>47</comment_count>
    <who name="">bkorb</who>
    <bug_when>2013-09-06 21:15:00 +0000</bug_when>
    <thetext>(In reply to comment #46)
&gt; So it looks like there are a few new policies in 4.11, but they still don&apos;t
&gt; do what I&apos;m looking for.

Thank you.  You described my preferences perfectly!
1. new windows should always be visible
2. they should never receive focus until the mouse moves into it.

How visible is a &quot;resolved -- won&apos;t fix&quot; bug anyway?
Does that mean the KDE project would like us to file another?
One that describes these remaining relatively minor anomalies?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1395597</commentid>
    <comment_count>48</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2013-09-06 21:35:42 +0000</bug_when>
    <thetext>(In reply to comment #46)
&gt; So it looks like there are a few new policies in 4.11
No. Only the GUI got bumped to better reflect available focus policies.

&gt; What I want is for newly-created windows to be at the top, but to not
&gt; receive focus until I take action to give it focus
Unrelated to focus policy. This is matter of focus stealing prevention *only*, not distribution.
The window gets the focus because it asks for it, focus management is possible (in contrast to with F(S)UM) and the stealing prevention is &quot;too low&quot; to prevent it.

What you complain about is simply that focus and layer are tied.

See https://bugs.kde.org/show_bug.cgi?id=110543 and http://forum.kde.org/viewtopic.php?f=83&amp;t=101833 and https://git.reviewboard.kde.org/r/110919/

&gt; If I set focus stealing prevention to medium, new applications that I pop
&gt; from something else receive focus even though they&apos;re not under the mouse. 
This has nothing to do with the mouse, see above.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1395598</commentid>
    <comment_count>49</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2013-09-06 21:43:18 +0000</bug_when>
    <thetext>(In reply to comment #46)
&gt; So it looks like there are a few new policies in 4.11
No. Only the GUI got bumped to better reflect available focus policies.

&gt; What I want is for newly-created windows to be at the top, but to not
&gt; receive focus until I take action to give it focus
Unrelated to focus policy. This is matter of focus stealing prevention *only*, not distribution.
The window gets the focus because it asks for it, focus management is possible (in contrast to with F(S)UM) and the stealing prevention is &quot;too low&quot; to prevent it.

What you complain about is simply that focus and layer are tied.

See https://bugs.kde.org/show_bug.cgi?id=110543 and http://forum.kde.org/viewtopic.php?f=83&amp;t=101833 and https://git.reviewboard.kde.org/r/110919/

&gt; If I set focus stealing prevention to medium, new applications that I pop
&gt; from something else receive focus even though they&apos;re not under the mouse. 
This has nothing to do with the mouse, see above.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1395599</commentid>
    <comment_count>50</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2013-09-06 22:04:11 +0000</bug_when>
    <thetext>(In reply to comment #47)

&gt; How visible is a &quot;resolved -- won&apos;t fix&quot; bug anyway?
Not. The bug won&apos;t fix ever.

&gt; Does that mean the KDE project would like us to file another?
No, attach to the proper bug.
This one &quot;focus under mouse - focus stealing preventinon doesn&apos;t work&quot; is a logic conflict. If the focus is controlled by the mouse, it&apos;s not controlled by something else. This is not a WONTFIX but a CANNOTFIX.

&gt; One that describes these remaining relatively minor anomalies?
It&apos;s not &quot;minor anomalies&quot;. See links.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1395733</commentid>
    <comment_count>51</comment_count>
    <who name="Alain Knaff">kde</who>
    <bug_when>2013-09-07 19:10:32 +0000</bug_when>
    <thetext>(In reply to comment #50)

&gt; This one &quot;focus under mouse - focus stealing preventinon doesn&apos;t work&quot; is a logic conflict. If the focus is controlled by the mouse, it&apos;s not controlled by something else. This is not a WONTFIX but a CANNOTFIX.

It&apos;s not a logic conflict... because focus stealing prevention does more  than just prevent  focus stealing: it also prevents desktop yanking. On low focus stealing prevention, some applications such as thunderbird often switch desktops under the user, even with focus under mouse.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1395743</commentid>
    <comment_count>52</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2013-09-07 20:05:32 +0000</bug_when>
    <thetext>(In reply to comment #51)

&gt; It&apos;s not a logic conflict... because focus stealing prevention does more 
&gt; than just prevent  focus stealing: it also prevents desktop yanking. On low
&gt; focus stealing prevention, some applications such as thunderbird often
&gt; switch desktops under the user, even with focus under mouse.

&quot;Unlikely&quot;
The Exreme setting (and only that) would prevent an _active_ thunderbird window on one virtual desktop to pass the focus to another thunderbird window on another virtual desktop.
Ie. if you tried to open a message window by doubleclicking the message and the message is on another virtual desktop, thunderbird would send you there except you rule that away as &quot;extreme&quot;.
That&apos;s it.

What you much more likely encounter (because there&apos;s somewhere a bug we tagged invalid) is that thunderbird (or firefox or songbird), which is a veeeeeery important application, switches the current desktop in order to be able (or not) to gain the focus for sure (because the usual behavior of WMs is to deny focus passing to other dektops) - or abuse the &quot;tool&quot; hint (meant for pagers and taskbars) to activate the window forcefully.

Neither could be blocked in the WM and is just a mozilla annoyance.

If you can explain how to trigger this in (preferably) firefox or thunderbird, i&apos;ll check what it does in particular but if it&apos;s just &quot;opening thunderbird on a different virtual desktop changes that desktop&quot; that&apos;s client cheating for sure and not be prevented by any focus stealing prevention.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1395746</commentid>
    <comment_count>53</comment_count>
    <who name="Alain Knaff">kde</who>
    <bug_when>2013-09-07 20:35:54 +0000</bug_when>
    <thetext>(In reply to comment #52)

It&apos;s a while ago since I had observed these issues, so maybe things have changed/improved since then.

In Thunderbird, it used to switch desktops whenever a networking error happened which brought up an error dialog box. Nowadays, Thunderbird uses a different GUI element (flashbox?) to notify of such asynchronous errors.

In Firefox, it used happen if a site opened an alert() box. This is no longer an issue either, because Firefox now shows javascript alerts within its main window, rather than opening a dialog box.

A Lotus Notes client running within wine would also on occasion switch desktops.

All 3 could be cured with Focus Stealing Prevention (I had it on &quot;High&quot; for mozilla windows, and &quot;Normal&quot; for all others)


I&apos;ve now set back my focus stealing prevention to None, and will see whether there are still any other misbehaving apps, and will report them here as soon as I see some.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1395753</commentid>
    <comment_count>54</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2013-09-07 21:06:00 +0000</bug_when>
    <thetext>Not required
Happens when a window on a different virtual desktop opens a modal dialog. (Your description sounded like that and &quot;qdbus org.kate-editor.kwrite-24635 /kwrite/MainWindow_1/actions/file_open trigger&quot; easily proved it)

No idea why that happens, but it&apos;s not correct.
The focus is where the mouse is and the mouse is not on the other desktop but in yakuake.
The mouse is not even on the kwrite window/dialog afterwards.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1395761</commentid>
    <comment_count>55</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2013-09-07 21:47:19 +0000</bug_when>
    <thetext>https://git.reviewboard.kde.org/r/112585/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1395890</commentid>
    <comment_count>56</comment_count>
    <who name="">bkorb</who>
    <bug_when>2013-09-08 17:30:54 +0000</bug_when>
    <thetext>``Summary:do not allow desktop changes for mapping windows
   and unreasonable focus policies&apos;&apos;

``if (!isOnCurrentDesktop() &amp;&amp; options-&gt;focusPolicyIsReasonable()) {&apos;&apos;

This patch seems a bit judgmental on people&apos;s preferences.
Any policy that disallows an application from switching desktops
from underneath you is, perforce, &quot;unreasonable&quot;.  It explains
why it is so, so difficult to get this bug fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1395900</commentid>
    <comment_count>57</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2013-09-08 18:01:54 +0000</bug_when>
    <thetext>(In reply to comment #56)

&gt; This patch seems a bit judgmental on people&apos;s preferences.
&gt; Any policy that disallows an application from switching desktops
&gt; from underneath you is, perforce, &quot;unreasonable&quot;.  It explains
&gt; why it is so, so difficult to get this bug fixed.

First off:
this is no way what patch does or says - there&apos;s also the &quot;allow&quot; check (which is determined by FSP which are bypassed by the &quot;unreasonable&quot; policies) and this is all *in detail* explained in the review request.

Second:
this is not related to *this* bug at all, but cooked up by a comment from Alan, who has been - different from other people - very productive and professional on the topic and provided valuable input.

Third:
If you wish to complain about F(S)UM being tagged as &quot;unreasonable&quot; in the code, please build a time machine and complain to the developer who added/named it so like 8 years ago.

There will be no bullshit discussion about whether that&apos;s an acceptable function name (read the commit history to figure why the developer than picked that name, i don&apos;t care about such the least) and there will be no rename in the KDE4 cycle only to trigger merge conflicts with KDE5 branches.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1396475</commentid>
    <comment_count>58</comment_count>
    <who name="Martin Flöser">mgraesslin</who>
    <bug_when>2013-09-11 13:47:05 +0000</bug_when>
    <thetext>(In reply to comment #57)
&gt;  and there will be no
&gt; rename in the KDE4 cycle only to trigger merge conflicts with KDE5 branches.
and also not in the KDE5 branch. I personally like the name. As a developer one also needs sometimes a little bit of fun and reading code with method names like that just make me smile :-) After all it&apos;s just a method name.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1399290</commentid>
    <comment_count>59</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2013-09-24 19:58:01 +0000</bug_when>
    <thetext>Git commit 07f89501ef738686d1e40297209aa971c667376c by Thomas Lübking.
Committed on 07/09/2013 at 21:35.
Pushed by luebking into branch &apos;KDE/4.11&apos;.

no VD change for activation &amp; unreasonable policy

F(S)UM mean &quot;the focus is where the mouse is&quot;
the mouse is not on the other virtual desktop
(and it was even granted regardless of the actual geometry/position)

The &quot;unreasonable&quot; focus policies expose an issue about
the present linked handling of &quot;allow activation&quot; and
&quot;allow raising&quot; (see https://git.reviewboard.kde.org/r/110919/ )

Activation would match &quot;extreme&quot; (if the window maps on the same
virtual desktop, half a mile away from the mouse, it won&apos;t
receive the focus) but not regarding raising (which is actually
an issue entirely different from FSP)

REVIEW: 112585

M  +1    -1    kwin/manage.cpp

http://commits.kde.org/kde-workspace/07f89501ef738686d1e40297209aa971c667376c</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>68358</attachid>
            <date>2012-01-31 03:34:47 +0000</date>
            <delta_ts>2012-01-31 03:34:47 +0000</delta_ts>
            <desc>kwinrc with KDE 4.8.0</desc>
            <filename>kwinrc</filename>
            <type>text/plain</type>
            <size>5444</size>
            <attacher>rlk</attacher>
            
              <data encoding="base64">WyRWZXJzaW9uXQp1cGRhdGVfaW5mbz1rd2luLnVwZDprZGUzLjByMSxrd2luLnVwZDprZGUzLjJY
aW5lcmFtYSxrd2luX2ZvY3VzMS51cGQ6a3dpbl9mb2N1czEsa3dpbl9mb2N1czIudXBkOmt3aW5f
Zm9jdXMyLGt3aW5fb25fb2ZmLnVwZDprd2luX29uX29mZixrd2luM19wbHVnaW4udXBkOmtkZTMu
Mixrd2luX2JsYWNrbGlzdC51cGQ6QmxhY2tsaXN0LTQuNSxrd2luX2JsYWNrbGlzdC51cGQ6Qmxh
Y2tsaXN0LW9wZW5TVVNFLTExLjQsa3dpbl9ibGFja2xpc3QudXBkOkJsYWNrbGlzdC1vcGVuU1VT
RS0xMTQsa3dpbl9yZW1vdmVfZWZmZWN0cy51cGQ6a3dpbjQuN19lZmZlY3RzCgpbQmxhY2tsaXN0
XVtCbHVyXQpBZHZhbmNlZCBNaWNybyBEZXZpY2VzPURSSSBSNjAwOi06Ny44LjEsRFJJIFI2MDA6
LTo3LjguMgpBdGk9UmFkZW9uIEhEIDM2NTA6LTozL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