mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-28 00:30:07 +01:00
Finally the multiwindow mode defines a default cursor
This commit is contained in:
parent
25d25ee078
commit
d1eac007e4
2 changed files with 16 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue