wine X button on top bar

Ken Thomases ken at codeweavers.com
Mon Oct 10 10:16:36 CDT 2016


On Oct 9, 2016, at 8:30 PM, A B <dianaxxyyzz at gmail.com> wrote:
> 
> If "Allow windows manager to decorate window" is on.
> What is the function name that knows a user click this X button and send the WM_CLOSE to the app?

The window manager sends ClientMessage with type WM_PROTOCOLS and the protocol value WM_DELETE_WINDOW.  This is handled in dlls/winex11.drv/event.c: X11DRV_ClientMessage() -> handle_wm_protocols().

-Ken




More information about the wine-devel mailing list