mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-07 06:18:03 +02: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>
|
2004-11-11 Alexander Gottwald <ago at freedesktop dot org>
|
||||||
|
|
||||||
* winconfig.c:
|
* winconfig.c:
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,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>
|
||||||
|
|
||||||
/* Fixups to prevent collisions between Windows and X headers */
|
/* Fixups to prevent collisions between Windows and X headers */
|
||||||
#define ATOM DWORD
|
#define ATOM DWORD
|
||||||
|
|
@ -180,7 +181,6 @@ static jmp_buf g_jmpXMsgProcEntry;
|
||||||
static Bool g_shutdown = FALSE;
|
static Bool g_shutdown = FALSE;
|
||||||
static Bool redirectError = FALSE;
|
static Bool redirectError = FALSE;
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* PushMessage - Push a message onto the queue
|
* PushMessage - Push a message onto the queue
|
||||||
*/
|
*/
|
||||||
|
|
@ -1184,6 +1184,16 @@ winInitMultiWindowWM (WMInfoPtr pWMInfo, WMProcArgPtr pProcArg)
|
||||||
pWMInfo->atmPrivMap = XInternAtom (pWMInfo->pDisplay,
|
pWMInfo->atmPrivMap = XInternAtom (pWMInfo->pDisplay,
|
||||||
WIN_HWND_CACHE,
|
WIN_HWND_CACHE,
|
||||||
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…
Add table
Reference in a new issue