Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sawfish vs. gnome panel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
jamapii
Guru
Guru


Joined: 16 Sep 2004
Posts: 571

PostPosted: Sun Nov 21, 2004 9:24 pm    Post subject: sawfish vs. gnome panel Reply with quote

There have been reports that sawfish interacts badly with the gnome panel.

To work around this, use "Matched Windows" in the program sawfish-ui.

Class = ^Gnome-panel/gnome-panel$
Name = ^Top Panel$

and set

Placement - Avoid - Yes
Placement - Place mode - top-left
Placement - Position - (0 . 0)
Other - No history - Yes

This forces the top panel to the correct position. Another effect is that one can use the middle mouse button to move the panel objects around. A side effect may be that the objects in the "Notification Area" are forced to position (0 . 0) too (out of the notification area).

See this gnome bug. http://bugzilla.gnome.org/show_bug.cgi?id=140241

EDIT: the middle mouse button seem to be unrelated to this, it is generally suppressed in gtk applications when running Gnome, unless ... ?
Back to top
View user's profile Send private message
jamapii
Guru
Guru


Joined: 16 Sep 2004
Posts: 571

PostPosted: Wed Apr 13, 2005 6:46 pm    Post subject: Reply with quote

With new GNOME versions, the sawfish/panel interaction got worse. There are now two variants of bad interaction. In the weak variant (1), the bottom panel is misplaced. My solution is to make a separate "Matched Windows" entry and "force" the bottom panel to the approximate final position. In the strong variant (2), the panels seem to be cut in half alongside, slightly misplaced and they don't show any applets - but after logout/login work again. These variants seemed to take turns, starting with (2) after each reboot.

I'm now using these "Matched Windows" (copy'n'paste from .sawfish/custom)
Code:
(((WM_CLASS . "^Gnome-panel/gnome-panel$") (WM_NAME . "^Top Panel$")) (avoid . #t) (ignore-program-position . #t) (place-mode . top-left) (position 0 . 0) (focus-when-mapped . #f) (ignored . #t) (no-history . #t)) (((WM_CLASS . "^Gnome-panel/gnome-panel$") (WM_NAME . "^Bottom Panel$")) (avoid . #t) (ignore-program-position . #t) (place-mode . none) (position 0 . 1153) (focus-when-mapped . #f) (ignored . #t) (no-history . #t))


I made an ebuild "x11-wm/sawfish-1.3.20040120-r1", applying the patch on
http://mail.gnome.org/archives/sawfish-list/2004-July/msg00042.html , by adding the lines
Code:
EPATCH_OPTS="-l"
epatch $FILESDIR/sawfish-1.3.20040709-match-WM_NAME.patch
to src_unpack().

While compiling it, it died with the error "libtool: link: unable to infer tagged configuration", but it worked with the line "CC=gcc emerge --oneshot x11-wm/sawfish".

Now variant (2) hasn't happened twice in a row. (1) seems to happen, but it could just be due to my "Matched Windows".

Ubuntu has a newer version of sawfish: http://packages.ubuntu.com/hoary/source/sawfish
Back to top
View user's profile Send private message
jamapii
Guru
Guru


Joined: 16 Sep 2004
Posts: 571

PostPosted: Thu Apr 14, 2005 12:07 pm    Post subject: Reply with quote

I installed the latest Debian sawfish version + the WM_NAME patch (this required fixing links to /home/marillat/... and "export SANDBOX_ON=0" before the emake). Now variant (2) happens always, which is good for fixing it reliably. The patch didn't help. The solution is to run this script:
Code:
#!/bin/sh

cd
cd .sawfish/sessions

ls *-* >/dev/null 2>/dev/null || exit

file=$(ls *-* --sort=time | head -n 1)

sed -r -i -e '/^\(\(name . "(Top|Bottom) Panel"/,/^$/d' $file
before starting sawfish. This works according to information in the mailing list thread http://mail.gnome.org/archives/sawfish-list/2004-July/msg00042.html . To make sure the script runs before sawfish, I tried putting it in Gnome Menu/"Desktop preferences"/"Advanced"/"Sessions". I don't recommend it because this way Gnome inserts a very long sleep between the script and sawfish.

Instead, I wrote a .gnomerc in the home directory
Code:
#!/bin/sh
fix_sawfish_sessions    # the script above
gnome-session             # IMPORTANT!
then did chmod +x .gnomerc (IMPORTANT!). I found out how to do it by reading /etc/X11/Sessions/Gnome

The way to start scripts before starting the real gnome may be different on your system, so look at .xinitrc , too.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum