[Top][All Lists]

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

Re: [RP] tmpwm behavior

From: Bernhard R. Link
Subject: Re: [RP] tmpwm behavior
Date: Mon, 8 Sep 2008 17:50:46 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

* J.R. Mauro <address@hidden> [080908 15:08]:
> Now maybe I have a broken install or a broken understanding, but tmpwm just
> runs the new windowmanager and
> doesn't do any kind of recovery when the window manager exits to get RP back
> as your WM.

It actually does steps to get everything back, but there exists a race
condition in ratpoison that it sometimes tries this before the X server
has realized the other window manager already exited, so that reclaiming
control fails. (Most window managers need a little time after
disconnecting from the X server before finaly terminating, but when the
window manager is very fast in terminating or killed instead of properly
shutdown, it happens more often).

> As it stands, I kill the
> temporary WM and then run ratpoison -c "tmpwm /usr/bin/ratpoison". Is this
> the way we're supposed to do it or am
> I missing something here?

Instead of tmpwm newwm would be better, as it does not start ratpoison
as temporary window manager within ratpoison but replaces it with a new
copy. (If your other window manager also support this you can also
switch between the two managers using this way without tmpwm).

I've not properly analysed it (race conditions are an ugly thing), but
I think there can be different things that fail. Either ratpoison can
fail at all (most unlikely) then even ratpoison -c will no longer work.
if ratpoison -c still works, then only the key grabbing might have
failed, then even other commands instead of tmpwm or newwm can perhaps
give you back an working ratpoison.

        Bernhard R. Link

reply via email to

[Prev in Thread] Current Thread [Next in Thread]