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

2010-05-05 Thread Loye Young
This is NOT a bug in metacity, nor in compiz.

Almost two years ago, I described in this very thread what code should be
changed to fix the bug.


Loye Young
loye.yo...@iycc.net
281-968-0828


On Wed, May 5, 2010 at 4:37 AM, Vish  wrote:

> Omer , Thanks for comfirming.
>
> As Mentioned earlier , this bug with metacity[no visual effects] has
> been fixed a while ago.
>
> Users noticing this bug with compiz are affected by Bug #391479 .
>
> ** Changed in: update-manager (Ubuntu)
>   Status: Incomplete => Fix Released
>
> ** Changed in: hundredpapercuts
>   Status: Incomplete => Invalid
>
> ** Changed in: metacity (Ubuntu)
>   Status: Incomplete => Invalid
>
> ** Description changed:
>
>  When I click the Reload button in update-manager, the "Downloading
>  package information" progress dialog takes a few seconds to start, with
>  the main window's widgets disabled. In this case, I switch to another
>  application, and the download progress steals the window focus. If I
>  switch again to another window, the "building dependency tree" progress
>  dialog steals focus again.
>
>  This is a bug in the metacity window manager.
> +
> + ***
> + For users using metacity[no visual effects] this bug has been fixed a
> while ago.
> +
> + Users noticing this bug with compiz are affected by Bug #391479 .
> +
> + ***
>
> --
> 'Downloading package information' and 'building dependency tree' progress
> dialogs request focus too often
> https://bugs.launchpad.net/bugs/35876
> You received this bug notification because you are a direct subscriber
> of the bug.
>

-- 
'Downloading package information' and 'building dependency tree' progress 
dialogs request focus too often
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-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-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:

gtk_window_set_focus_on_map (GTK_WINDOW(win), FALSE);

and recompile.

debconf (I'm using version 1.5.20):
Insert the following line 70 to /usr/share/perl5/Debconf/FrontEnd/Gnome.pm:

$this->win->set_focus_on_map(0);

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 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?


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.



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


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

2008-12-02 Thread Loye Young
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.

Sebastien. Two solutions:
1.  Remove every reference to grab_focus from:
./UpdateManager/Common/SimpleGladeApp.py, (I show lines 239 through 245) and 
./UpdateManager/UpdateManager.py (I show lines 347 and 348)

See http://library.gnome.org/devel/pygtk/2.10/class-gtkwidget.html
#method-gtkwidget--grab-focus

2.  If that seems too draconian, in 
./DistUpgrade/DistUpgrade.glade

set:  
False

See http://www.pygtk.org/docs/pygtk/class-gdkwindow.html#method-
gdkwindow--set-focus-on-map

Happy Trails,

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

** Changed in: update-manager (Ubuntu)
 Assignee: (unassigned) => Ubuntu Core Development Team (ubuntu-core-dev)

-- 
'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


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

2008-12-02 Thread Loye Young
This bug needs to be raised in importance and fixed. It hoses up
systems, is easy to correct, and has been languishing for two years.

** Changed in: update-manager (Ubuntu)
 Assignee: (unassigned) => Ubuntu Core Development Team (ubuntu-core-dev)

-- 
'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


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

2008-12-02 Thread Loye Young
This problem still exists in Hardy. Because of it, a kernel update got
hosed up.

I fired off update-manager and switched to working on something else.
While I was typing, a window popped up asking whether I wanted to change
/boot/grub/menu.lst. The timing was such that I hit the spacebar just
when the window popped up, so the window instantly disappeared, the
updated kernel was installed, but the grub menu doesn't have an item for
the new kernel. Without intervention on my part, this machine would end
up keeping the old kernel until the next time the kernel was updated.

Fortunately, I know what happened and I know how to update the grub
menu. However, my customers don't know about what's happening under the
hood, and they shouldn't have to.

I'm astounded at how long this has been a problem. As mentioned by
others, this should be a trivial fix. WTF?

Happy Trails,


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

** Changed in: update-manager (Ubuntu)
   Status: New => Confirmed

-- 
'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


[Bug 237300] Re: main window disappears from the Window list

2008-08-27 Thread Loye Young
Per reporter, fix released

** Changed in: wine (Ubuntu)
   Status: New => Fix Released

-- 
main window disappears from the Window list
https://bugs.launchpad.net/bugs/237300
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-panel in ubuntu.

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


[Bug 237300] Re: main window disappears from the Window list

2008-08-27 Thread Loye Young
Per reporter, fix has been released.

** Changed in: pq (Ubuntu)
   Status: Confirmed => Fix Released

-- 
main window disappears from the Window list
https://bugs.launchpad.net/bugs/237300
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-panel in ubuntu.

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