forked from AuroraMiddleware/gtk
]): Synthesize GDK_CONFIGURE events when the window position changes.
2006-03-21 Anders Carlsson <andersca@imendio.com> * gdk/quartz/GdkQuartzWindow.c ([GdkQuartzWindow -windowDidMove:]): Synthesize GDK_CONFIGURE events when the window position changes.
This commit is contained in:
parent
2d12378f9e
commit
7fe53a99bb
@ -1,3 +1,9 @@
|
||||
2006-03-21 Anders Carlsson <andersca@imendio.com>
|
||||
|
||||
* gdk/quartz/GdkQuartzWindow.c
|
||||
([GdkQuartzWindow -windowDidMove:]): Synthesize GDK_CONFIGURE events
|
||||
when the window position changes.
|
||||
|
||||
2006-03-20 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkdnd.c (gtk_drag_get_cursor): Remove an unused variable.
|
||||
|
@ -1,3 +1,9 @@
|
||||
2006-03-21 Anders Carlsson <andersca@imendio.com>
|
||||
|
||||
* gdk/quartz/GdkQuartzWindow.c
|
||||
([GdkQuartzWindow -windowDidMove:]): Synthesize GDK_CONFIGURE events
|
||||
when the window position changes.
|
||||
|
||||
2006-03-20 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkdnd.c (gtk_drag_get_cursor): Remove an unused variable.
|
||||
|
@ -62,6 +62,28 @@
|
||||
_gdk_quartz_update_focus_window (window);
|
||||
}
|
||||
|
||||
-(void)windowDidMove:(NSNotification *)aNotification
|
||||
{
|
||||
NSRect content_rect = [self contentRectForFrameRect:[self frame]];
|
||||
GdkWindow *window = [[self contentView] gdkWindow];
|
||||
GdkWindowObject *private = (GdkWindowObject *)window;
|
||||
GdkWindowImplQuartz *impl = GDK_WINDOW_IMPL_QUARTZ (private->impl);
|
||||
GdkEvent *event;
|
||||
|
||||
private->x = content_rect.origin.x;
|
||||
private->y = _gdk_quartz_get_inverted_screen_y (content_rect.origin.y) - impl->height;
|
||||
|
||||
/* Synthesize a configure event */
|
||||
event = gdk_event_new (GDK_CONFIGURE);
|
||||
event->configure.window = g_object_ref (window);
|
||||
event->configure.x = private->x;
|
||||
event->configure.y = private->y;
|
||||
event->configure.width = impl->width;
|
||||
event->configure.height = impl->height;
|
||||
|
||||
_gdk_event_queue_append (gdk_display_get_default (), event);
|
||||
}
|
||||
|
||||
-(void)windowDidResize:(NSNotification *)aNotification
|
||||
{
|
||||
NSRect content_rect = [self contentRectForFrameRect:[self frame]];
|
||||
|
Loading…
Reference in New Issue
Block a user