Re: How to avoid setting the desktop window's size.

On Fri, Jul 21, 2006 at 11:51:13AM -0500,  wrote:
> I've been looking at debian bug 
> which basically resolves to
> > Just checked. sawfish saves the size of the desktop window, and
> > although nautilus requests the widget to be the same size as your
> > screen it's forced to the size that sawfish saved..
> 1. Not save the desktop window's size in the session,

The bug is now in sawfish's bugzilla

The patch is posted there. I attach it here for completeness.

Rodrigo Gallardo
GPG-Fingerprint: 7C81 E60C 442E 8FBC D975  2F49 0199 8318 ADC9 BC28
#! /bin/sh /usr/share/dpatch/dpatch-run
## dontSaveDesktopSize.dpatch by  <rodrigo caribdis nul-unu com>
## All lines beginning with `## DP:' are a description of the patch.
## DP: Avoid saving poperties for the desktop window (Nautilus' for example)

diff -urNad sawfish~/lisp/sawfish/wm/session/save.jl sawfish/lisp/sawfish/wm/session/save.jl
--- sawfish~/lisp/sawfish/wm/session/save.jl	2001-01-28 19:34:37.000000000 -0600
+++ sawfish/lisp/sawfish/wm/session/save.jl	2006-08-03 21:33:36.683410698 -0500
@@ -73,6 +73,7 @@
 		      (user-login-name) (system-name)
 		      sawfish-version (current-time-string))
 	      (map-windows (lambda (w)
-			     (sm-print-alist file (sm-get-window-state w))))
+                             (and (not (desktop-window-p w))
+                              (sm-print-alist file (sm-get-window-state w)))))
 	  (close-file file))))))

Attachment: signature.asc
Description: Digital signature

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]