public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: Ian Roxborough <irox@redhat.com>
To: insight@sources.redhat.com
Subject: Patch: Fix Windows Crashing.
Date: Mon, 25 Feb 2002 19:57:00 -0000	[thread overview]
Message-ID: <3C7B193E.DE3E35EA@redhat.com> (raw)

Hi,

if you recall many months a go I report a Windows crasher
the was related the using comboboxes in modal dialogs.

I'm finally near a fix that I'd like to checkin.

The problem seems to be in the combobox (well ok, it's in
Tk really), it makes the popup part of the combobox
a "redirectoverride" window, then it makes the popup
a "transient" window.  Tk does a "window in window"
trick to do both of these and some where it along
the line it doesn't clean up after itself.

Notes: a Tk toplevel can be "normal", "redirectoverride"
or "transient", it cannot be more than one at a time
(or so the source code leads me to believe).  You should
be able to change between these freely, undoing the
properties of the previous settings.

The real bug is that changing from a "redirectoverride"
to a "transient"  window some how is broken (while a grab
is in effect).  At some point I'd like to find out more about why.

This patch removes the "transient" window part
and everything seems to work fine.  I'd like to
hear from some other people using Windows before
I ask to check it in.

Well, I'm pretty happy to be making head way
on this problem (I've spent months working at this!)...

Ian.


Index: libgui/library/combobox.tcl
===================================================================
RCS file: /cvs/src/src/libgui/library/combobox.tcl,v
retrieving revision 1.2
diff -u -2 -r1.2 combobox.tcl
--- combobox.tcl	2001/09/08 22:34:46	1.2
+++ combobox.tcl	2002/02/26 03:34:03
@@ -217,5 +217,4 @@
     # do some window management foo. 
     wm overrideredirect $widgets(popup) 1
-    wm transient $widgets(popup) [winfo toplevel $this]
     wm group $widgets(popup) [winfo parent $this]
     wm resizable $widgets(popup) 0 0

                 reply	other threads:[~2002-02-26  3:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3C7B193E.DE3E35EA@redhat.com \
    --to=irox@redhat.com \
    --cc=insight@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).