Search code examples
cwine

Wine Close Button On Top Bar


If "Allow windows manager to decorate window" is on. What is the function name in the wine source that knows a user click this X button and send the WM_CLOSE to the app? Thank you


Solution

  • 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().