bugGNUstep - Bugs: bug #5871, Mouse cursor not always...


You are not allowed to post comments on this tracker with your current authentication level.

bug #5871: Mouse cursor not always updated/reset

Submitted by:  None
Submitted on:  Sat 11 Oct 2003 02:38:39 PM UTC  
Category: Gui/AppKitSeverity: 2 - Minor
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: Fred Kiefer <FredKiefer>
Open/Closed: Closed

(Jump to the original submission Jump to the original submission)

Mon 19 Feb 2007 05:11:06 PM UTC, comment #13:

The last fix resolved this issue.

Fred Kiefer <FredKiefer>
Project MemberIn charge of this item.
Tue 30 May 2006 07:36:49 PM UTC, comment #12:

You're right, there's no reason to duplicate all that code. :) I've changed it in the attached patch so that [NSWindow invalidateCursorRectsForView:] calls [NSView discardCursorRects]. The reason for not doing it the other way around is that according to apple's docs, invalidateCursorRectsForView should invalidate the cursor rect and automatically (or whenever the window becomes key) calls [NSWindow resetCursorRects], while [NSView discardCursorRects] should simply discard, but not be reset until another piece of code specifically invalidates or resets the rects again.

M. Trache <postaer>
Mon 29 May 2006 10:46:18 PM UTC, comment #11:

Wouldn't it be easier if we change the code in [NSView discardCursorRects] to call [NSWindow invalidateCursorRectsForView:] instead of duplicating most of the code?
I am not sure, how this would affect the different faked mouse events that get send for cursor rectangles. That's why I did not dare to change the code myself :-)

Fred Kiefer <FredKiefer>
Project MemberIn charge of this item.
Mon 29 May 2006 07:21:01 PM UTC, comment #10:

Hi, I just noticed that the cursor still does not reset when selecting text in a textfield and then dragging far enough to cause it so scroll, so that the cursor ends up outside of the textfield. I'm attaching a fix for it.

M. Trache <postaer>
Sat 27 May 2006 10:01:42 PM UTC, comment #9:

I did apply your full patch.
Thank you very much for it!!!

Fred Kiefer <FredKiefer>
Project MemberIn charge of this item.
Wed 24 May 2006 09:12:30 PM UTC, comment #8:

In XGServerWindow, the description for _DPSsetcursor:: states that it should change the cursor on every X window owned by the application, yet I noticed that the windowmaps map table also contains the root window. I didn't know whether that is by design or not, so that extra bit of code in the patch just skips the root window so that the cursor is changed only on the application's actual windows.

With regards to the changes in NSCursor, when the NSCursor is explicitly set on mouseEntered: (with setOnMouseEntered:), it does not get pushed onto the cursor stack and therefore, whenever the mouse leaves the cursor rectangle, the cursor does not change back. The extra bit of code basically changes the cursor back to the default cursor, just for that particular situation. Admittedly, it's a bit of a hack, but I wasn't really sure how else to deal with that.. The bug is particularly visible in emacs.app (emacs-on-aqua.sourceforge.net) whenever the mouse cursor is moved off the text area, and the cursor remains an IBeam cursor. Hope this helps.

M. Trache <postaer>
Tue 23 May 2006 11:12:59 PM UTC, comment #7:

This patch looks very promissing to me. It would be great to resolve this rather old bug with it.

I think, I do understand what the code in NSView and NSWindow tries to do, but what is the other code (NSCursor and XGServerWindow) for? If I cannot figure this out, I might submit your patch without these bits.

Fred Kiefer <FredKiefer>
Project MemberIn charge of this item.
Tue 16 May 2006 11:58:29 PM UTC, comment #6:

Hello, I've been using this simple patch (attached) which seems to resolve the problem, and it also takes care of updating the cursor as well if a view is moved underneath a cursor, etc.

M. Trache <postaer>
(Why is this post is considered to be spam? Users may have reported it to be spam or, if it has been recently posted, it may just be waiting for spamchecks to be run.)
Spam content:

<a href='http://wvvw.dynu.net/masterzone/asian-model-video-clips.html'> http://wvvw.dynu.net/masterzone/asian-model-video-clips.html - asian model video clips </a> http://wvvw.dynu.net/masterzone/asian-model-video-clips.html
<a href='http://wvvw.dynu.net/masterzone/asian-cock-pictures.html'> http://wvvw.dynu.net/masterzone/asian-cock-pictures.html - asian cock pictures </a> http://wvvw.dynu.net/masterzone/asian-cock-pictures.html
<a href='http://pivasik.dynu.net/puzan/daily-thumbs-old-grannys.html'> http://pivasik.dynu.net/puzan/daily-thumbs-old-grannys.html - daily thumbs old grannys </a> http://pivasik.dynu.net/puzan/daily-thumbs-old-grannys.html
<a href='http://wvvw.dynu.net/door/fat-free-gallery-nude.html'> http://wvvw.dynu.net/door/fat-free-gallery-nude.html - fat free gallery nude </a> http://wvvw.dynu.net/door/fat-free-gallery-nude.html
<a href='http://mamba.dynu.net/puzan/galleries-amatuer-mature-women.html'> http://mamba.dynu.net/puzan/galleries-amatuer-mature-women.html - galleries amatuer mature women </a> http://mamba.dynu.net/puzan/galleries-amatuer-mature-women.html
<a href='http://pivasik.dynu.net/door/fat-fuck-hard.html'> http://pivasik.dynu.net/door/fat-fuck-hard.html - fat fuck hard </a> http://pivasik.dynu.net/door/fat-fuck-hard.html
<a href='http://mamba.dynu.net/puzan/mature-men-free-pics.html'> http://mamba.dynu.net/puzan/mature-men-free-pics.html - mature men free pics </a> http://mamba.dynu.net/puzan/mature-men-free-pics.html
<a href='http://wvvw.dynu.net/kozel/busty-ladies-pics.html'> http://wvvw.dynu.net/kozel/busty-ladies-pics.html - busty ladies pics </a> http://wvvw.dynu.net/kozel/busty-ladies-pics.html
<a href='http://wvvw.dynu.net/puzan/seduced-by-an-older-woman.html'> http://wvvw.dynu.net/puzan/seduced-by-an-older-woman.html - seduced by an older woman </a> http://wvvw.dynu.net/puzan/seduced-by-an-older-woman.html
<a href='http://mamba.dynu.net/masterzone/free-asian-nude-picture.html'> http://mamba.dynu.net/masterzone/free-asian-nude-picture.html - free asian nude picture </a> http://mamba.dynu.net/masterzone/free-asian-nude-picture.html
<a href='http://pivasik.dynu.net/kozel/big-round-tits.html'> http://pivasik.dynu.net/kozel/big-round-tits.html - big round tits </a> http://pivasik.dynu.net/kozel/big-round-tits.html
<a href='http://mamba.dynu.net/masterzone/asian-singles.html'> http://mamba.dynu.net/masterzone/asian-singles.html - asian singles </a> http://mamba.dynu.net/masterzone/asian-singles.html
<a href='http://pivasik.dynu.net/masterzone/asian-and-photos.html'> http://pivasik.dynu.net/masterzone/asian-and-photos.html - asian and photos </a> http://pivasik.dynu.net/masterzone/asian-and-photos.html
<a href='http://mamba.dynu.net/green/cumshot-facials-sample-movie.html'> http://mamba.dynu.net/green/cumshot-facials-sample-movie.html - cumshot facials sample movie </a> http://mamba.dynu.net/green/cumshot-facials-sample-movie.html
<a href='http://pivasik.dynu.net/masterzone/japanese-girls-gallery.html'> http://pivasik.dynu.net/masterzone/japanese-girls-gallery.html - japanese girls gallery </a> http://pivasik.dynu.net/masterzone/japanese-girls-gallery.html
<a href='http://pivasik.dynu.net/puzan/free-mature-pussy-pics.html'> http://pivasik.dynu.net/puzan/free-mature-pussy-pics.html - free mature pussy pics </a> http://pivasik.dynu.net/puzan/free-mature-pussy-pics.html
<a href='http://mamba.dynu.net/kozel/free-vintage-tits-archives.html'> http://mamba.dynu.net/kozel/free-vintage-tits-archives.html - free vintage tits archives </a> http://mamba.dynu.net/kozel/free-vintage-tits-archives.html
<a href='http://pivasik.dynu.net/vatnik/story-transexual-vampire.html'> http://pivasik.dynu.net/vatnik/story-transexual-vampire.html - story transexual vampire </a> http://pivasik.dynu.net/vatnik/story-transexual-vampire.html
<a href='http://mamba.dynu.net/vatnik/shemale-dom.html'> http://mamba.dynu.net/vatnik/shemale-dom.html - shemale dom </a> http://mamba.dynu.net/vatnik/shemale-dom.html
<a href='http://pivasik.dynu.net//interracial-porn-sexo.html'> http://pivasik.dynu.net//interracial-porn-sexo.html - interracial porn sexo </a> http://pivasik.dynu.net//interracial-porn-sexo.html
<a href='http://wvvw.dynu.net/kozel/titty-vacuum.html'> http://wvvw.dynu.net/kozel/titty-vacuum.html - titty vacuum </a> http://wvvw.dynu.net/kozel/titty-vacuum.html
<a href='http://wvvw.dynu.net/masterzone/japanese-sex-words.html'> http://wvvw.dynu.net/masterzone/japanese-sex-words.html - japanese sex words </a> http://wvvw.dynu.net/masterzone/japanese-sex-words.html
<a href='http://pivasik.dynu.net/green/free-mpeg-cumshots.html'> http://pivasik.dynu.net/green/free-mpeg-cumshots.html - free mpeg cumshots </a> http://pivasik.dynu.net/green/free-mpeg-cumshots.html
<a href='http://wvvw.dynu.net/masterzone/japanese-sex-groups.html'> http://wvvw.dynu.net/masterzone/japanese-sex-groups.html - japanese sex groups </a> http://wvvw.dynu.net/masterzone/japanese-sex-groups.html
<a href='http://pivasik.dynu.net/vatnik/transvestite-sissy.html'> http://pivasik.dynu.net/vatnik/transvestite-sissy.html - transvestite sissy </a> http://pivasik.dynu.net/vatnik/transvestite-sissy.html
<a href='http://mamba.dynu.net/masterzone/asian-bad-girls.html'> http://mamba.dynu.net/masterzone/asian-bad-girls.html - asian bad girls </a> http://mamba.dynu.net/masterzone/asian-bad-girls.html
<a href='http://mamba.dynu.net/kozel/big-tits-fantasy.html'> http://mamba.dynu.net/kozel/big-tits-fantasy.html - big tits fantasy </a> http://mamba.dynu.net/kozel/big-tits-fantasy.html
<a href='http://mamba.dynu.net/puzan/free-sexy-mature-women.html'> http://mamba.dynu.net/puzan/free-sexy-mature-women.html - free sexy mature women </a> http://mamba.dynu.net/puzan/free-sexy-mature-women.html
<a href='http://wvvw.dynu.net/puzan/mature-women-hairstyles.html'> http://wvvw.dynu.net/puzan/mature-women-hairstyles.html - mature women hairstyles </a> http://wvvw.dynu.net/puzan/mature-women-hairstyles.html
<a href='http://wvvw.dynu.net/puzan/mature-hardcore-women-thumbnails.html'> http://wvvw.dynu.net/puzan/mature-hardcore-women-thumbnails.html - mature hardcore women thumbnails </a> http://wvvw.dynu.net/puzan/mature-hardcore-women-thumbnails.html
<a href='http://pivasik.dynu.net/puzan/younger-men-dating-older-women.html'> http://pivasik.dynu.net/puzan/younger-men-dating-older-women.html - younger men dating older women </a> http://pivasik.dynu.net/puzan/younger-men-dating-older-women.html
WBR AxveVLmWZiQnosgtq
Mon 14 Feb 2005 08:52:59 PM UTC, comment #5:

The preliminary result of my investigation into this subbject is that we need to send another round of _checkCursorRectangles:forEvent: when the window closes with an event that lies outside the window. That way cursor rects would notice that they have to switch back the cursor, if they did currently change it.
I am not sure, how this would work together with the second aspect of this bug, when a view moves (for example gets scrolled inside a suoer view). Perhaps we even need to go further and check on each discard of a cursor rect if the cursor was inside and reset the cursor than. Maybe a similar check is needed if the the mouse cursor is inside a cursor rect, when it gets created?

Fred Kiefer <FredKiefer>
Project MemberIn charge of this item.
Thu 13 Jan 2005 02:19:08 PM UTC, comment #4:

This can also happen when views move around, as in bug #6214.

Alexander Malmberg <alexm>
Project Member
Fri 17 Oct 2003 02:29:01 PM UTC, comment #3:

I see similar problems a lot. I.e. when/after renaming a file in GWorkspace - the cursor keeps the "vertical line" look.
I've also seen this in TalkSoup and other apps as well.

- Martin

Thu 16 Oct 2003 10:32:36 PM UTC, comment #2:

I can reproduce it here using the key equivalent for close alt-w

matt rice <ratmice>
Project Member
Thu 16 Oct 2003 10:19:58 PM UTC, comment #1:

How do you close the window without moving the mouse? I've tried things like hiding the app, but I can't replicate the problem.

Adam Fedor <fedor>
Project Administrator
Sat 11 Oct 2003 02:38:39 PM UTC, original submission:

When i have an open GNUStep window with a textfield and the mousecursor is in this textfield it looks like a vertical line instead of a pointer.
When i close the window without moving the mouse cursor, the cursor isn't updated/reset to the default look, but stays a vertical line.



Attached Files
file #10085:  cursor-update-3.diff added by postaer (1KiB - text/plain)
file #10073:  cursor-update-2.diff added by postaer (1017B - text/plain)
file #9985:  cursor-update.diff added by postaer (4KiB - text/plain)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by FredKiefer (Posted a comment)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 14 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 19 Feb 2007 05:11:06 PM UTCFredKieferStatusIn Progress=>Fixed
      Open/ClosedIn Test=>Closed
    Tue 30 May 2006 07:36:49 PM UTCpostaerAttached File-=>Added cursor-update-3.diff, #10085
    Mon 29 May 2006 10:46:18 PM UTCFredKieferStatusFixed=>In Progress
    Mon 29 May 2006 07:21:01 PM UTCpostaerAttached File-=>Added cursor-update-2.diff, #10073
    Sat 27 May 2006 10:01:42 PM UTCFredKieferStatusIn Progress=>Fixed
      Open/ClosedOpen=>In Test
    Tue 23 May 2006 11:12:59 PM UTCFredKieferSeverity1 - Wish=>2 - Minor
      StatusNone=>In Progress
      Assigned tofedor=>FredKiefer
    Tue 16 May 2006 11:58:29 PM UTCpostaerAttached File-=>Added cursor-update.diff, #9985
    Thu 13 Jan 2005 02:19:08 PM UTCalexmSummaryMouse cursor not updated/reset when closing window=>Mouse cursor not always updated/reset
    Thu 16 Oct 2003 10:19:58 PM UTCfedorSeverity3 - Normal=>(Error - Not Found)
      Assigned toNone=>NA

    Back to the top

    Powered by Savane 3.1-cleanup1