[Top][All Lists]
[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:13:45 +0700 |
hmmm I don't even know how to get current x cursor image may be n/m
On Fri, Jun 24, 2011 at 6:04 AM, Bluna Ratimonkey <address@hidden> wrote:
> 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!!];
>
--
/* Join Bluna Ratimonkey (漫画家) and build the real future for GNUstep ! */
[@"http://mus3.sourceforge.net" setNeedsYourHelps:YES!!];
- Mouse cursor out of place?, Bluna Ratimonkey, 2011/06/22
- Re: Mouse cursor out of place?, Gregory Casamento, 2011/06/23
- Re: Mouse cursor out of place?, Fred Kiefer, 2011/06/23
- Re: Mouse cursor out of place?, Bluna Ratimonkey, 2011/06/23
- Re: Mouse cursor out of place?, Fred Kiefer, 2011/06/23
- Re: Mouse cursor out of place?, Bluna Ratimonkey, 2011/06/23
- Re: Mouse cursor out of place?, Eric Wasylishen, 2011/06/23
- Re: Mouse cursor out of place?, Bluna Ratimonkey, 2011/06/23
- Re: Mouse cursor out of place?,
Bluna Ratimonkey <=
- Re: Mouse cursor out of place?, Eric Wasylishen, 2011/06/23
- Re: Mouse cursor out of place?, Bluna Ratimonkey, 2011/06/23
- Re: Mouse cursor out of place?, Fred Kiefer, 2011/06/28