diff options
author | das <das> | 2008-06-19 00:14:10 (GMT) |
---|---|---|
committer | das <das> | 2008-06-19 00:14:10 (GMT) |
commit | f5d537eea87cc6e9a91436cd00a8a1e3447db700 (patch) | |
tree | 9fc68a7fb28c9c66f04d9c8b815b9eff5528db45 /macosx/tkMacOSXEmbed.c | |
parent | 1e07811e2963b860590eb147690cf1eb101e0111 (diff) | |
download | tk-f5d537eea87cc6e9a91436cd00a8a1e3447db700.zip tk-f5d537eea87cc6e9a91436cd00a8a1e3447db700.tar.gz tk-f5d537eea87cc6e9a91436cd00a8a1e3447db700.tar.bz2 |
* macosx/tkMacOSXEmbed.c (TkpMakeWindow): fix bug with missing
* macosx/tkMacOSXSubwindows.c (XMapWindow): focus on first map by
only sending VisibilityNotify events once windows are mapped (rather
than when they are created).
Diffstat (limited to 'macosx/tkMacOSXEmbed.c')
-rw-r--r-- | macosx/tkMacOSXEmbed.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/macosx/tkMacOSXEmbed.c b/macosx/tkMacOSXEmbed.c index 47a9ed7..aeb5f4b 100644 --- a/macosx/tkMacOSXEmbed.c +++ b/macosx/tkMacOSXEmbed.c @@ -9,12 +9,12 @@ * * Copyright (c) 1996-1997 Sun Microsystems, Inc. * Copyright 2001, Apple Computer, Inc. - * Copyright (c) 2006-2007 Daniel A. Steffen <das@users.sourceforge.net> + * Copyright (c) 2006-2008 Daniel A. Steffen <das@users.sourceforge.net> * * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkMacOSXEmbed.c,v 1.17 2008/04/27 22:39:12 dkf Exp $ + * RCS: @(#) $Id: tkMacOSXEmbed.c,v 1.18 2008/06/19 00:14:10 das Exp $ */ #include "tkMacOSXInt.h" @@ -123,7 +123,6 @@ TkpMakeWindow( Window parent) { MacDrawable *macWin; - XEvent event; /* * If this window is marked as embedded then the window structure should @@ -171,20 +170,6 @@ TkpMakeWindow( } macWin->toplevel->referenceCount++; } - - /* - * TODO: need general solution for visibility events. - */ - - event.xany.serial = Tk_Display(winPtr)->request; - event.xany.send_event = False; - event.xany.display = Tk_Display(winPtr); - - event.xvisibility.type = VisibilityNotify; - event.xvisibility.window = (Window) macWin; - event.xvisibility.state = VisibilityUnobscured; - Tk_QueueWindowEvent(&event, TCL_QUEUE_TAIL); - return (Window) macWin; } |