<?xml version="1.0" encoding="UTF-8" standalone="yes"?><oembed><version><![CDATA[1.0]]></version><provider_name><![CDATA[Software is Crap]]></provider_name><provider_url><![CDATA[https://davmac.wordpress.com]]></provider_url><author_name><![CDATA[davmac]]></author_name><author_url><![CDATA[https://davmac.wordpress.com/author/davmac/]]></author_url><title><![CDATA[Cinnamon (again) and hacky&nbsp;non-bugfixes]]></title><type><![CDATA[link]]></type><html><![CDATA[<p>After getting frustrated with Ubuntu&#8217;s Unity interface to the point of wanting to bludgeon myself to death with a bag of squirrels, I tried out Cinnamon by manually installing the latest version. It&#8217;s actually pretty nice, except for one major annoyance: every time I get a skype message, it un-minimises the relevant chat window and brings it over the top of my current foreground window/process. This is <em>really</em> annoying. There is a <a href="https://github.com/linuxmint/Cinnamon/issues/233">bug entry</a> in Cinnamon&#8217;s bug database, but it closes with this frankly disturbing comment by someone called Clement Lefebvre (<a href="https://github.com/clefebvre">clefebvre)</a>:</p>
<blockquote><p>I don&#8217;t like the idea of this being configurable.. mainly because this isn&#8217;t a question of preference but a question of fixing a bug. The focus should always be taken when the user launches a new app and never be taken on his behalf when he doesn&#8217;t trigger the creation of new content.</p>
<p>For Skype, I fixed the bug with this <a href="https://github.com/linuxmint/Cinnamon/commit/c5bbcad1cc4cc8183f2556deef867d0fae5f0109">https://github.com/linuxmint/Cinnamon/commit/c5bbcad1cc4cc8183f2556deef867d0fae5f0109</a></p></blockquote>
<p>Well, right, it&#8217;s a bug and should be fixed properly, but, check out the fix:</p>
<p style="padding-left:30px;">if (!window || window.has_focus() || window.is_skip_taskbar() || window.get_wm_class() == &#8220;Skype&#8221;)</p>
<p>What the &#8230; it actually <em>checks for Skype</em> and handles it specially. That&#8217;s <em>got</em> to be wrong. Clement then goes on to say:</p>
<blockquote><p>For other apps which face a similar issue, I&#8217;d like people to insert the following code at line 27 in /usr/share/cinnamon/js/ui/windowAttentionHandler.js:</p>
<p>global.log_error(&#8220;Focus stolen by : &#8221; + window.get_wm_class());</p>
<p>Then restart cinnamon, and when the focus is stolen from you, click on the ^ applet, troubleshoot, looking glass, click on the error tab, and you should see the wm class name of the app which stole your focus. Give me that wm class name, and we&#8217;ll add it to Cinnamon.</p></blockquote>
<p>Oh for fuck&#8217;s sake&#8230; this is <em>not</em> how you do these things. Fix the bug in Cinnamon, make it respond to notifications properly for <em>all</em> apps; don&#8217;t just implement a workaround on an app-by-app basis. Am I missing something here? Surely other window managers aren&#8217;t implementing this workaround (because they don&#8217;t need to, because they handle the notification correctly in the first place)? This doesn&#8217;t exactly inspire confidence in the quality of Cinnamon.</p>
]]></html></oembed>