Make manual resizing smoother by processing events after changing the
2007-12-20 Richard Hult <richard@imendio.com> * gdk/quartz/GdkQuartzWindow.c: * gdk/quartz/GdkQuartzWindow.h: Make manual resizing smoother by processing events after changing the size. svn path=/trunk/; revision=19206
This commit is contained in:

committed by
Richard Hult

parent
3e766f3334
commit
14ae647a37
@ -1,3 +1,9 @@
|
|||||||
|
2007-12-20 Richard Hult <richard@imendio.com>
|
||||||
|
|
||||||
|
* gdk/quartz/GdkQuartzWindow.c:
|
||||||
|
* gdk/quartz/GdkQuartzWindow.h: Make manual resizing smoother by
|
||||||
|
processing events after changing the size.
|
||||||
|
|
||||||
2007-12-20 Richard Hult <richard@imendio.com>
|
2007-12-20 Richard Hult <richard@imendio.com>
|
||||||
|
|
||||||
* modules/other/gail/gailwindow.c: (gail_window_get_mdi_zorder):
|
* modules/other/gail/gailwindow.c: (gail_window_get_mdi_zorder):
|
||||||
|
@ -301,9 +301,11 @@
|
|||||||
float dx, dy;
|
float dx, dy;
|
||||||
NSSize min_size;
|
NSSize min_size;
|
||||||
|
|
||||||
if (!inManualResize)
|
if (!inManualResize || inTrackManualResize)
|
||||||
return NO;
|
return NO;
|
||||||
|
|
||||||
|
inTrackManualResize = YES;
|
||||||
|
|
||||||
currentLocation = [self convertBaseToScreen:[self mouseLocationOutsideOfEventStream]];
|
currentLocation = [self convertBaseToScreen:[self mouseLocationOutsideOfEventStream]];
|
||||||
currentLocation.x -= initialResizeFrame.origin.x;
|
currentLocation.x -= initialResizeFrame.origin.x;
|
||||||
currentLocation.y -= initialResizeFrame.origin.y;
|
currentLocation.y -= initialResizeFrame.origin.y;
|
||||||
@ -332,6 +334,12 @@
|
|||||||
|
|
||||||
[self setFrame:newFrame display:YES];
|
[self setFrame:newFrame display:YES];
|
||||||
|
|
||||||
|
/* Let the resizing be handled by GTK+. */
|
||||||
|
if (g_main_context_pending (NULL))
|
||||||
|
g_main_context_iteration (NULL, FALSE);
|
||||||
|
|
||||||
|
inTrackManualResize = NO;
|
||||||
|
|
||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
/* Manually triggered move/resize (not by the window manager) */
|
/* Manually triggered move/resize (not by the window manager) */
|
||||||
BOOL inManualMove;
|
BOOL inManualMove;
|
||||||
BOOL inManualResize;
|
BOOL inManualResize;
|
||||||
|
BOOL inTrackManualResize;
|
||||||
NSPoint initialMoveLocation;
|
NSPoint initialMoveLocation;
|
||||||
NSPoint initialResizeLocation;
|
NSPoint initialResizeLocation;
|
||||||
NSRect initialResizeFrame;
|
NSRect initialResizeFrame;
|
||||||
|
Reference in New Issue
Block a user