gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mouse cursor out of place?


From: Bluna Ratimonkey
Subject: Re: Mouse cursor out of place?
Date: Fri, 24 Jun 2011 06:04:42 +0700

Thanks Eric, and especially for letting me see it somewhere else for
the first time :)


BTW, do you guys think we could use something like virtual window that
didn't actually get mapped but blend the image with XcursorImage so
image doesn't have a chance to jump on load and only map the window on
slide back?

On Fri, Jun 24, 2011 at 5:17 AM, Eric Wasylishen <address@hidden> wrote:
> I just did a little debugging on this.. I got down to -[GSDragView 
> _setupWindowFor:mousePosition:imagePosition:] and the coordinates passed in 
> to here are correct. The frame that is set on _window in that method is 
> correct, but the place where the window actually shows up is at about double 
> the y-coordinate of where it should.
>
> I attached a screenshot. I started the drag at around (184, 180) in screen 
> coordinates, which is what iPoint is. You can see that _window reports it has 
> a frame origin at that point, but it actually appear on screen around (184, 
> 360).
>
> -Eric
>
>
>
>
>
>
> On 2011-06-23, at 3:53 PM, Bluna Ratimonkey wrote:
>
>> Oh sorry,
>> the mouse down was
>>
>> NSPoint mouseDownPoint = [self convertPointFromBase:[anEvent 
>> locationInWindow]];
>>
>> I tried this instead without success though. Was wondering if I should do 
>> this.
>>
>>                               [self dragImage:[NSImage 
>> imageNamed:@"Plug.tiff"]
>>                                       at:[self convertPointFromBase:[anEvent 
>> locationInWindow]]
>>                                       offset:NSZeroSize
>>                                       event:anEvent
>>                                       pasteboard:pb
>>                                       source:mouseDownPort
>>                                       slideBack:YES];
>>
>> The case is in TMNodeView.m line 842
>> Thanks,
>> Bluna
>
>
>



-- 
/* Join Bluna Ratimonkey (漫画家) and build the real future for GNUstep ! */
   [@"http://mus3.sourceforge.net"; setNeedsYourHelps:YES!!];



reply via email to

[Prev in Thread] Current Thread [Next in Thread]