http://subtle.de/http://subtle.de/favicon.ico?15154402992011-08-07T09:55:02Zunexist.devsubtle - Bug #242: Recent clients orderhttp://subtle.de/issues/242?journal_id=4722011-08-07T09:55:02ZChristoph Kappelchristoph@unexist.dev
<ul></ul><p>Next time please use instance or window names, just the window ids make it tough to read and to understand.</p>
<p>Actually I have no idea, I just tested this in the current devel and I don't see any inconsistency there.</p> subtle - Bug #242: Recent clients orderhttp://subtle.de/issues/242?journal_id=4802011-08-07T17:52:28Zdavid unricdunric29a@gmail.com
<ul></ul>More explicit example:
<ol>
<li>I'm in view named "terms", launch two xterms, set left gravity for the first, right for the second.</li>
<li>Set focus on right xterm and run an irb session from within:<br /> irb(main):008:0> Subtlext::Client.recent.collect {|c| c.instance}<br /> => ["xterm", "xterm", "xterm", "xterm", "xterm"]</li>
<li>Now I switch to view named "www" and back to "terms" (by ViewSwitch action) and check how result of .recent has changed<br /> irb(main):009:0> Subtlext::Client.recent.collect {|c| c.instance}<br /> => ["xterm", "xterm", "xterm", <strong>"Navigator"</strong>, "xterm"]</li>
</ol>
<pre><code>Wrong order, the returned array should look like:<br /> => ["xterm", <strong>"Navigator"</strong>, "xterm", "xterm", "xterm"]</code></pre>
<p>The issue manifest only if the focus is on right xterm before switching forth & back to other view.</p> subtle - Bug #242: Recent clients orderhttp://subtle.de/issues/242?journal_id=4812011-08-07T18:43:51ZChristoph Kappelchristoph@unexist.dev
<ul></ul><p>I cannot reproduce that. What version of <a class="wiki-page" href="http://subtle.de/projects/subtle/wiki/Subtle">subtle</a>?</p> subtle - Bug #242: Recent clients orderhttp://subtle.de/issues/242?journal_id=4822011-08-07T19:04:45Zdavid unricdunric29a@gmail.com
<ul></ul><p>dunric@darkstar:~$ subtle -v<br />subtle 0.10.2988 - Copyright (c) 2005-2011 Christoph Kappel<br />Released under the GNU General Public License<br />Compiled for X11R0 and Ruby 1.9.1</p> subtle - Bug #242: Recent clients orderhttp://subtle.de/issues/242?journal_id=4832011-08-07T20:51:34Zdavid unricdunric29a@gmail.com
<ul><li><strong>File</strong> <a href="/attachments/68/10.png">10.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/68/10.png">10.png</a> added</li><li><strong>File</strong> <a href="/attachments/69/07.png">07.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/69/07.png">07.png</a> added</li><li><strong>File</strong> <a href="/attachments/70/26.png">26.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/70/26.png">26.png</a> added</li><li><strong>File</strong> <a href="/attachments/71/39.png">39.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/71/39.png">39.png</a> added</li><li><strong>File</strong> <a href="/attachments/72/58.png">58.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/72/58.png">58.png</a> added</li><li><strong>File</strong> <a href="/attachments/73/04.png">04.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/73/04.png">04.png</a> added</li></ul><p>Some screenshots to get issue description even more obvious ...</p>
<p><strong>EDIT: what a coincidence, even attached screenshots placed carefully by each step lost their order<br />07.png -> 26.png -> 39.png (starting with focus on right xterm)<br />58.png -> 04.png -> 10.png (starting with focus on left xterm)</strong></p> subtle - Bug #242: Recent clients orderhttp://subtle.de/issues/242?journal_id=4842011-08-07T22:56:05Zdavid unricdunric29a@gmail.com
<ul></ul><p>I've discovered the issue is caused by multiple re-focusing of a client.</p>
<ul>
<li>Let's have two windows in one view. Left covers 66% of a view, right covers remaining 34%.</li>
<li>Focus right window with a keyboard or a mouse. If focused with a keyboard, mouse cursor reappears in the centre of the focused window.</li>
<li>Now switch to other view (by keyboard) with only one window covering whole area. Mouse cursor is placed in the centre.</li>
<li>Now switch back to the original view (by keyboard). <ins>The right (smaller) window gets focus, but then unintentionaly gets focus the left (larger) window and then again back the right. Thus list of recent focused windows is updated 3 times.</ins></li>
</ul>
<p>You can check it out by implementing client_focus hook with debugging output:<br /><pre>on :client_focus do |c|
$stderr.puts "=> GOT FOCUS: #{c.instance}"
$stderr.puts "=> RECENT: #{Subtlext::Client.recent.collect {|c| c.instance}}"
end
</pre></p>
<p>and monitoring .xsession-errors log with <code>tailf</code> or other way.</p>
<p>I'm suspecting it has something to do with improperly placed mouse cursor causing loss of originaly focused window.</p> subtle - Bug #242: Recent clients orderhttp://subtle.de/issues/242?journal_id=4862011-08-08T14:16:46ZChristoph Kappelchristoph@unexist.dev
<ul></ul><p>As I told you, I cannot reproduce this. There is no improperly placed pointer.</p>
<p>Can you post your config? Did you verify, that this happens with the stock config? Running any layout sublets or sublets that modify the focus history?</p> subtle - Bug #242: Recent clients orderhttp://subtle.de/issues/242?journal_id=4872011-08-08T15:45:29Zdavid unricdunric29a@gmail.com
<ul><li><strong>File</strong> <a href="/attachments/74/subtle.rb">subtle.rb</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/74/subtle.rb">subtle.rb</a> added</li></ul><p>Did tried with stock config (see an attachment), no sublets. Still repeatedly reproducible on my computer :(</p>
<p>Installed X server version:</p>
<p>dunric@darkstar:~$ X -version</p>
<p>X.Org X Server 1.9.5<br />Release Date: 2011-03-17<br />X Protocol Version 11, Revision 0</p> subtle - Bug #242: Recent clients orderhttp://subtle.de/issues/242?journal_id=4882011-08-08T17:54:07ZChristoph Kappelchristoph@unexist.dev
<ul><li><strong>Category</strong> set to <i>Bugfix</i></li><li><strong>Status</strong> changed from <i>Unconfirmed</i> to <i>Confirmed</i></li><li><strong>Assignee</strong> set to <i>Non member users</i></li><li><strong>Target version</strong> set to <i>Nu</i></li></ul><p>Ok, I can confirm that now. Tested it just with urxvt's and no problems there. So that just happens with windows that use this odd focus model, going to look into it.</p> subtle - Bug #242: Recent clients orderhttp://subtle.de/issues/242?journal_id=5012011-08-18T11:28:53ZChristoph Kappelchristoph@unexist.dev
<ul><li><strong>Target version</strong> changed from <i>Nu</i> to <i>28</i></li></ul> subtle - Bug #242: Recent clients orderhttp://subtle.de/issues/242?journal_id=5032011-08-18T11:30:45ZChristoph Kappelchristoph@unexist.dev
<ul><li><strong>Target version</strong> changed from <i>28</i> to <i>Xi</i></li></ul> subtle - Bug #242: Recent clients orderhttp://subtle.de/issues/242?journal_id=5332011-11-08T15:53:59ZChristoph Kappelchristoph@unexist.dev
<ul><li><strong>Target version</strong> deleted (<del><i>Xi</i></del>)</li></ul>