Re: WM_DELETE_WINDOW



On Mon, 22 Nov 1999, Miguel de Icaza wrote:
> ->  My suggestion is to add a new wm protocol, NET_WM_PING:
> ->  type = ClientMessage
> ->  window = client window
> ->  message_type = WM_PROTOCOLS
> ->  format = 32
> ->  data.l[0] = NET_WM_PING
> ->  data.l[1] = opaque handle set by the window manager to identify the ping
> ->  
> ->  The client that recieves this message is obliged to send it back to the root
> ->  window immediatly ( set window=root and do a XSendEvent ).
> 
> What happens with old clients?  You just kill them without giving
> them a chance to save their stuff?

What are you talking about?  I was talking about closing windows, not apps. We
do it just as people did it on X for the last 10 years: either killing or
sending a WM_DELETE_WINDOW client message if the client requests for this
protocol. All I suggested was a compatible extensions for new clients to detect
hanging applications.

> 
> Seems like a dangerous hint, and it can be implemented in a better
> way, as Raster pointed out.

Dangerous? Please elaborate.


Matthias



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