[Sawfish] Uniconify window to orginal workspace patch |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/sawfish Archives
]
- To: <sawfish@xxxxxxxxxxxxxxxxxxx>
- Subject: [Sawfish] Uniconify window to orginal workspace patch
- From: fuchur <flohtransporter@xxxxxxxxx>
- Date: Tue, 3 Apr 2012 00:51:00 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:organization:face:x-face :mime-version:content-type:x-mailscanner-spamcheck; bh=sRfMFzASLO5vIcdAs2JjhZbhulQ3xtD5qtGeHITklO0=; b=bXFW4gw9/pbzcSUxrlnlftXPQ1qqHh+kU4Lg1egAQQhSZUh2NszdLatuWlS4cV7CKP iMQ6rAcYKnFqdYPRQ0f2igFUyeVcKojS84W33XP6DwMAYrMVzBfHIagDquLSDZcJ13FQ /G2HuAj5HfLJrZKDVOSzjSEXXmO8UUeqmT4D3hH3pKkp8mbgLEpEXKY7uj3p2RU+7u3j 0kIrCd80tSmssbbxqtv5NBbVYZvQEm6RG+qFBUo1T8BDxkWvvgAijXTdvLVQAFj59HCh gqhg2uxbGmEU5KaCb440uSMB4XXPa15V3FMlKMhgSseX2quvmjyqcM9UM/vyQtON/PxT suHA==
- Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEXo6dXi2qlaWEv9/+78//DLrYv889H/lWcuAAACA0lEQVQ4ja2TQW7jMAxF5RbxWmwhrRMB3jtQ6gskBzAVMGupQXT/I8ynZU+n08xuGDhG8vSpL5IycYszPkucLvpt4ik+DQVPkWmvywYv5z8Uz1NNHdFrjCP5bJqHFYxOhMgRUSHawEkVImyJyfhaa59/a0yEwjom/b9Wsl+uAOYvQO+TMRsILL4o8JU6zmS7BYgEYVJFUQPOZ3JzA0nYU1WAVGJ3WNcAfFHfQHXCKbCzK0jhpjv7Whzhh5A7bSD0tfgsDBDCQNwU/BkgKRVcHFYNNKMkAHMXllwAg6hCoDhCbuvLIZuc31SBB0sb8FO8d2TMMQy1SwMnhqsPZPX3uFY/54It35hmIywKRlrANOlJnJAYPApyX02vxZuSWmYxTkGN9xhrVVDSoGutcSg7yMdtcvcMy106ALA1cAF39WU/pUPuUV24JXk1Zsc7djzJDV6LJYdKOfKo7s4fxc3I8WDvyOm5Hb/rlET00KLqpVZWgVbl2iZxJ1vHtSCIYW7ggQ6uAF3ady4JwPmkYPkfhx5SeEd5VvCxgrJsjaNOa6rjBrQXVz0+NTAqKAowBxjcc3Tr/YAtSpgtgNezgh0AXnHU5AFFG7gN7tgUp2hDi+t2TzfQ04N1buLfYCzFE1n5cTnHPldTH9fvQHe3aN8x3X9eZ6eG9/EnWObx28028R/xH8EvDGr5+fmwfm8AAAAASUVORK5CYII=
- Organization: W.W
Hi,
Sawfish uniconify windows to the current workspaces. With this patch
you can choose whether uniconify to the current or to the workspace
were the windows was minimized.
Comments welcome.
--
Regards,
Fuchur
GPG Fingerprint: CA3B 8204 5B3E 6D48 6D53 C116 E5BC 70D5 B8D7 B2B0
Attachment:
Bildschirmfoto-Sawfish-Einstellungen.png
Description: PNG image
--- sawfish/lisp/sawfish/wm/state/iconify.jl.orgi
+++ sawfish/lisp/sawfish/wm/state/iconify.jl
@@ -83,6 +83,11 @@
:type (choice none transients group)
:group min-max)
+ (defcustom uniconify-to-orginal-workspace nil
+ "Unminimizing windows to the workspace where they were minimized."
+ :type boolean
+ :group min-max)
+
(defvar iconify-window-hook nil)
(defvar uniconify-window-hook nil)
@@ -109,6 +114,10 @@
(show-window w))
((window-in-workspace-p w current-workspace)
(show-window w))
+ ((and (not (window-in-workspace-p w current-workspace))
+ uniconify-to-current-workspace uniconify-to-orginal-workspace)
+ (select-workspace (car (window-workspaces w)))
+ (show-window w))
(uniconify-to-current-workspace
(ws-remove-window w t)
(ws-add-window-to-space w current-workspace)))
Attachment:
signature.asc
Description: PGP signature