<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule">

<channel>
	<title>…for the adult in you &#187; Switching</title>
	<atom:link href="http://blogs.gnome.org/metacity/category/switching/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.gnome.org/metacity</link>
	<description>"Many window managers are like Marshmallow Froot Loops; Metacity is like Cheerios."</description>
	<lastBuildDate>Tue, 18 Jan 2011 20:10:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>		<item>
		<title>Going back to the previous workspace</title>
		<link>http://blogs.gnome.org/metacity/2010/05/08/going-back-to-the-previous-workspace/</link>
		<comments>http://blogs.gnome.org/metacity/2010/05/08/going-back-to-the-previous-workspace/#comments</comments>
		<pubDate>Sat, 08 May 2010 22:02:15 +0000</pubDate>
		<dc:creator>Thomas Thurman</dc:creator>
				<category><![CDATA[Bugs and issues]]></category>
		<category><![CDATA[Switching]]></category>

		<guid isPermaLink="false">http://blogs.gnome.org/metacity/?p=716</guid>
		<description><![CDATA[Eugeni Dodonov has asked for a keybinding to return to the previous workspace. For example, if you were on workspace 1 and switched to workspace 2, then pressing this key would jump back to workspace 1. Pressing it again would jump to workspace 2. Apparently this is a standard keybinding in xfwm4. This is GNOME [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Momentile 10th December 2009 by coffee bee, on Flickr" href="http://www.flickr.com/photos/coffee_bee/4171940121/"><img src="http://farm3.static.flickr.com/2604/4171940121_ff15ce7c65.jpg" alt="Momentile 10th December 2009" width="375" height="500" align="right" /></a>Eugeni Dodonov <a href="http://dodonov.net/blog/2010/05/06/gnome-hacking/">has asked for a keybinding to return to the previous workspace</a>.  For example, if you were on workspace 1 and switched to workspace 2, then pressing this key would jump back to workspace 1.  Pressing it again would jump to workspace 2.  Apparently this is a standard keybinding in <a href="http://www.xfce.org/projects/xfwm4/">xfwm4</a>.</p>
<p>This is  <a href='http://bugzilla.gnome.org/show_bug.cgi?id=618018' class='bug-link bug-link-gnome'>GNOME bug 618018</a>, and <a href="https://bugzilla.gnome.org/attachment.cgi?id=160511&amp;action=edit">there is a patch</a>.</p>
<p>However, we believe this can be done adequately with an external EWMH-based script, although it&#8217;s a little more difficult than most EWMH scripts because it requires internal state.</p>
<p>Incidentally, this may be an interesting moment to discuss the question of whether Metacity should be able to make DBus calls on given keypresses as well as launching external scripts.  Supplementing the EWMH controls with DBus is often suggested (see, for example , <a href='http://bugzilla.gnome.org/show_bug.cgi?id=531512' class='bug-link bug-link-gnome'>GNOME bug 531512</a> and <a href="http://people.collabora.co.uk/~tthurman/ewmhbus/">ewmhbus</a>) but perhaps we should instead be considering sending signals when windows are opened, hot keys are pressed, and workspaces are switched.</p>
<p><em>Photo © coffee bee, cc-by-nc.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.gnome.org/metacity/2010/05/08/going-back-to-the-previous-workspace/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Switching between workspaces</title>
		<link>http://blogs.gnome.org/metacity/2010/05/08/switching-between-workspaces/</link>
		<comments>http://blogs.gnome.org/metacity/2010/05/08/switching-between-workspaces/#comments</comments>
		<pubDate>Sat, 08 May 2010 19:41:58 +0000</pubDate>
		<dc:creator>Thomas Thurman</dc:creator>
				<category><![CDATA[Bugs and issues]]></category>
		<category><![CDATA[Switching]]></category>

		<guid isPermaLink="false">http://blogs.gnome.org/metacity/?p=714</guid>
		<description><![CDATA[Metacity allows you to keep your windows on workspaces.  You can have between one and 36 of them.  (The number 36 is rather arbitrary; it&#8217;s described as &#8220;a fixed maximum to prevent making the desktop unusable by accidentally asking for too many workspaces.&#8220;) You can switch between these workspaces either by using the switcher applet, [...]]]></description>
			<content:encoded><![CDATA[<p><a title="66.365 - Fascinating Fingers by josh.liba, on Flickr" href="http://www.flickr.com/photos/jliba/4416265312/"><img src="http://farm5.static.flickr.com/4063/4416265312_9b16bd0a4a.jpg" alt="66.365 - Fascinating Fingers" width="500" height="332" align="right" /></a>Metacity allows you to keep your windows on workspaces.  You can have between one <a href="http://git.gnome.org/browse/metacity/tree/src/core/prefs.c#n36">and 36</a> of them.  (The number 36 is rather arbitrary; it&#8217;s <a href="http://git.gnome.org/browse/metacity/tree/src/metacity.schemas.in.in#n302">described</a> as<em> &#8220;a fixed maximum to prevent making the desktop unusable by accidentally asking for too many workspaces.</em>&#8220;)</p>
<p>You can switch between these workspaces either by using the switcher applet, or using directional keys (&#8220;move to the workspace below the current one&#8221;, and so on).  You may also use specialised keys to jump to a specific workspace.  For example, you might keep your email app open on workspace 7 all the time, and bind F7 to jump to that workspace.  Each such specialised key is treated as a special case, and <a href="http://git.gnome.org/browse/metacity/tree/src/include/all-keybindings.h#n87">there are twelve of them</a>.</p>
<p> <a href='http://bugzilla.gnome.org/show_bug.cgi?id=115584' class='bug-link bug-link-gnome'>GNOME bug 115584</a> makes the point that it&#8217;s inconsistent to allow three dozen workspaces and only allow keyboard switching for a dozen of them.  There is even <a href="https://bugzilla.gnome.org/attachment.cgi?id=125350&amp;action=edit">a patch to add twenty more special cases</a> (your chronicler is not sure what happened to the remaining four).</p>
<p>It&#8217;s not clear that this problem needs to be solved at all, but if it does, adding a score of new keybindings is certainly not the way forward.  A better solution would be to use GConf&#8217;s ability to store lists of strings.  A single new GConf key could store a list of keybindings for the corresponding workspaces, and it could extend to whatever length made the user happy.  The existing special-case keybindings would need to be retained for backward compatibility, but they could then be deprecated.</p>
<p><em>Photo © Josh  Libatique, cc-by.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.gnome.org/metacity/2010/05/08/switching-between-workspaces/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The order of windows in alt-tab</title>
		<link>http://blogs.gnome.org/metacity/2010/05/03/the-order-of-windows-in-alt-tab/</link>
		<comments>http://blogs.gnome.org/metacity/2010/05/03/the-order-of-windows-in-alt-tab/#comments</comments>
		<pubDate>Mon, 03 May 2010 18:20:34 +0000</pubDate>
		<dc:creator>Thomas Thurman</dc:creator>
				<category><![CDATA[Bugs and issues]]></category>
		<category><![CDATA[Letters]]></category>
		<category><![CDATA[Switching]]></category>

		<guid isPermaLink="false">http://blogs.gnome.org/metacity/?p=712</guid>
		<description><![CDATA[When you press alt-tab under Metacity, the windows you see in the switcher are displayed in most-recently-used (MRU) order, except that minimised windows are always sorted to the end, and urgent (&#8220;needs attention&#8221;) windows are sorted to the beginning. A comment in the source describes this as &#8220;Windows sellout mode&#8221;. In a recent blog post, [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Big surprise by kevindooley, on Flickr" href="http://www.flickr.com/photos/pagedooley/4453455519/"><img src="http://farm5.static.flickr.com/4057/4453455519_0cc3cb024e.jpg" alt="Big surprise" width="500" height="500" align="right" /></a>When you press alt-tab under Metacity, the windows you see in the switcher are displayed in most-recently-used (MRU) order, except that minimised windows are always sorted to the end, and urgent (&#8220;needs attention&#8221;) windows are sorted to the beginning. A comment in the source describes this as <a href="http://git.gnome.org/browse/metacity/tree/src/core/display.c#n4386">&#8220;Windows sellout mode&#8221;</a>.</p>
<p><a href="http://www.azarask.in/blog/post/solving-the-alt-tab-problem/">In a recent blog post, Aza Raskin suggests</a> using <a href="http://www.comp.leeds.ac.uk/roger/HiddenMarkovModels/html_dev/main.html">Markov modelling</a> to learn which applications you commonly switch between, so that they will be in the right place when you need them.  For example, if the system learns that you most often switch between gedit and firefox, then when you are using firefox, gedit will be the first application in the list.</p>
<p>Your chronicler believes the readership of this journal may be interested in discussing the idea.  Anyone who wishes to implement it may count on all the help and advice they need from the Metacity maintainers.</p>
<p>Thanks to <a href="http://arunraghavan.net/">Arun Raghavan</a> for bringing this to our attention.</p>
<p><em>Photo © Kevin Dooley, cc-by.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.gnome.org/metacity/2010/05/03/the-order-of-windows-in-alt-tab/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Alt-Tab over all workspaces</title>
		<link>http://blogs.gnome.org/metacity/2010/01/22/alt-tab-over-all-workspaces/</link>
		<comments>http://blogs.gnome.org/metacity/2010/01/22/alt-tab-over-all-workspaces/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 18:27:03 +0000</pubDate>
		<dc:creator>Thomas Thurman</dc:creator>
				<category><![CDATA[Bugs and issues]]></category>
		<category><![CDATA[Switching]]></category>

		<guid isPermaLink="false">http://blogs.gnome.org/metacity/?p=677</guid>
		<description><![CDATA[At the moment, when you press alt-Tab, you cycle through a list of windows on the current workspace.  People use workspaces in many ways, though; some people keep only one application maximised on each workspace.  Very many people have asked for the ability to alt-Tab between windows on all workspaces, not just the current one. [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Camille Flies High by Scott Ableman, on Flickr" href="http://www.flickr.com/photos/ableman/144844274/"><img src="http://farm1.static.flickr.com/45/144844274_6d602d2445.jpg" alt="Camille Flies High" width="500" height="333" align="right" /></a>At the moment, when you press alt-Tab, you cycle through a list of windows on the current workspace.  People use workspaces in many ways, though; some people keep only one application maximised on each workspace.  Very many people have asked for the ability to alt-Tab between windows on <em>all</em> workspaces, not just the current one.</p>
<p>There have been many bugs raised about this matter.  One approach, taken in  <a href='http://bugzilla.gnome.org/show_bug.cgi?id=577699' class='bug-link bug-link-gnome'>GNOME bug 577699</a> by <a href="http://blogs.gnome.org/alexl/">Alexander Larsson</a>, is to add a new keybinding called <em>switch_windows_all</em>, which can then be re-bound to alt-Tab.  This is certainly a possibility, but adds a new keybinding and a new GConf setting.  It is apparently how Compiz solves the problem.</p>
<p>A different approach was suggested six years ago by <a href="http://ometer.com/">Havoc</a> in  <a href='http://bugzilla.gnome.org/show_bug.cgi?id=143511' class='bug-link bug-link-gnome'>GNOME bug 143511</a>.  The window list in the panel has the option of toggling between a list of all windows and only the windows on the current workspace.  It is contrary to the <a href="http://c2.com/cgi/wiki?PrincipleOfLeastAstonishment">principle of least astonishment</a> if the windows listed in the alt-Tab display are not the same as those listed in the panel.</p>
<p>Therefore, the window manager should detect this setting in the window panel list and behave accordingly.  This could be done simply by reading the setting out of GConf.  A more portable way would be to have a new EWMH hint on the root window; however, <a href="http://mail.gnome.org/archives/wm-spec-list/2007-August/msg00006.html">this was raised on the wm-spec-list in 2007</a> and was not well received.  Generalising GNOME&#8217;s panel to all environments may be tricky.</p>
<p>Again, anyone wishing to work on this will have abundant help available; otherwise we will get to it when the bug queue is reduced a little .  <a href='http://bugzilla.gnome.org/show_bug.cgi?id=143511' class='bug-link bug-link-gnome'>GNOME bug 143511</a> is the one to follow.</p>
<p><em>Photo © Scott Ableman, cc-by-nd.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.gnome.org/metacity/2010/01/22/alt-tab-over-all-workspaces/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Tabs</title>
		<link>http://blogs.gnome.org/metacity/2010/01/21/tabs/</link>
		<comments>http://blogs.gnome.org/metacity/2010/01/21/tabs/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 20:38:53 +0000</pubDate>
		<dc:creator>Thomas Thurman</dc:creator>
				<category><![CDATA[Letters]]></category>
		<category><![CDATA[Metacity Labs]]></category>
		<category><![CDATA[Switching]]></category>

		<guid isPermaLink="false">http://blogs.gnome.org/metacity/?p=674</guid>
		<description><![CDATA[In the comments to a previous post, we were asked about implementing tabs in the window manager.  Calum pointed out that the HIG recommends against applications adding their own document-level tabs on the grounds that this is a job for the window manager.  Yet the window manager has never risen to the challenge, and very [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/emdot/523734318/"><img src="http://farm1.static.flickr.com/211/523734318_a72be6ba78.jpg" alt="" align="right" /></a>In the comments to a previous post, <a href="http://blogs.gnome.org/metacity/2010/01/21/snap/#comment-1199">we were asked</a> about implementing tabs in the window manager.  <a href="http://blogs.gnome.org/calum/2008/07/11/tab-frenzy/">Calum pointed out</a> that the <a href="http://library.gnome.org/devel/hig-book/stable/windows-primary.html.en#mdi">HIG recommends against applications adding their own document-level tabs</a> on the grounds that this is a job for the window manager.  Yet the window manager has never risen to the challenge, and very many applications do in fact <a href="http://library.gnome.org/devel/gtk/unstable/GtkNotebook.html">implement document-level tabs</a>.</p>
<p>Implementing this will fall into three parts:</p>
<ul>
<li>there must be a way of identifying groups of windows which may be tabbed together (we might, for example, use <a href="http://tronche.com/gui/x/xlib/ICC/client-to-window-manager/wm-class.html">WM_CLASS</a>);</li>
<li>there must be a display listing all tabs in the window border below the title (in a first revision, this could perhaps be done using the system menu);</li>
<li>there must be a mechanism for unmapping all but the selected window, and, when appropriate, for reconfiguring the unmapped windows to match the mapped window (that is, when the mapped window is resized or moved).</li>
</ul>
<p>There have been <a href="http://mail.gnome.org/archives/desktop-devel-list/2009-July/msg00014.html">some volunteers willing to do the work</a> in the past, but no word yet of working code.  It should be a large piece of work, but not a monumentally huge one.  Again, if anyone wants to help now, abundant assistance is available; this may be something the maintainers could work on, but not until the bug queue has been reduced a little more.</p>
<p><em>Photo © emdot, cc-by-nc-nd.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.gnome.org/metacity/2010/01/21/tabs/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Squib of the day: make the menu shorter</title>
		<link>http://blogs.gnome.org/metacity/2009/03/30/squib-of-the-day-make-the-menu-shorter/</link>
		<comments>http://blogs.gnome.org/metacity/2009/03/30/squib-of-the-day-make-the-menu-shorter/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 03:58:31 +0000</pubDate>
		<dc:creator>Thomas Thurman</dc:creator>
				<category><![CDATA[Bug of the day]]></category>
		<category><![CDATA[Switching]]></category>

		<guid isPermaLink="false">http://blogs.gnome.org/metacity/?p=557</guid>
		<description><![CDATA[Someone who believed the system menu should be shorter raised GNOME bug 126674.  The basic idea is that the options in the system menu which move the window to adjacent workspaces and to workspaces given their number are unwieldy and complicated. Since these options all move windows, and since there is an existing manual move [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Reflecting on the Menu by Glenn Loos-Austin, on Flickr" href="http://www.flickr.com/photos/junkchest/51853459/"><img src="http://farm1.static.flickr.com/30/51853459_61de887f37.jpg" alt="Reflecting on the Menu" width="500" height="333" align="right" /></a>Someone who believed the system menu should be shorter raised  <a href='http://bugzilla.gnome.org/show_bug.cgi?id=126674' class='bug-link bug-link-gnome'>GNOME bug 126674</a>.  The basic idea is that the options in the system menu which move the window to adjacent workspaces and to workspaces given their number are unwieldy and complicated.</p>
<p>Since these options all move windows, and since there is an existing manual move mode on the menu, the reporter suggests removing the workspace entries entirely from the menu and replacing them with some keypresses in manual move mode.  For example:</p>
<ul>
<li>switching to manual move mode and then pressing F5 could move the window to workspace 5;</li>
<li>switching to manual move mode and pressing <strong>Ctrl+Right</strong> could move it one workspace to the right</li>
<li>and so on.</li>
</ul>
<p>It would undoubtedly remove some complication in the user interface, and free up some space for useful other options (such as &#8220;screenshot this window&#8221;), but perhaps at the cost of making common operations prohibitively difficult to find.  The bug suggests that a popup window like the <strong>Alt+Tab</strong> window might give instructions about example keypresses.  This would also make moving windows to another workspace with the mouse more difficult, but perhaps people should be doing that with the pager anyway.</p>
<p><em>Photo © Glenn Loos-Austin, cc-by-sa; thanks to Katie Sutton for choosing it.<br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.gnome.org/metacity/2009/03/30/squib-of-the-day-make-the-menu-shorter/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Squib of the day: Window paths</title>
		<link>http://blogs.gnome.org/metacity/2009/03/20/squib-of-the-day-window-paths/</link>
		<comments>http://blogs.gnome.org/metacity/2009/03/20/squib-of-the-day-window-paths/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 00:00:43 +0000</pubDate>
		<dc:creator>Thomas Thurman</dc:creator>
				<category><![CDATA[Bug of the day]]></category>
		<category><![CDATA[Switching]]></category>

		<guid isPermaLink="false">http://blogs.gnome.org/metacity/?p=496</guid>
		<description><![CDATA[It&#8217;s suggested in GNOME bug 82567 that Metacity could allow a left-click on the titlebar to launch a menu which allowed the user to navigate to the parent, grandparent, or further ancestor of the window.  This would only make sense where the window could represent a container which itself was contained in some other container [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Jackson Tries to Contain His Excitement by It'sGreg, on Flickr" href="http://www.flickr.com/photos/itsgreg/106561656/"><img src="http://farm1.static.flickr.com/55/106561656_ed799f92e3.jpg" alt="Jackson Tries to Contain His Excitement" width="500" height="380" align="right" /></a>It&#8217;s suggested in  <a href='http://bugzilla.gnome.org/show_bug.cgi?id=82567' class='bug-link bug-link-gnome'>GNOME bug 82567</a> that Metacity could allow a left-click on the titlebar to launch a menu which allowed the user to navigate to the parent, grandparent, or further ancestor of the window.  This would only make sense where the window could represent a container which itself was contained in some other container hierarchically (which amounts to the file manager, pretty much).</p>
<p><a href="http://blogs.gnome.org/metacity/2009/03/16/ewmh/">This would require a new window hint in order to work.</a> It would replicate behaviour that is generally the province of toolbars and appears to have WONTFIX written all over it.</p>
<p>This is similar to a more useful and general recent suggestion that windows should be able to add a <a href="http://blogs.gnome.org/metacity/2008/12/11/dragging-the-window-icon/">draggable icon in the titleba</a>r, as is done on OS X.  Your chronicler would like to see this done, but is aware that the obstacles between there and here are formidable.</p>
<p><em>Photo of Jackson the dog © ItsGreg, cc-by-nd.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.gnome.org/metacity/2009/03/20/squib-of-the-day-window-paths/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Squib of the day: Workspaces should switch instantaneously, or not</title>
		<link>http://blogs.gnome.org/metacity/2009/03/12/squib-of-the-day-workspaces-should-switch-instantaneously-or-not/</link>
		<comments>http://blogs.gnome.org/metacity/2009/03/12/squib-of-the-day-workspaces-should-switch-instantaneously-or-not/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 00:00:06 +0000</pubDate>
		<dc:creator>Thomas Thurman</dc:creator>
				<category><![CDATA[Bug of the day]]></category>
		<category><![CDATA[Switching]]></category>

		<guid isPermaLink="false">http://blogs.gnome.org/metacity/?p=441</guid>
		<description><![CDATA[When GNOME bug 86590 was born, it was a request to make workspaces switch instantaneously when you panned around them using the workspace switcher with ctrl+alt+arrow. Then that was fixed, and someone else complained that it was too slow, and inconsistent with the alt+tab popup, which doesn&#8217;t switch until you let go of alt.  They [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Untitled by Matsatsinis Fragiskos, on Flickr" href="http://www.flickr.com/photos/matsatsinis/490541292/"><img src="http://farm1.static.flickr.com/228/490541292_07f55e42ba.jpg" alt="" width="500" height="327" align="right" /></a>When  <a href='http://bugzilla.gnome.org/show_bug.cgi?id=86590' class='bug-link bug-link-gnome'>GNOME bug 86590</a> was born, it was a request to make workspaces switch instantaneously when you panned around them using the workspace switcher with <strong>ctrl+alt+arrow</strong>.</p>
<p>Then that was fixed, and someone else complained that it was too slow, and inconsistent with the <strong>alt+tab</strong> popup, which doesn&#8217;t switch until you let go of <strong>alt</strong>.  They asked for it to be reverted.  Someone else suggested a compromise: if the user pauses while moving through workspaces, flip to that workspace without removing the pager.</p>
<p>Of course, then we&#8217;d have to consider whether we should do that with <strong>alt+tab</strong>, too.  It&#8217;s possible that the two cases are different enough that there&#8217;s no good analogy here, though:  workspaces can be named, for example.  It&#8217;s possible as well that they&#8217;d become different enough for there to be no good analogy here if we had thumbnails of the workspaces instead of the icon-based boxes we have now.</p>
<p>So the options now are:</p>
<ol>
<li>Switch when they let go of the keys, as we used to.</li>
<li>Switch after a delay, as suggested above.</li>
<li>Maybe it&#8217;s fast enough these days and nobody cares any more.</li>
<li>We could keep all the windows on all the workspaces mapped all the time, like Compiz does, which would make things a lot faster anyway, and would reduce to the previous case.</li>
</ol>
<p>Photo © Matsatsinis Fragiskos, cc-by-nc-nd.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.gnome.org/metacity/2009/03/12/squib-of-the-day-workspaces-should-switch-instantaneously-or-not/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Squib of the day: Drag and drop should work properly</title>
		<link>http://blogs.gnome.org/metacity/2009/03/09/yes-dragon-drop-its-a-pun/</link>
		<comments>http://blogs.gnome.org/metacity/2009/03/09/yes-dragon-drop-its-a-pun/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 00:00:16 +0000</pubDate>
		<dc:creator>Thomas Thurman</dc:creator>
				<category><![CDATA[Bug of the day]]></category>
		<category><![CDATA[EWMH]]></category>
		<category><![CDATA[Switching]]></category>

		<guid isPermaLink="false">http://blogs.gnome.org/metacity/?p=420</guid>
		<description><![CDATA[In GNOME bug 80984 (closely related to GNOME bug 76672), someone is asking for the window manager to help out with drag-and-drop.  The problem is that a drag-and-drop operation should not raise the window it begins in, because raising that window could obscure the window you&#8217;re planning to drop the object into. This is a [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Dragon by wili_hybrid, on Flickr" href="http://www.flickr.com/photos/wili/2628869994/"><img src="http://farm4.static.flickr.com/3055/2628869994_087a85722c.jpg" alt="Dragon" width="500" height="333" align="right" /></a>In  <a href='http://bugzilla.gnome.org/show_bug.cgi?id=80984' class='bug-link bug-link-gnome'>GNOME bug 80984</a> (closely related to  <a href='http://bugzilla.gnome.org/show_bug.cgi?id=76672' class='bug-link bug-link-gnome'>GNOME bug 76672</a>), someone is asking for the window manager to help out with drag-and-drop.  The problem is that a drag-and-drop operation should not raise the window it begins in, because raising that window could obscure the window you&#8217;re planning to drop the object into.</p>
<p>This is a reasonable and important request.  It is, however, not at all simple.  Metacity is the program which decides whether to raise the window, and there is currently no way for Metacity to know you&#8217;re about to start a drag-and-drop operation.</p>
<p>One rather crappy workaround is to tell it by holding down <strong>Super</strong> or <strong>AltGr</strong>.  This works, but it&#8217;s not elegant.  The system should be able to <em>know</em>.</p>
<p>This is not what raise_on_click does.  Please forget about raise_on_click.  It won&#8217;t solve your problem.</p>
<p>The correct answer is <a href="http://blogs.gnome.org/metacity/2009/03/16/ewmh/">fixing this in the EWMH</a>.  Luboš had an idea about this back in 2004 called <a href="http://mail.gnome.org/archives/wm-spec-list/2004-April/msg00013.html"><strong>_NET_WM_TAKE_ACTIVITY</strong></a>, and Elijah improved on this later with a more complicated idea called <a href="http://mail.gnome.org/archives/wm-spec-list/2004-October/msg00008.html"><strong>_NET_WM_MOUSE_ACTION</strong></a>.  Getting this into Metacity is  <a href='http://bugzilla.gnome.org/show_bug.cgi?id=152952' class='bug-link bug-link-gnome'>GNOME bug 152952</a>.  Whatever happens, it&#8217;s going to need changes to GTK and to various applications, particularly including Nautilus (the file manager).</p>
<p><a href="http://blogs.gnome.org/metacity/2008/06/11/drag-and-drop/">Far more of a detailed writeup, including feedback from some of the people involved, is found in this entry.</a> Your chronicler believes that implementing this is worth the fairly considerable effort to fix.</p>
<p><em>Photo © wili-hybrid, cc-by.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.gnome.org/metacity/2009/03/09/yes-dragon-drop-its-a-pun/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Squib of the day: keys for windows</title>
		<link>http://blogs.gnome.org/metacity/2009/03/08/squib-of-the-day-keys-for-windows/</link>
		<comments>http://blogs.gnome.org/metacity/2009/03/08/squib-of-the-day-keys-for-windows/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 00:00:23 +0000</pubDate>
		<dc:creator>Thomas Thurman</dc:creator>
				<category><![CDATA[Bug of the day]]></category>
		<category><![CDATA[Switching]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://blogs.gnome.org/metacity/?p=458</guid>
		<description><![CDATA[GNOME bug 97725 raises the interesting idea of associating keys with windows.  Two differing approaches have been advocated: Have a set of keys which work to &#8220;bookmark&#8221; windows, and a corresponding set of keys which mean &#8220;jump to bookmark n&#8220;. Have a keystroke which means &#8220;bookmark this window using the key I&#8217;m about to press&#8221;, [...]]]></description>
			<content:encoded><![CDATA[<p><a title="365 3/26: Going on a Key West adventure/bike ride by jpre86, on Flickr" href="http://www.flickr.com/photos/jennap/2374405247/"><img src="http://farm3.static.flickr.com/2074/2374405247_0b8463127f.jpg" alt="365 3/26: Going on a Key West adventure/bike ride" width="500" height="375" align="right" /></a> <a href='http://bugzilla.gnome.org/show_bug.cgi?id=97725' class='bug-link bug-link-gnome'>GNOME bug 97725</a> raises the interesting idea of associating keys with windows.  Two differing approaches have been advocated:</p>
<ol>
<li>Have a set of keys which work to &#8220;bookmark&#8221; windows, and a corresponding set of keys which mean &#8220;jump to bookmark <em>n</em>&#8220;.</li>
<li>Have a keystroke which means &#8220;bookmark this window using the key I&#8217;m about to press&#8221;, and allow users to press bookmark keystrokes in the <strong>alt+tab</strong> window.</li>
</ol>
<p>It is of course important that the bookmarks are associated with a given window indefinitely, otherwise they become a lot less useful.</p>
<p>As a step towards the second option, I&#8217;ve written a <em>very quick and hacky </em>script called <a href="http://bugzilla.gnome.org/attachment.cgi?id=130251"><strong>metacity-bookmark</strong></a>.  The name is a little misleading, because it should work with any EWMH window manager; it uses the window matching technique described in <a href="http://blogs.gnome.org/metacity/2008/11/02/window-matching/">this post</a>.  As usual, you&#8217;ll need <strong>X11::Protocol</strong> installed from CPAN (&#8220;<em>sudo cpan X11::Protocol</em>&#8220;).</p>
<p>Bind the program to some key or other, which we&#8217;ll call <strong>Bookmark</strong> from now on, and then you can do:</p>
<ul>
<li><strong>Bookmark + <em>key</em></strong> &#8212; jump to the window identified by <em>key</em></li>
<li><strong>Bookmark + Space + <em>key</em></strong> &#8212; identify the current window by <em>key</em></li>
</ul>
<p>Feel free to play with this and let me know what you think.  I&#8217;ve made little windows pop up to tell you the program was running, inspired by the &#8220;<a href="http://en.wikipedia.org/wiki/Compose_key">Compose</a>&#8221; indicator that used to appear onscreen on old DECs, if my memory serves.</p>
<p>One obvious limitation of the current script is that when it activates a window, it doesn&#8217;t switch to the workspace which the window&#8217;s on.  I may fix this another day when I fix all the other problems with this script, but if you fancy diving in and fixing it yourself, it shouldn&#8217;t be too hard.</p>
<p>As a possible extension to this, windows could also have bookmarks automatically associated with them from their creation, based on their name&#8211; for example, the first GIMP window could automatically be given &#8220;G&#8221;.  And either kind of bookmark could be displayed in the <strong>Alt+Tab</strong> switcher next to the associated window&#8217;s preview or icon.</p>
<p><em>Photo © jpre86, cc-by-nc-nd.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.gnome.org/metacity/2009/03/08/squib-of-the-day-keys-for-windows/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  blogs.gnome.org/metacity/category/switching/feed/ ) in 1.31791 seconds, on Feb 10th, 2012 at 2:05 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 10th, 2012 at 3:05 am UTC -->
