summaryrefslogtreecommitdiff
path: root/hw/xwin/winmultiwindowwm.c
diff options
context:
space:
mode:
authorAlexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de>2004-11-24 16:56:03 +0000
committerAlexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de>2004-11-24 16:56:03 +0000
commita7a07d0c71aa3f2e224cceea7e8d8348523136ee (patch)
treeeea2b3a29270bc003fa6a1b734dfac1acd54d980 /hw/xwin/winmultiwindowwm.c
parentca4da62478a3ad86ab087245bf8eb7d7fadf31de (diff)
Finally the multiwindow mode defines a default cursor
Diffstat (limited to 'hw/xwin/winmultiwindowwm.c')
-rw-r--r--hw/xwin/winmultiwindowwm.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/hw/xwin/winmultiwindowwm.c b/hw/xwin/winmultiwindowwm.c
index 1ac99f958..c737ac05f 100644
--- a/hw/xwin/winmultiwindowwm.c
+++ b/hw/xwin/winmultiwindowwm.c
@@ -45,6 +45,7 @@
#include <X11/Xlocale.h>
#include <X11/Xproto.h>
#include <X11/Xutil.h>
+#include <X11/cursorfont.h>
/* Windows headers */
#include <Xwindows.h>
@@ -187,7 +188,6 @@ static Bool g_shutdown = FALSE;
static Bool redirectError = FALSE;
static Bool g_fAnotherWMRunnig = FALSE;
-
/*
* PushMessage - Push a message onto the queue
*/
@@ -1227,6 +1227,16 @@ winInitMultiWindowWM (WMInfoPtr pWMInfo, WMProcArgPtr pProcArg)
pWMInfo->atmPrivMap = XInternAtom (pWMInfo->pDisplay,
WINDOWSWM_NATIVE_HWND,
False);
+
+
+ if (1) {
+ Cursor cursor = XCreateFontCursor (pWMInfo->pDisplay, XC_left_ptr);
+ if (cursor)
+ {
+ XDefineCursor (pWMInfo->pDisplay, DefaultRootWindow(pWMInfo->pDisplay), cursor);
+ XFreeCursor (pWMInfo->pDisplay, cursor);
+ }
+ }
}