NSAppKitDefined events not sent by XGServerWindow

2013-06-25 Thread Germán Arias
The problem I'm facing with menus in window, is caused by events sent by NSApp (NSAppKitDefined events). But since only XGServerWindow can draw/move/resize a window, I think NSWindow should respond only to events sent by XGServerWindow. Events sent from other objects, don't have sense. And sets wro

Re: NSAppKitDefined events not sent by XGServerWindow

2013-06-25 Thread Germán Arias
On 2013-06-25 19:30:18 -0600 Germán Arias wrote: > The problem I'm facing with menus in window, is caused by events sent by > NSApp (NSAppKitDefined events). But since only XGServerWindow can > draw/move/resize a window, I think NSWindow should respond only to events > sent by XGServerWindow. Eve

Re: NSAppKitDefined events not sent by XGServerWindow

2013-06-25 Thread Germán Arias
Well, this change gives me problems with panels. But no idea why. On 2013-06-25 22:30:29 -0600 Germán Arias wrote: > On 2013-06-25 19:30:18 -0600 Germán Arias wrote: > > Only the subtypes GSAppKitWindowMoved and GSAppKitWindowResized need > be discarded. Attached patch solves the problem. Obje

Re: NSAppKitDefined events not sent by XGServerWindow

2013-06-25 Thread Germán Arias
Now I see that NSApp receives the events when the user move a window. But still, this sometimes send events that not occurs. On 2013-06-25 23:01:03 -0600 Germán Arias wrote: > Well, this change gives me problems with panels. But no idea why. > > On 2013-06-25 22:30:29 -0600 Germán Arias wrote:

Re: NSAppKitDefined events not sent by XGServerWindow

2013-06-26 Thread Wolfgang Lux
Hi Germán Arias, > The problem I'm facing with menus in window, is caused by events sent by > NSApp (NSAppKitDefined events). But since only XGServerWindow can > draw/move/resize a window, I think NSWindow should respond only to events > sent by XGServerWindow. Events sent from other objects, don'

Re: NSAppKitDefined events not sent by XGServerWindow

2013-06-26 Thread Germán Arias
Hi Wolfgang After more tests. I found that these events are sent by XGServerEvent before the last call of -setFrame: on the window. But are executed after this call. So this cause sets a wrong frame. XGServerEvent don't send this events directly to the window. Instead, add these to an NSMutableAr