Prevent hidden windows from being shown without gdk's control when
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
This commit is contained in:
committed by
Richard Hult
parent
4dbd9d23d7
commit
6dc6aaeaf1
@ -79,9 +79,18 @@
|
||||
|
||||
-(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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user