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

Re: [MiNT] Ctrl+Alt+Q deactivated



Jo Even Skarstein wrote:

> From: Helmut Karlowski <helmut.karlowski@ish.de>
> Sent: Thursday, September 23, 2010 11:21 AM
> To: <mint@lists.fishpool.fi>
> Cc: <helmut.karlowski@ish.de>
> Subject: Re: [MiNT] Ctrl+Alt+Q deactivated
>
>
> >> I haven't checked the sources, but I'm quite sure it issues a shutdown
> >> using
> >> shel_write(). So yes, it asks XaAES to perform a shutdown.
> >
> > So the shutdown should be performed without alert when issued from an
> > extern app.
>
> The alert should *only* be displayed when shutdown is initiated by
> Ctrl+Alt+Q/H. Isn't the purpose of this alert to avoid accidental shutdown?

I guess I've found it.

Try this in taskman.c

void
quit_all_apps(enum locks lock, struct xa_client *except, short reason)
{
  struct xa_client *client;
  bool do_alert = true;

  //BLOG((0,"quit_all_apps:except=%lx", except));
  if( except )
  {
    do_alert = false;
    except = 0;
  }

  //BLOG((0,"quit_all_apps:reason=%d,do_alert=%d", reason, do_alert));
  if ( do_alert == true && xaaes_do_form_alert( lock, C.Hlp, 1, ASK_QUITALL_ALERT ) != 2 )
  {

..

-Helmut