2008-02-24 Richard Hult <richard@imendio.com>
* gdk/quartz/GdkQuartzWindow.c: Prevent hidden windows from being
shown without gdk's control when clicking the dock icon.
svn path=/trunk/; revision=19638
+2008-02-24 Richard Hult <richard@imendio.com>
+
+ * gdk/quartz/GdkQuartzWindow.c: Prevent hidden windows from being
+ shown without gdk's control when clicking the dock icon.
+
2008-02-24 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkprivate-quartz.h:
-(void)windowDidBecomeMain:(NSNotification *)aNotification
{
- GdkWindow *window;
+ GdkWindow *window = [[self contentView] gdkWindow];
+
+ if (![self isVisible])
+ {
+ /* Note: This is a hack needed because for unknown reasons, hidden
+ * windows get shown when clicking the dock icon when the application
+ * is not already active.
+ */
+ [self orderOut:nil];
+ return;
+ }
- window = [[self contentView] gdkWindow];
_gdk_quartz_window_did_become_main (window);
}