Finally the multiwindow mode defines a default cursor
This commit is contained in:
parent
ca4da62478
commit
a7a07d0c71
|
@ -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-22 Alexander Gottwald <ago at freedesktop dot org>
|
2004-11-22 Alexander Gottwald <ago at freedesktop dot org>
|
||||||
|
|
||||||
* winmultiwindowwm.c:
|
* winmultiwindowwm.c:
|
||||||
|
|
|
@ -45,6 +45,7 @@
|
||||||
#include <X11/Xlocale.h>
|
#include <X11/Xlocale.h>
|
||||||
#include <X11/Xproto.h>
|
#include <X11/Xproto.h>
|
||||||
#include <X11/Xutil.h>
|
#include <X11/Xutil.h>
|
||||||
|
#include <X11/cursorfont.h>
|
||||||
|
|
||||||
/* Windows headers */
|
/* Windows headers */
|
||||||
#include <Xwindows.h>
|
#include <Xwindows.h>
|
||||||
|
@ -187,7 +188,6 @@ static Bool g_shutdown = FALSE;
|
||||||
static Bool redirectError = FALSE;
|
static Bool redirectError = FALSE;
|
||||||
static Bool g_fAnotherWMRunnig = FALSE;
|
static Bool g_fAnotherWMRunnig = FALSE;
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* PushMessage - Push a message onto the queue
|
* PushMessage - Push a message onto the queue
|
||||||
*/
|
*/
|
||||||
|
@ -1227,6 +1227,16 @@ winInitMultiWindowWM (WMInfoPtr pWMInfo, WMProcArgPtr pProcArg)
|
||||||
pWMInfo->atmPrivMap = XInternAtom (pWMInfo->pDisplay,
|
pWMInfo->atmPrivMap = XInternAtom (pWMInfo->pDisplay,
|
||||||
WINDOWSWM_NATIVE_HWND,
|
WINDOWSWM_NATIVE_HWND,
|
||||||
False);
|
False);
|
||||||
|
|
||||||
|
|
||||||
|
if (1) {
|
||||||
|
Cursor cursor = XCreateFontCursor (pWMInfo->pDisplay, XC_left_ptr);
|
||||||
|
if (cursor)
|
||||||
|
{
|
||||||
|
XDefineCursor (pWMInfo->pDisplay, DefaultRootWindow(pWMInfo->pDisplay), cursor);
|
||||||
|
XFreeCursor (pWMInfo->pDisplay, cursor);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue