[Top][All Lists]

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

Problems with conversion coordinates

From: Germán Arias
Subject: Problems with conversion coordinates
Date: Mon, 24 Jun 2013 01:10:12 -0600
User-agent: GNUMail (Version 1.2.0)

I found a problem with -convertScreenToBase: in NSWindow. This is related with
the problem I have with some in-window menus. This method not always use the 
frame of the window. Sometimes use a previous value of the frame. This
occurs when NSMenuView call -mouseLocationOutsideOfEventStream.
I uploaded a video here:

First I show the problem with Ink. Then I run Ink in a shell to display some 
I added on NSWindow, methods -setFrame:display: and -convertScreenToBase.
And in -changeWindowHeight at GSWindowDecorationView.

At first window that Ink show, all is OK. All methods use the same frame.
But in the second window, only -changeWindowHeight and -setFrame.display:
uses the correct frame. -convertScreenToBase use the correct frame only the 
time, after this use the previous value. And this occurs with all windows that 
open later. Of course, move or resize the window solves the problem. But this 
the idea.

What can cause this problem?

This is with SVN and using Cairo with Glx enabled.


reply via email to

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