<?xml version="1.0" encoding="UTF-8" ?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc=" http://purl.org/dc/elements/1.1/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>briancarper.net (λ) (Tag: Chrome)</title><link>http://briancarper.net/tag/93/chrome</link><description>Some guy's blog about programming and Linux and cows.</description><item><title>Force Google Chromium to have a normal title bar in KDE</title><link>http://briancarper.net/blog/force-google-chromium-to-have-a-normal-title-bar-in-kde</link><guid>http://briancarper.net/blog/force-google-chromium-to-have-a-normal-title-bar-in-kde</guid><pubDate>Sat, 19 Sep 2009 01:58:26 -0700</pubDate><description>&lt;p&gt;KDE is awesome largely because KWin is awesome.  If I had to name one reason I gave up using Gnome and moved to KDE, it'd be KWin.&lt;/p&gt;

&lt;p&gt;Some programs (for example, Songbird, aTunes, Google Chrom(e|ium)) try to manage their own windows in silly ways like hiding their title bars and window borders, or fiddling with how they appear in pagers or task managers / application lists, or trying to manage their own sizes and positions.  KWin lets you override and force sane preferences upon such programs.&lt;/p&gt;

&lt;p&gt;Chromium for Linux is nice enough to give you an option to &quot;&lt;strong&gt;Use system title bar and borders&lt;/strong&gt;&quot; if you right-click the top.  But this only changes how Chrome looks; it doesn't make the KWin title bar and borders appear.&lt;/p&gt;

&lt;p&gt;Why would you want KWin title bar and borders?  Because by default, Chromium's self-managed title bar only gives you Windowsy options like minimize/maximize/close.  It doesn't give you Linuxy options like double-clicking the title bar to window-shade the window, or right-clicking the title bar to get the KDE menu to send it between desktops or make it Always on Top, and such goodness.  If I wanted gimped up window management I'd go use Windows 95.&lt;/p&gt;

&lt;!--more Instructions and screenshots follow.--&gt;

&lt;p&gt;To get the normal KWin title bar to appear, go into &lt;strong&gt;System Settings&lt;/strong&gt;, &lt;strong&gt;Window Behavior&lt;/strong&gt;, &lt;strong&gt;Window Specific&lt;/strong&gt;, then &lt;strong&gt;New..&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;Click the &lt;strong&gt;Detect Window Properties&lt;/strong&gt; button and then click an open Chromium window to fill in the details, as in this screenshot.&lt;/p&gt;

&lt;p&gt;(Note that for most apps you can right-click the title bar of the window, go to &lt;strong&gt;Advanced&lt;/strong&gt; and &lt;strong&gt;Special Application settings&lt;/strong&gt; and get to the same place, but in the special case of windows without normal title bars, you have to do it in this more roundabout way.)&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/random/kwin.png&quot; alt=&quot;KWin&quot; title=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Then go to &lt;strong&gt;Preferences&lt;/strong&gt; and set &lt;strong&gt;No Border&lt;/strong&gt; to &quot;&lt;strong&gt;Force&lt;/strong&gt;&quot;, and uncheck the box.  (This is kind of confusing because it's a double-negative; a checked box means to hide the window borders, and an unchecked box means to show them.)&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/random/kwin2.png&quot; alt=&quot;KWin&quot; title=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Once you save and apply all of this, Chromium will have a normal window title and border forever, whether it likes it or not.  Rejoice as sanity is restored to the world.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/random/kwin3.png&quot; alt=&quot;Chromium&quot; title=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;You can use this dialog to do other helpful things like make your IM windows be sticky across all desktops by default.  Or to sort your applications to always start (and stay) on certain desktops.  Or to force applications to start maximized or have a certain geometry.&lt;/p&gt;

&lt;p&gt;Another thing I find very helpful is to turn &lt;strong&gt;Focus stealing prevention&lt;/strong&gt; to the highest setting for any program that likes to throw dialog boxes at me and demand immediate attention.  Thunderbird used to be really annoying in this way.&lt;/p&gt;

&lt;p&gt;Most other Linux window managers can do some of this kind of thing too with either built-in options or via 3rd-party scripts (last I checked Gnome was the latter but it's been a while).   However few do it as well as KWin.  The only thing I've used comparable to KWin is probably FVWM, and KWin's GUI configuration is orders of magnitude easier to work with than FVWM config files.&lt;/p&gt;</description></item></channel></rss>

