After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 109537 - Window becomes inactive on popup
Window becomes inactive on popup
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: Win32
2.2.x
Other Windows
: Normal normal
: ---
Assigned To: Tor Lillqvist
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2003-03-30 12:48 UTC by Vaidrius Petrauskas
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
X-Chat executable (381.50 KB, application/octet-stream)
2003-03-31 09:00 UTC, Vaidrius Petrauskas
Details

Description Vaidrius Petrauskas 2003-03-30 12:48:38 UTC
I use X-Chat for Windows from http://ursus.mif.vu.lt/xchat/ and GTK+ RE
2.2.1 from http://www.dropline.net/gtk/.

When i open a popup menu in X-Chat, window becomes inactive. It
doesn't happen with a main window menu on top of a window, but happens
with X-Chat-specific menus (a popup menu of main window, a popup
menu of userlist).
Comment 1 Tor Lillqvist 2003-03-30 21:18:05 UTC
Please provide a minimal but complete sample program (source code) 
that exhibits the behaviour. Or, at least provide the X-Chat in a 
simple zip file, and not as an installer that demands you to have 
installed GTK+ using their installer first. Obviously, I am not going 
to install the GTK+ runtime using some 3rd-party installer when I 
already have it, built from source on this very same machine.
Comment 2 Vaidrius Petrauskas 2003-03-31 09:00:24 UTC
Created attachment 15324 [details]
X-Chat executable
Comment 3 Vaidrius Petrauskas 2003-03-31 09:03:35 UTC
This executable also serves for a bug #109536.
One can compile X-Chat from sources as well (MSVC makefiles are
included in the official tarball).

I compiled it using MSVC++6 and your runtime and dev packages (from
gimp.org).
Comment 4 Tor Lillqvist 2003-03-31 18:04:19 UTC
Please specify exactly what I should do in X-Chat to exhibit the 
alleged bug. If I right-click in the main window ("X-Chat: Server 
List") on the "Networks" part, a menu pops up and becomes the active 
window. Isn't that how it's supposed to work? How otherwise would one 
be able to select the pop-up menu entries?
Comment 5 Vaidrius Petrauskas 2003-04-01 12:02:19 UTC
not in serverlist ;-) but the main window. doubleclick on any irc
network and main window shows up. there, if you press reight button, a
popup menu shows up, with duplicated usual menu options and 4 options
to show/hide interface parts. so, when this popup window pops up, main
X-Chat window becomes inactive. need a screenshot?
Comment 6 Tor Lillqvist 2003-04-01 19:08:12 UTC
I guess this is because the popup menu is a top-level window, and in 
order for you to be able to do anything with it, it has to be active? 
Or something. What harm is there from the X-Chat window becoming 
inactive while the popup menu is open?
Comment 7 Vaidrius Petrauskas 2003-04-11 17:37:15 UTC
maybe u misunderstood. the window bar goes from blue to white when i
right-click on a, say, userlist. This really wasn't in 2.0.9, untill
that general window-inactive-on-popup bug was introduced (you said you
corrected it in gimpwin-dev).
Comment 8 Tor Lillqvist 2003-04-12 00:13:59 UTC
> the window bar goes from blue to white when i
> right-click on a, say, userlist.

So? Doesn't it go back to blue when you have closed the pop-up menu?
Comment 9 Vaidrius Petrauskas 2003-04-12 16:54:17 UTC
yes, it does. but is that so required? no such behaviour in linux, or
iwith gtk 2.0.9. it's just visual bug.
Comment 10 Owen Taylor 2003-06-05 17:51:32 UTC
Can you somehow specify that a toplevel window should not
be activatable? (If the main window stays activated
and gets the key presses, I think that should still work 
in GTK+, since GTK+ does a gtk_grab_add() when popping 
up them menu)
Comment 11 Alexander Shaduri 2003-07-09 06:35:13 UTC
I have the same problem here. Whenever I popup a GtkMenu in my application,
It makes the parent window inactive (its titlebar goes inactive color). This doesn't
happen with menus attached to menubar, just the ones that I open with
gtk_menu_popup(). This bug was not present in gtk 2.0. I guess that it is related
to a similar bug found in earlier versions (which was fixed for tooltips and menus
coming from menubar, but not for general menus).
Comment 12 Tor Lillqvist 2003-10-26 00:13:44 UTC
Seems to have been fixed by now (in CVS). Possibly as a result of the 
changes to gdkwindow-win32.c:show_window_internal()
Comment 13 Vaidrius Petrauskas 2003-12-29 16:32:25 UTC
The bug is still there. I'm using GTK+ 2.2.4 (GTK+ Runtime Environment
2.2.4.1 from sourceforge.net/projects/gtk-win, X-Chat build from
http://silverex.xchat.org/. Opening menu with right-click still causes
window title bar to become of inactive color.
Comment 14 Tor Lillqvist 2004-01-04 01:25:10 UTC
When I said "seems to be fixed now" (on 2003-10-25), I was referring, 
as one always does here in bugzilla, to the code in CVS. GTK+ 2.2.4 
was released on 2003-09-04, so yes, the bug might well be in 2.2.4.

If the "sourceforge/projects/gtk-win" people would want to provide a 
build from current CVS of gtk (gtk-2-2 branch), tell them to feel 
free, and make sure they also provide a corresponding source snapshot.