[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: KCM Authorization (was: Re: Review Request: print-manager on kdereview)
From:       Thomas_Lübking <thomas.luebking () gmail ! com>
Date:       2012-08-27 23:31:57
Message-ID: op.wjp3njom9bmiid () localhost ! localdomain
[Download RAW message or body]

Am 27.08.2012, 22:53 Uhr, schrieb Daniel Nicoletti <dantti12@gmail.com>:

> So to avoid the application quiting modules that need to perform
> async tasks like talking to polkit or installing packages (Apper),
> they need to create an event loop so that current module accept()
> doesn't return (if it does quit() will be called).
>
> So the user clicks Apply, while setting the time or doing anything
> the user clicks to close the window, the event loop will return
> and some stuff will be already deleted which causes the crashes...

As far as i understood the bottomline is the task to make an external  
process fully modal to the window, yesno?

Aside that the NETWM spec probably SHOULD say that modal windows must not  
receive input focus and mouse events and also not be closed, weird ideas:
a) add an eventfilter on the application to suck all input events (for  
that window) so clicking apply etc. isn't possible and the window also  
will not receive close events
b) intercept sigterm and reject it as long as you're waiting for the async  
return


Cheers,
Thomas
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic