| Browse all patches |
Author[]
Andrea Vettorello
Synopsis[]
Brings back "stagger" and "off-center" placement modes.
Patch testing[]
- Copy/paste the patch listed below into some file, eg.
TEST.diff. - If you don't have sawfish sources yet, have one, as described get it from GIT repo.
- Go into the directory where sawfish sources reside, eg.
cd sawfish - Test if the patch applies cleanly with this command:
patch -p1 --ignore-whitespace --dry-run < TEST.diff
in case of problems try also:-p0or-p2 - If it applies cleanly, then remove the
--dry-runfrom above command and run it again, otherwise ask on the mailing list. - Compile sawfish:
./autogen.sh && make - Install it for testing, but it depends on your linux distribution.
- It is always better to install sawfish as your distribution package, but it is different for each distribution.
- So you may try
make install, which will install sawifish in/usr/local/share/sawfish/(if you have write access). But then make sure that you run the correct version and delete it from that directory afterwards, to avoid any conflicts.
- Se also
- how to prepare a patch - this instruction is useful for patch testing also.
- Patch testing howto for practical tips.
PS: edit this template if you feel that those instructions can be improved.
Patch[]
Index: lisp/sawfish/wm/placement/stagger.jl =================================================================== --- lisp/sawfish/wm/placement/stagger.jl (revision 4311) +++ lisp/sawfish/wm/placement/stagger.jl (working copy) @@ -51,4 +51,4 @@ (move-window-to w last-x last-y))))) ;;###autoload - (define-placement-mode 'stagger place-window-stagger)) + (define-placement-mode 'stagger place-window-stagger #:for-normal t)) Index: lisp/sawfish/wm/placement/off-center.jl =================================================================== --- lisp/sawfish/wm/placement/off-center.jl (revision 4311) +++ lisp/sawfish/wm/placement/off-center.jl (working copy) @@ -123,4 +123,4 @@ (loop (1+ index)))))))) ;;###autoload - (define-placement-mode 'off-center place-window-off-center)) + (define-placement-mode 'off-center place-window-off-center #:for-normal t)) Index: lisp/sawfish/wm/autoload.jl =================================================================== --- lisp/sawfish/wm/autoload.jl (revision 4311) +++ lisp/sawfish/wm/autoload.jl (working copy) @@ -150,8 +150,8 @@ (autoload-command (quote describe-key-to-screen) (quote sawfish.wm.util.keymap)) (autoload-command (quote quote-event) (quote sawfish.wm.util.keymap)) (autoload-placement-mode 'top-left 'sawfish.wm.placement.top-left #:for-normal t) -(autoload-placement-mode 'stagger 'sawfish.wm.placement.stagger) -(autoload-placement-mode 'off-center 'sawfish.wm.placement.off-center) +(autoload-placement-mode 'stagger 'sawfish.wm.placement.stagger #:for-normal t) +(autoload-placement-mode 'off-center 'sawfish.wm.placement.off-center #:for-normal t) (autoload-command (quote set-viewport-linear) (quote "viewport-linear") #:type (backquote (and (labelled (backquote-unquote (_ "Index:")) (number 0)))) #:class 'default) (autoload-command (quote set-window-viewport-linear) (quote "viewport-linear") #:type (backquote (and (labelled (backquote-unquote (_ "Index:")) (number 0)))) #:class 'default) (autoload-command 'set-viewport-linear:1 'sawfish.wm.commands.viewport-linear #:class 'default)
Community's reasons for inclusion or rejection[]
Patch submitters, please vote also! Yes, obviously your vote will be positive, but it's the place to give your explanation why this patch is good for all Sawfish users, and why it is correct - good reasons for inclusion.
When voting anonymously please write your name, so that it can be associated with your posts on the mailing list. If you are logged in you can sign yourself by typing four tilda characters: ~~~~.
- Please vote with:
vote: yes.,
vote: no.,
vote: let's try in experimental.,
vote: pondering. or
wait for next release.
vote: yes. Patch seems harmless, but I didn't tested both modes enough to say if they are safe to be included on next stable version, and I ignore the reason they were removed. - Aav 12:31, 16 December 2008 (UTC)
vote: yes. Thanks, comitted rev4312 Flashrider [Christopher Bratusek] 20:04, 16 December 2008 (UTC)