mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-20 05:50:11 +00:00
Calculate the frame rect correctly when resizing toplevels, fixes bug
2007-11-03 Richard Hult <richard@imendio.com> * gdk/quartz/gdkwindow-quartz.c: (move_resize_window_internal): Calculate the frame rect correctly when resizing toplevels, fixes bug #492209. svn path=/trunk/; revision=18963
This commit is contained in:
parent
fc2ccc2586
commit
01ce77f540
@ -1,3 +1,9 @@
|
|||||||
|
2007-11-03 Richard Hult <richard@imendio.com>
|
||||||
|
|
||||||
|
* gdk/quartz/gdkwindow-quartz.c: (move_resize_window_internal):
|
||||||
|
Calculate the frame rect correctly when resizing toplevels, fixes
|
||||||
|
bug #492209.
|
||||||
|
|
||||||
2007-11-01 Richard Hult <richard@imendio.com>
|
2007-11-01 Richard Hult <richard@imendio.com>
|
||||||
|
|
||||||
* gdk/quartz/GdkQuartzWindow.c:
|
* gdk/quartz/GdkQuartzWindow.c:
|
||||||
|
@ -1196,13 +1196,14 @@ move_resize_window_internal (GdkWindow *window,
|
|||||||
|
|
||||||
if (impl->toplevel)
|
if (impl->toplevel)
|
||||||
{
|
{
|
||||||
NSRect content_rect =
|
NSRect content_rect;
|
||||||
NSMakeRect (private->x,
|
NSRect frame_rect;
|
||||||
_gdk_quartz_window_get_inverted_screen_y (private->y),
|
|
||||||
impl->width, impl->height);
|
content_rect = NSMakeRect (private->x,
|
||||||
NSRect frame_rect = [impl->toplevel frameRectForContentRect:content_rect];
|
_gdk_quartz_window_get_inverted_screen_y (private->y + impl->height),
|
||||||
|
impl->width, impl->height);
|
||||||
|
|
||||||
frame_rect.origin.y -= frame_rect.size.height;
|
frame_rect = [impl->toplevel frameRectForContentRect:content_rect];
|
||||||
[impl->toplevel setFrame:frame_rect display:YES];
|
[impl->toplevel setFrame:frame_rect display:YES];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user