Re: [Bug 35876] Re: 'Downloading package information' and 'building dependency tree' progress dialogs steal focus

2008-12-11 Thread Andrew Conkling
On Wed, Dec 10, 2008 at 7:02 PM, Loye Young [EMAIL PROTECTED] wrote:

 Obviously, it's not a small, simple fix.

 Contrary to Sarah's assertion, setting  focus_on_map to false in
 every instance it appears in update-manager *fixes* update-manager:
 Update-manager ceases to steal focus when that's done.


So could you provide a patch so others can test? Instructions here:
https://help.ubuntu.com/ubuntu/packagingguide/C/ubuntu-sync.html

-- 
'Downloading package information' and 'building dependency tree' progress 
dialogs steal focus
https://bugs.launchpad.net/bugs/35876
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to metacity in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


Re: [Bug 35876] Re: 'Downloading package information' and 'building dependency tree' progress dialogs steal focus

2008-12-11 Thread Loye Young
 So could you provide a patch so others can test?

Somebody else will have to run with the ball on that.

-- 
'Downloading package information' and 'building dependency tree' progress 
dialogs steal focus
https://bugs.launchpad.net/bugs/35876
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to metacity in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


Re: [Bug 35876] Re: 'Downloading package information' and 'building dependency tree' progress dialogs steal focus

2008-12-11 Thread John Vivirito
On 12/11/2008 07:27 AM, Andrew Conkling wrote:
 On Wed, Dec 10, 2008 at 7:02 PM, Loye Young [EMAIL PROTECTED] wrote:
 
 Obviously, it's not a small, simple fix.

 Contrary to Sarah's assertion, setting  focus_on_map to false in
 every instance it appears in update-manager *fixes* update-manager:
 Update-manager ceases to steal focus when that's done.
 
 
 So could you provide a patch so others can test? Instructions here:
 https://help.ubuntu.com/ubuntu/packagingguide/C/ubuntu-sync.html
 
Bug 306672 is about update-manager grabbing focus too often, By the
looks of this bug it doesn't grab focus unless told to?

-- 
Sincerely Yours,
John Vivirito

https://launchpad.net/~gnomefreak
https://wiki.ubuntu.com/JohnVivirito
Linux User# 414246

How can i get lost, if i have no where to go
-- Metallica from UnforgivenIII

-- 
'Downloading package information' and 'building dependency tree' progress 
dialogs steal focus
https://bugs.launchpad.net/bugs/35876
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to metacity in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


Re: [Bug 35876] Re: 'Downloading package information' and 'building dependency tree' progress dialogs steal focus

2008-12-11 Thread Loye Young
Bug 306672 is about update-manager grabbing focus too often, By the
looks of this bug it doesn't grab focus unless told to?

Not correct. Update-manager grabs focus inappropriately, and it needs
to be fixed.

Update-manager steals focus whenever it creates a window. The fix is
to change the focus_on_map setting to false, as I have described.

In some circumstances, update-manager sends requests to gkdebconf and
other debconf frontends, which ALSO steal focus. I've described the
fix in a prior post. Gkdebconf and the debconf frontends are written
in different languages, so the syntax is different, but they share the
same solution: Tell those programs not to grab focus when it creates
the window.

To my knowledge, separate bugs have not been created for gkdebconf and
debconf to fix their problems, but I leave that to the developers
responsible that (according to some) are already aware.  I don't
want to be uncool, even if I am just a hapless gringo in a Texas
border town.  ;-)

Happy Trails,


Loye Young
Isaac  Young Computer Company
Laredo, Texas
http://www.iycc.net

-- 
'Downloading package information' and 'building dependency tree' progress 
dialogs steal focus
https://bugs.launchpad.net/bugs/35876
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to metacity in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


Re: [Bug 35876] Re: 'Downloading package information' and 'building dependency tree' progress dialogs steal focus

2008-12-10 Thread Loye Young
[banging head on desk]

Update-manager doesn't get focus randomly. It has to ask for it. The
window manager (metacity) just does what it's told to do. Anything the
window manager does to prevent focus-stealing is a sub-optimal
solution, but it's a necessary one when applications are written
egocentrically. (By this, I'm not talking about the developer's mental
health issues: we're all egocentric. An egocentric application means
an application written as if the application is either the only
application running or the most important application to the user at
the time)

Obviously, it's not a small, simple fix.

Contrary to Sarah's assertion, setting  focus_on_map to false in
every instance it appears in update-manager *fixes* update-manager:
Update-manager ceases to steal focus when that's done.

Here are the files affected:
./data/glade/UpdateManager.glade
./AutoUpgradeTester/DistUpgrade/DistUpgrade.glade
./DistUpgrade/DistUpgrade.glade
./debian/update-manager/usr/share/update-manager/glade/UpdateManager.glade
./debian/update-manager/usr/share/update-manager/glade/DistUpgrade.glade
./debian/tmp/usr/share/update-manager/glade/UpdateManager.glade
./debian/tmp/usr/share/update-manager/glade/DistUpgrade.glade

Unfortunately, it doesn't fix gkdebconf or debconf's frontends, which
ALSO have the same bug. Here's how to fix those:

gkdebconf (I'm using version 1.2.64ubuntu1 to test):
Insert the following line 101 in ./src/interface.c:
code
gtk_window_set_focus_on_map (GTK_WINDOW(win), FALSE);
/code
and recompile.

debconf (I'm using version 1.5.20):
Insert the following line 70 to /usr/share/perl5/Debconf/FrontEnd/Gnome.pm:
code
$this-win-set_focus_on_map(0);
/code
Fixing the other frontends (e.g., KDE) are left as an exercise.

Caveat: The changes to update-manager described above need to be fine
tuned. It's a Good Thing (tm) to allow the GtkWindow to get focus when
the user fires up Update-Manager the first time. I just didn't have
the patience to figure where in the code that is.

Happy Trails,


Loye Young
Isaac  Young Computer Company
Laredo, Texas
http://www.iycc.net

-- 
'Downloading package information' and 'building dependency tree' progress 
dialogs steal focus
https://bugs.launchpad.net/bugs/35876
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to metacity in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


Re: [Bug 35876] Re: 'Downloading package information' and 'building dependency tree' progress dialogs steal focus

2008-12-02 Thread Matt Zimmerman
On Tue, Dec 02, 2008 at 09:34:29PM -, Loye Young wrote:
 Daniel, unless you know of someone else to fix this, the maintainer of
 the package is the right person. In this case, the maintainer is ubuntu-
 core-dev.

I'm afraid that is not the right way to respond to this bug report.  It is
already filed in the appropriate place, and the developers responsible for
this component are already aware of it by virtue of being bug contacts for
this package in Launchpad.  There is no need to take any further action in
order to notify the appropriate people, and assigning bugs inappropriately
causes a nuisance.  Please don't do it.

-- 
 - mdz

-- 
'Downloading package information' and 'building dependency tree' progress 
dialogs steal focus
https://bugs.launchpad.net/bugs/35876
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to metacity in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


Re: [Bug 35876] Re: 'Downloading package information' and 'building dependency tree' progress dialogs steal focus

2008-12-02 Thread Loye Young
 Please don't assign to ubuntu-core-dev, really.

I meant to. Really.

 It sends a mail to all
core-devs (including those who don't work on update-manager...).

That's a Good Thing (tm). I knew what I was doing and what the effects
would be.

 There is no need to take any further action in
 order to notify the appropriate people,

The process must be broken, because this bug is two years old and
hasn't been assigned. The bug severity hasn't even been set (which,
IMHO, should be HIGH).

BTW, the problem isn't metacity. The problem is that update-manager
should not ask for focus in the first place. This is a problem that
has been solved over and over again in other applications.

the developers responsible for
this component are already aware of it by virtue of being bug contacts for
this package in Launchpad.

That so? H. . . . .So which of said developers responsible have
any idea how to turn off focus-stealing?

off-topic
If assigning the bug to ubuntu-core-dev is a Bad Thing (tm), perhaps
there should be a way to flag ubuntu-core-dev as a Wrong Person (tm)
and tell ubuntu_update-manager.assignee that the Wrong Person (tm)
cannot be a ValidAssignee.
/off-topic


Happy Trails,


Loye Young
Isaac  Young Computer Company
Laredo, Texas
http://www.iycc.net

-- 
'Downloading package information' and 'building dependency tree' progress 
dialogs steal focus
https://bugs.launchpad.net/bugs/35876
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to metacity in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


Re: [Bug 35876] Re: 'Downloading package information' and 'building dependency tree' progress dialogs steal focus

2008-12-02 Thread Andrew Conkling
On Tue, Dec 2, 2008 at 6:15 PM, Loye Young [EMAIL PROTECTED] wrote:

 BTW, the problem isn't metacity. The problem is that update-manager
 should not ask for focus in the first place. This is a problem that
 has been solved over and over again in other applications.


This is known already. See
https://bugs.launchpad.net/ubuntu/+source/metacity/+bug/35876/comments/31and
https://bugs.launchpad.net/ubuntu/+source/metacity/+bug/35876/comments/33.

-- 
'Downloading package information' and 'building dependency tree' progress 
dialogs steal focus
https://bugs.launchpad.net/bugs/35876
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to metacity in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


Re: [Bug 35876] Re: 'Downloading package information' and 'building dependency tree' progress dialogs steal focus

2008-04-08 Thread Andrew Conkling
On Tue, Apr 8, 2008 at 6:45 PM, dbsoundman [EMAIL PROTECTED] wrote:

 I experience in Hardy, no compiz. It is very annoying, because I have
 the normal desktop effects enabled, which is generally stable on my
 system, but my processor is an Athlon XP, so when I'm multi-tasking (as
 always), it makes my music skip, text is slow, it just eats up my CPU
 until it can turn the screen half-black and white, then go back, then
 repeat, etc.


This sounds like general CPU/buffer problems, which may be bugworthy, but
this report is not that. This is about the windows stealing focus, popping
up in front of other things.


** Attachment added: unnamed
   http://launchpadlibrarian.net/13267891/unnamed

-- 
'Downloading package information' and 'building dependency tree' progress 
dialogs steal focus
https://bugs.launchpad.net/bugs/35876
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to metacity in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


Re: [Bug 35876] Re: 'Downloading package information' and 'building dependency tree' progress dialogs steal focus

2008-04-08 Thread Andrew Conkling
On Tue, Apr 8, 2008 at 8:30 PM, dbsoundman [EMAIL PROTECTED] wrote:

 Thanks Andrew, I was citing the effects of the problem just as an
 example, the main issue is indeed just that the windows steal the focus.
 For me, that sets off that chain reaction, because of my not-so-fast
 processor. I would definitely like to see the stealing focus feature
 removed.


OK, sorry for the confusion. :)


** Attachment added: unnamed
   http://launchpadlibrarian.net/13268137/unnamed

-- 
'Downloading package information' and 'building dependency tree' progress 
dialogs steal focus
https://bugs.launchpad.net/bugs/35876
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to metacity in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs