mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
Cygwin/X: Initialize native HWND atom when built !XWIN_MULTIWINDOWEXTWM
Fix the native HWND atom identifier to be initialized correctly, when built without external WM support This is neccessary for native window naming to work correctly in multiwindow internal WM mode. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
This commit is contained in:
@@ -58,6 +58,10 @@
|
||||
#include "winwindow.h"
|
||||
#ifdef XWIN_MULTIWINDOWEXTWM
|
||||
#include "windowswmstr.h"
|
||||
#else
|
||||
/* We need the native HWND atom for intWM, so for consistency use the
|
||||
same name as extWM would if we were building with enabled... */
|
||||
#define WINDOWSWM_NATIVE_HWND "_WINDOWSWM_NATIVE_HWND"
|
||||
#endif
|
||||
|
||||
extern void winDebug(const char *format, ...);
|
||||
@@ -1256,11 +1260,10 @@ winInitMultiWindowWM (WMInfoPtr pWMInfo, WMProcArgPtr pProcArg)
|
||||
pWMInfo->atmWmDelete = XInternAtom (pWMInfo->pDisplay,
|
||||
"WM_DELETE_WINDOW",
|
||||
False);
|
||||
#ifdef XWIN_MULTIWINDOWEXTWM
|
||||
|
||||
pWMInfo->atmPrivMap = XInternAtom (pWMInfo->pDisplay,
|
||||
WINDOWSWM_NATIVE_HWND,
|
||||
False);
|
||||
#endif
|
||||
|
||||
|
||||
if (1) {
|
||||
|
||||
Reference in New Issue
Block a user