From d1eac007e4213f4e92efc55ca1af032aad9d0bae Mon Sep 17 00:00:00 2001 From: Alexander Gottwald Date: Wed, 24 Nov 2004 16:58:50 +0000 Subject: [PATCH] Finally the multiwindow mode defines a default cursor --- hw/xwin/ChangeLog | 5 +++++ hw/xwin/winmultiwindowwm.c | 12 +++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/hw/xwin/ChangeLog b/hw/xwin/ChangeLog index 5c18d7e33..fe375b59a 100644 --- a/hw/xwin/ChangeLog +++ b/hw/xwin/ChangeLog @@ -1,3 +1,8 @@ +2004-11-24 Alexander Gottwald + + * winmultiwindowwm.c: + Finally the multiwindow mode defines a default cursor + 2004-11-11 Alexander Gottwald * winconfig.c: diff --git a/hw/xwin/winmultiwindowwm.c b/hw/xwin/winmultiwindowwm.c index 786b4e001..3c82aee90 100644 --- a/hw/xwin/winmultiwindowwm.c +++ b/hw/xwin/winmultiwindowwm.c @@ -43,6 +43,7 @@ #include #include #include +#include /* Fixups to prevent collisions between Windows and X headers */ #define ATOM DWORD @@ -180,7 +181,6 @@ static jmp_buf g_jmpXMsgProcEntry; static Bool g_shutdown = FALSE; static Bool redirectError = FALSE; - /* * PushMessage - Push a message onto the queue */ @@ -1184,6 +1184,16 @@ winInitMultiWindowWM (WMInfoPtr pWMInfo, WMProcArgPtr pProcArg) pWMInfo->atmPrivMap = XInternAtom (pWMInfo->pDisplay, WIN_HWND_CACHE, False); + + + if (1) { + Cursor cursor = XCreateFontCursor (pWMInfo->pDisplay, XC_left_ptr); + if (cursor) + { + XDefineCursor (pWMInfo->pDisplay, DefaultRootWindow(pWMInfo->pDisplay), cursor); + XFreeCursor (pWMInfo->pDisplay, cursor); + } + } }