summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de>2004-11-24 16:58:50 +0000
committerAlexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de>2004-11-24 16:58:50 +0000
commitd1eac007e4213f4e92efc55ca1af032aad9d0bae (patch)
tree68a19c95513c46ec6724086faf6bd5130ea22cdc
parent25d25ee078ee9e4dda5000dbed8eb73a5c85770a (diff)
Finally the multiwindow mode defines a default cursor
-rw-r--r--hw/xwin/ChangeLog5
-rw-r--r--hw/xwin/winmultiwindowwm.c12
2 files changed, 16 insertions, 1 deletions
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 <ago at freedesktop dot org>
+
+ * winmultiwindowwm.c:
+ Finally the multiwindow mode defines a default cursor
+
2004-11-11 Alexander Gottwald <ago at freedesktop dot org>
* 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 <X11/Xlocale.h>
#include <X11/Xproto.h>
#include <X11/Xutil.h>
+#include <X11/cursorfont.h>
/* 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);
+ }
+ }
}