"Jamin W. Collins" <[EMAIL PROTECTED]> wrote:
> On Tue, 2001-12-11 at 14:08, Jeremy C. Reed wrote:
> > > > CTRL+ALT+BACKSPACE is the default keyboard shortcut to exit The X Window
> > 
> > > It also does NOT save changes to workspace(s) ... i.e. new ones added,
> > > renamed, etc. :-(
> > 
> > Then this sounds like a bug. I am assuming that X would send a polite
> > signal to blackbox to tell it to close. Then blackbox should quickly do
> > the right thing. 
> 
> I don't know, I've always thought that if you wanted to save your
> changes that you should issue a Restart of Blackbox.  Sort of like a
> save feature.  If you  don't then you lose your changes.  

When blackbox shuts down, it does the following:

void Blackbox::shutdown(void) {
  BaseDisplay::shutdown();

  XSetInputFocus(getXDisplay(), PointerRoot, None, CurrentTime);

  LinkedListIterator<BScreen> it(screenList);
  for (; it.current(); it++)
    it.current()->shutdown();

  XSync(getXDisplay(), False);

  save_rc();
}

Now, if blackbox receives any of SIGSEGV,SIGFPE, SIGINT or SIGTERM, it
calls this shtudonw-function, just as if "exit" had been selected from
the menu.  It would therefore stand to reason that if you CTRL-ALT-BSPC
X, bb should receive a SIGTERM and save the current configuration.

If it doesn't, something's fishy.

-Jan

-- 
http://www.netmeister.org
http://guinness.cs.stevens-tech.edu/~jschauma/

Reply via email to