mirror of
https://github.com/gnustep/libs-back.git
synced 2025-02-24 04:11:28 +00:00
Don't set cursor on root window.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@22989 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1139d62bb5
commit
ea2d620a27
2 changed files with 13 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2006-05-27 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
|
* Source/x11/XGServerWindow.m (-_DPSsetcursor::): Don't set cursor
|
||||||
|
on root window. Patch by Mircea Trache <aer@shaw.ca>.
|
||||||
|
|
||||||
2006-05-13 Fred Kiefer <FredKiefer@gmx.de>
|
2006-05-13 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Headers/x11/XGServer.h,
|
* Headers/x11/XGServer.h,
|
||||||
|
@ -5,7 +10,7 @@
|
||||||
compute X hints directly from X frame. Previously the X frame
|
compute X hints directly from X frame. Previously the X frame
|
||||||
was converted to an OS frame and from this the X hints were computed.
|
was converted to an OS frame and from this the X hints were computed.
|
||||||
* Source/x11/XGServerWindow.m, Source/x11/XGServerEvent.m:
|
* Source/x11/XGServerWindow.m, Source/x11/XGServerEvent.m:
|
||||||
Replaced all usages of _OSFrameToXHints:for: with _XFrameToXHints:for:.
|
Replaced all usages of [_OSFrameToXHints:for:] with [_XFrameToXHints:for:].
|
||||||
|
|
||||||
2006-05-04 Fred Kiefer <FredKiefer@gmx.de>
|
2006-05-04 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
|
|
|
@ -2956,13 +2956,19 @@ static BOOL cursor_hidden = NO;
|
||||||
void *key;
|
void *key;
|
||||||
NSMapEnumerator enumerator;
|
NSMapEnumerator enumerator;
|
||||||
gswindow_device_t *d;
|
gswindow_device_t *d;
|
||||||
|
Window root;
|
||||||
|
|
||||||
NSDebugLLog (@"NSCursor", @"_DPSsetcursor: cursor = %p, set = %d", c, set);
|
NSDebugLLog (@"NSCursor", @"_DPSsetcursor: cursor = %p, set = %d", c, set);
|
||||||
|
|
||||||
|
root = DefaultRootWindow(dpy);
|
||||||
enumerator = NSEnumerateMapTable (windowmaps);
|
enumerator = NSEnumerateMapTable (windowmaps);
|
||||||
while (NSNextMapEnumeratorPair (&enumerator, &key, (void**)&d) == YES)
|
while (NSNextMapEnumeratorPair (&enumerator, &key, (void**)&d) == YES)
|
||||||
{
|
{
|
||||||
Window win = (Window)key;
|
Window win = (Window)key;
|
||||||
|
|
||||||
|
if (win == root)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (set)
|
if (set)
|
||||||
XDefineCursor(dpy, win, c);
|
XDefineCursor(dpy, win, c);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue