mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
quartz: fix manual window move
We need to have gdk skip standard processing of events when we are in manual move in addition to manual resize. https://bugzilla.gnome.org/show_bug.cgi?id=720357
This commit is contained in:
parent
dae65b7c62
commit
394fe4b57e
@ -358,9 +358,13 @@
|
||||
return YES;
|
||||
}
|
||||
|
||||
-(BOOL)isInManualResize
|
||||
/* Used by gdkevents-quartz.c to decide if our sendEvent() handler above
|
||||
* will see the event or if it will be subjected to standard processing
|
||||
* by GDK.
|
||||
*/
|
||||
-(BOOL)isInManualResizeOrMove
|
||||
{
|
||||
return inManualResize;
|
||||
return inManualResize || inManualMove;
|
||||
}
|
||||
|
||||
-(void)beginManualMove
|
||||
|
@ -37,7 +37,7 @@
|
||||
-(BOOL)isInMove;
|
||||
-(void)beginManualMove;
|
||||
-(BOOL)trackManualMove;
|
||||
-(BOOL)isInManualResize;
|
||||
-(BOOL)isInManualResizeOrMove;
|
||||
-(void)beginManualResize;
|
||||
-(BOOL)trackManualResize;
|
||||
-(void)showAndMakeKey:(BOOL)makeKey;
|
||||
|
@ -1360,10 +1360,10 @@ gdk_event_translate (GdkEvent *event,
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* Also when in a manual resize, we ignore events so that these are
|
||||
* pushed to GdkQuartzNSWindow's sendEvent handler.
|
||||
/* Also when in a manual resize or move , we ignore events so that
|
||||
* these are pushed to GdkQuartzNSWindow's sendEvent handler.
|
||||
*/
|
||||
if ([(GdkQuartzNSWindow *)nswindow isInManualResize])
|
||||
if ([(GdkQuartzNSWindow *)nswindow isInManualResizeOrMove])
|
||||
return FALSE;
|
||||
|
||||
/* Find the right GDK window to send the event to, taking grabs and
|
||||
|
Loading…
Reference in New Issue
Block a user