[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] Ctrl+Alt+Q deactivated
Helmut Karlowski wrote:
> This is a multi-part message in MIME format. To properly display this message you need a MIME-Version 1.0 compliant Email program.
>
> ------MIME delimiter for sendEmail-492096.128714369
> Content-Type: text/plain;
> charset=iso-8859-1
> Content-Transfer-Encoding: quoted-printable
>
> 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;
if( except == (struct xa_client*)-1 )
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