sand | 6 Jan 2004 03:56

More Sawfish 1.3 documentation

I've added documentation to my "sawmill.texi" patch for the following
Lisp structures:

    * sawfish.wm.commands
    * sawfish.wm.focus
    * sawfish.wm.frames
    * sawfish.wm.misc
    * sawfish.wm.placement
    * sawfish.wm.session
    * sawfish.wm.server
    * sawfish.wm.stacking
    * sawfish.wm.window-anim
    * sawfish.wm.windows
    * sawfish.wm.workspace
    * sawfish.wm.state.inconify
    * sawfish.wm.state.shading
    * sawfish.wm.state.transient
    * sawfish.wm.state.ignored

I picked these because they are all auto-loaded by Sawfish in
"sawfish/wm.jl".  The Viewport structure is documented as well, but
I've commented out the text because viewports are deprecated.  You can
get the new documentation (which includes my previous C API
documentation changes) from

  http://www.blarg.net/~sand/sawfish/

Can someone with an account on the Sawfish Bugzilla please add a new
bug regarding this, so the patch can get tracked for the next release?
Thanks.
(Continue reading)

gebi matt | 6 Jan 2004 23:01
Picon

utf8 problem

I'm using 1:1.3+cvs20031104-3  deb
from debian sid. My problem is that
window titles of non ut8 strings are not set.

in  .xsession-errors

** (process:4247): WARNING **: Invalid UTF8 string passed to 
pango_layout_set_text()

e.g in mozilla -mail the window title is the actual
email from: line
If line contains non English characters like äüß
the title is not shown or just displayed until these characters.
The same for any other app. like gnome-terminal.

In other WM as metacity or xfwm4 no problems.
(but I do not like them )

thx
gebi

Michal Maruška | 7 Jan 2004 16:38
Picon

Re: extra leave and enter events on button press

Jan Nieuwenhuizen <janneke@...> writes:

> With sawfish 1.3 CVS, a mouse click on a window sends a
> leave_notify_event and a enter_notify_event to the window first,
> before sending the button_press_event.  This is quite annoying, as it
> breaks cut and paste and clicking in browser (mozilla) popup divs.

I've talked about it on irc (#xlib  <at>  freenode) w/ somebody.

The source of this is the grab.
This page explains it:
http://cs.wwc.edu/~davija/XLIB/10-10.html 

So, either the app should ignore those events (quoting from that page)
"with the mode members of the XEnterWindowEvent
and XLeaveWindowEvent structures set to NotifyGrab."

or you should instruct Sawfish not to grab the click events (on those windows).

for example:
(unbind-keys  window-keymap "Button1-Click")

Daniel Pfeiffer | 7 Jan 2004 20:34
Picon
Favicon

Re: extra leave and enter events on button press

Saluton,

mmc <at> maruska.dyndns.org (Michal Maru¹ka) skribis:

> Jan Nieuwenhuizen <janneke <at> gnu.org> writes:
> 
> > With sawfish 1.3 CVS, a mouse click on a window sends a
> > leave_notify_event and a enter_notify_event to the window first,
> > before sending the button_press_event.  This is quite annoying, as it
> > breaks cut and paste and clicking in browser (mozilla) popup divs.
>
> The source of this is the grab.
> This page explains it:
> http://cs.wwc.edu/~davija/XLIB/10-10.html 

Too technical for me.

> So, either the app should ignore those events (quoting from that page)
> "with the mode members of the XEnterWindowEvent
> and XLeaveWindowEvent structures set to NotifyGrab."

Is that a workaround, or is it the correct way for X-apps to work?  And if so do they have to do it themselves or
are the toolkits at fault.

> or you should instruct Sawfish not to grab the click events (on those windows).
> 
> for example:
> (unbind-keys  window-keymap "Button1-Click")

Doesn't work for me, but maybe I have a different problem:  I have some windows, like the Gimp 1.3 toolbox
(Continue reading)

Oliver Fischer | 7 Jan 2004 23:39
Picon

Using popup-menu

Hello list,

I tried today to customize sawfish. The first thing I tried out was to 
create an popup menu. So I copied an example from the web:

-- .sawfischrc --
(require 'sawmill-defaults)

(defvar leo-menu '(("_Minimize all" iconify-all)
                    ("Ma_xmimize all" uniconify-all)
                       ()
                          ("_Shade all" shade-all)
                    ("_Unshade all" unshade-all)
                       ()
                          ("_Cascade all" cascade-windows)
                            ) )

(defun popup-leo-menu ()
   "Display Leos menu."
   (interactive)
   (popup-menu leo-menu))

(bind-keys root-window-keymap
     "Button1-Click1" 'popup-leo-menu)

-- end(e) --

Unfortunately the only result I get is a message "Unbound variable 
popup-menu" on the console. So I am asking myself what ist wrong with 
the example. Can someone give me a hint?
(Continue reading)

Michal Maruška | 8 Jan 2004 00:08
Picon

Re: Using popup-menu

Oliver Fischer <plexus@...> writes:

> (require 'sawmill-defaults)
try to add:

(require 'sawfish.wm.menus)

Jan Nieuwenhuizen | 8 Jan 2004 12:11
Picon
Gravatar

Re: extra leave and enter events on button press

Michal Maru¹ka writes:

> The source of this is the grab.

Thanks very much.

> for example:
> (unbind-keys  window-keymap "Button1-Click")

This works like a charm.  Is there consensus as to whos
responsibility this is, ie, sawfish's or the X apps'?

Or to put it differently, any good reason why this is not the default,
esp. considering metacity (the other gnome wm) seems to do this?

Jan.

--

-- 
Jan Nieuwenhuizen <janneke <at> gnu.org> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org

Oliver Fischer | 8 Jan 2004 14:55
Picon

Re: Using popup-menu

Thank you for the solution.

Regards,
	Oliver Fischer
--

-- 
Dummheit is ooch 'ne Jabe Jottes,
aber man muß se nich mißbrauchen.

sawfish | 8 Jan 2004 15:55

raise and focus

How do I enable "raise and focus" in sawfish 1.3?

I can do it in sawfish 1.2 just fine, through the sawfish configurator,
but in sawfish 1.3 there seems to be no option for "raise and focus". I
must click on windows to raise them, which I don't want to have to do.

I can focus them just fine without clicking, but I cannot raise them
without clicking.

Also, I'd like to be able to set the delay between the time the window
is focused, and the time the window is raised.

Thanks,

Lee

John Harper | 8 Jan 2004 16:28

Re: raise and focus

add the line:

(require 'auto-raise)

to your ~/.sawfishrc file, then restart. That should make the 
auto-raise options reappear,

	John

On Jan 8, 2004, at 6:55 AM, sawfish <at> leekillough.com wrote:

> How do I enable "raise and focus" in sawfish 1.3?
>
> I can do it in sawfish 1.2 just fine, through the sawfish configurator,
> but in sawfish 1.3 there seems to be no option for "raise and focus". I
> must click on windows to raise them, which I don't want to have to do.
>
> I can focus them just fine without clicking, but I cannot raise them
> without clicking.
>
> Also, I'd like to be able to set the delay between the time the window
> is focused, and the time the window is raised.
>
> Thanks,
>
> Lee


Gmane