[Bug 615927] New: Window focus stealing problem with YaST gtk interface
http://bugzilla.novell.com/show_bug.cgi?id=615927 http://bugzilla.novell.com/show_bug.cgi?id=615927#c0 Summary: Window focus stealing problem with YaST gtk interface Classification: openSUSE Product: openSUSE 11.3 Version: Factory Platform: x86-64 OS/Version: openSUSE 11.3 Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: badshah400@gmail.com QAContact: jsrain@novell.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.1.9) Gecko/20100317 SUSE/3.5.9-0.1.1 Firefox/3.5.9 No matter if I minimise a YaST module window any number of times, it would restore itself and become the focused window every time it wanted to alert me about something or every time it completed doing something. For example, have YaST pkg manager install something, and minimise it. When the installation is done and pkg manager switches to running SuSEconfig, it jumps back to steal focus making it very irritating. This does not happen with the qt interface even in GNOME. The metacity settings in gconf-editor are set thus: focus_mode:click, and auto_focus:off. Reproducible: Always Steps to Reproduce: 1.Start any module from YaST [gtk-interface] and select, for example, some packages to install. Hit Apply 2.Minimise the application/module and working using some application, for example gedit. Actual Results: When package manager module enters the writing SuSEconfig stage, it restores itself from minimised status, and steals focus from current application. Expected Results: Module/Application windows should stay minimised when asked to do so. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=615927 http://bugzilla.novell.com/show_bug.cgi?id=615927#c1 Atri Bhattacharya <badshah400@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rpmcruz@alunos.dcc.fc.up.pt --- Comment #1 from Atri Bhattacharya <badshah400@gmail.com> 2010-06-21 13:54:16 UTC --- Just to add this is a problem with ANY YaST module, and not just with the software management module. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=615927 http://bugzilla.novell.com/show_bug.cgi?id=615927#c Ricardo Cruz <rpmcruz@alunos.dcc.fc.up.pt> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |rpmcruz@alunos.dcc.fc.up.pt |ovo.novell.com | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=615927 http://bugzilla.novell.com/show_bug.cgi?id=615927#c2 --- Comment #2 from Ricardo Cruz <rpmcruz@alunos.dcc.fc.up.pt> 2010-06-21 15:26:15 UTC --- The idea was to notify the user when yast has moved to the next step. Otherwise, it could be idling silently, possibly requesting further input, forcing the user to constantly checking on its status. We are using gtk_window_present(), which might not be the most appropriate method though. I was under the impression it would only steal the focus if the user wasn't currently interacting with another application, but the documentation isn't clear on that -- so if that is the way it has worked in the past, I see it no longer is. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=615927 http://bugzilla.novell.com/show_bug.cgi?id=615927#c3 --- Comment #3 from Ricardo Cruz <rpmcruz@alunos.dcc.fc.up.pt> 2010-06-21 15:38:16 UTC --- Created an attachment (id=370556) --> (http://bugzilla.novell.com/attachment.cgi?id=370556) Test case for potencial fix This is a potential fix. I don't want to get rid of the feature altogether, so this one uses gtk_window_set_urgency_hint() to temporarily highlight the taskbar entry (if yast doesn't currently have focus). Now, I'm not sure if I should use a timeout for the highlight, or I should make it highlight until the user checks the yast window. I prefer the latter, but implementing it may be bug inviting. Not sure I can work on this in the following few days -- don't have access to my home computer with the yast development setup (to send the tarball to build.opensuse.org and stuff) -- , but this sounds relatively important, so I will try to get it done. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=615927 http://bugzilla.novell.com/show_bug.cgi?id=615927#c4 --- Comment #4 from Atri Bhattacharya <badshah400@gmail.com> 2010-06-21 22:57:27 UTC --- (In reply to comment #3) Thanks Ricardo for looking into this. Applications like X-chat do this very thing to alert the user. So this would be the best thing to do imo. Do let me know if I can be of any help with sending the tarball etc. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=615927 http://bugzilla.novell.com/show_bug.cgi?id=615927#c5 --- Comment #5 from Ricardo Cruz <rpmcruz@alunos.dcc.fc.up.pt> 2010-06-22 11:00:19 UTC --- Atri, does xchat behave like yast or does it work correctly? Downloaded xchat source code, and will check what gtk function it uses... -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=615927 http://bugzilla.novell.com/show_bug.cgi?id=615927#c6 --- Comment #6 from Atri Bhattacharya <badshah400@gmail.com> 2010-06-22 11:10:25 UTC --- Xchat works correctly, and when minimised only highlights the task-bar entry instead of restoring itself. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=615927 http://bugzilla.novell.com/show_bug.cgi?id=615927#c7 --- Comment #7 from Ricardo Cruz <rpmcruz@alunos.dcc.fc.up.pt> 2010-06-22 17:10:03 UTC --- I've looked at xchat source code, and it backs you up. ;) They use another method indeed. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=615927 http://bugzilla.novell.com/show_bug.cgi?id=615927#c8 --- Comment #8 from Ricardo Cruz <rpmcruz@alunos.dcc.fc.up.pt> 2010-06-22 17:22:39 UTC --- Filled the following bug report for xchat: https://sourceforge.net/tracker/?func=detail&aid=3019734&group_id=239&atid=100239 To let them know that gtk currently implements the low-level xlib/win32 stuff they are currently doing themselves. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=615927 http://bugzilla.novell.com/show_bug.cgi?id=615927#c9 Ricardo Cruz <rpmcruz@alunos.dcc.fc.up.pt> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #370556|0 |1 is obsolete| | --- Comment #9 from Ricardo Cruz <rpmcruz@alunos.dcc.fc.up.pt> 2010-06-22 17:29:15 UTC --- Created an attachment (id=370904) --> (http://bugzilla.novell.com/attachment.cgi?id=370904) Test case for potential fix (version 2) In comment 3, I mentioned that it might be potentially buggy to disable the taskbar highlight when the user selects again the window, and suggested we use a timer. It looks like there was a problem in my test case. It now works identically to xchat. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=615927 http://bugzilla.novell.com/show_bug.cgi?id=615927#c10 Ricardo Cruz <rpmcruz@alunos.dcc.fc.up.pt> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |badshah400@gmail.com --- Comment #10 from Ricardo Cruz <rpmcruz@alunos.dcc.fc.up.pt> 2010-06-22 17:42:35 UTC --- build.opensuse.org is quite tricky. The way I use it is by running a script I have home, which I've written from disparate tips I received. I am not quite sure how the thing works exactly myself. Have you used build.opensuse.org before? Anyway, do try svn. I've fixed it, but I haven't tested it, or even compile it. Do that for me -- if it works, I will get someone to run my build.opensuse.org script. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=615927 http://bugzilla.novell.com/show_bug.cgi?id=615927#c11 --- Comment #11 from Atri Bhattacharya <badshah400@gmail.com> 2010-06-22 17:47:40 UTC --- (In reply to comment #10)
build.opensuse.org is quite tricky. The way I use it is by running a script I have home, which I've written from disparate tips I received. I am not quite sure how the thing works exactly myself. Have you used build.opensuse.org before?
I have used build.opensuse.org for simple tasks, but this might be somewhat more complicated. In any case I am about to give svn a shot and if that works out [or it does not], I will report back here and it might be updating the source code or adding a patch to the already existing sources at build.opensuse.org.
Anyway, do try svn. I've fixed it, but I haven't tested it, or even compile it. Do that for me -- if it works, I will get someone to run my build.opensuse.org script.
-- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=615927 http://bugzilla.novell.com/show_bug.cgi?id=615927#c12 Atri Bhattacharya <badshah400@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|badshah400@gmail.com | --- Comment #12 from Atri Bhattacharya <badshah400@gmail.com> 2010-06-22 18:22:15 UTC --- The svn version seems to work just fine during my testing. Do you want me to submit the changes over at build.opensuse.org or is it possible for you to do it? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=615927 http://bugzilla.novell.com/show_bug.cgi?id=615927#c13 --- Comment #13 from Atri Bhattacharya <badshah400@gmail.com> 2010-06-23 17:35:51 UTC --- (In reply to comment #10)
build.opensuse.org is quite tricky. The way I use it is by running a script I have home, which I've written from disparate tips I received. I am not quite sure how the thing works exactly myself. Have you used build.opensuse.org before?
Anyway, do try svn. I've fixed it, but I haven't tested it, or even compile it. Do that for me -- if it works, I will get someone to run my build.opensuse.org script.
After testing that everything compiles okay locally, I tried to branch this yast2-gtk package in my home repository and make the modifications. However while building packages in the build service I get this error I: Program returns random data in a function E: yast2-gtk no-return-in-nonvoid-function /usr/src/packages/BUILD/yast2-gtk-2.21.57/src/YGDialog.cc:270 I: Program returns random data in a function E: yast2-gtk no-return-in-nonvoid-function /usr/src/packages/BUILD/yast2-gtk-2.21.57/src/YGDialog.cc:270 It would be very nice if you could look into this, since RC2 [July 1] is approaching and only critical fixes will be allowed in after that. Which means this has to make it by this week into factory builds. Thanks -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=615927 http://bugzilla.novell.com/show_bug.cgi?id=615927#c14 --- Comment #14 from Ricardo Cruz <rpmcruz@alunos.dcc.fc.up.pt> 2010-06-25 14:42:09 UTC --- Ups, fixed that one. Also incremented version number of VERSION and VERSION.cmake files, as well as added log entry to package/yast2-gtk.changes I will try to get it uploaded in a couple of days, but if you're comfortable using build-service, go ahead. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=615927 http://bugzilla.novell.com/show_bug.cgi?id=615927#c15 --- Comment #15 from Atri Bhattacharya <badshah400@gmail.com> 2010-06-25 21:09:13 UTC --- OK. created request id 42080 You need to review and approve it and forward it to factory. Hope that does it. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=615927 http://bugzilla.novell.com/show_bug.cgi?id=615927#c16 Ricardo Cruz <rpmcruz@alunos.dcc.fc.up.pt> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |mmeeks@novell.com InfoProvider| |mmeeks@novell.com --- Comment #16 from Ricardo Cruz <rpmcruz@alunos.dcc.fc.up.pt> 2010-06-27 12:05:44 UTC --- Michael, could you handle this? Atri has, very helpfully, submitted a new yast2-gtk build to YaST:Head. I've approved it. We now need to submit the thing to openSUSE:Factory. Sorry, I flunked in my initiation to the osc rituals. And I am not able to access my home computer in which I have the cheating sheets. ;) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=615927 http://bugzilla.novell.com/show_bug.cgi?id=615927#c17 Ricardo Cruz <rpmcruz@alunos.dcc.fc.up.pt> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|mmeeks@novell.com | --- Comment #17 from Ricardo Cruz <rpmcruz@alunos.dcc.fc.up.pt> 2010-06-28 17:19:29 UTC --- Okay, got it done. Version number is 2.21.57. (if it gets in time for next build.) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=615927 http://bugzilla.novell.com/show_bug.cgi?id=615927#c18 Ricardo Cruz <rpmcruz@alunos.dcc.fc.up.pt> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #18 from Ricardo Cruz <rpmcruz@alunos.dcc.fc.up.pt> 2010-06-28 17:20:06 UTC --- Fixed, wrapped and submitted. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com