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 609959 - screensaver won't activate when a grab is in place
screensaver won't activate when a grab is in place
Status: RESOLVED OBSOLETE
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
: 641635 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-02-15 02:09 UTC by Máirín Duffy
Modified: 2012-08-23 18:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Hide the overview when the screensaver is activated (1.84 KB, patch)
2011-02-19 20:32 UTC, Giovanni Campagna
rejected Details | Review

Description Máirín Duffy 2010-02-15 02:09:59 UTC
i had the computer sitting in the activities overview. then i went to watch a movie. i came back and the screensaver still hadn't activated. i clicked on a window in the little window preview / workspace area. it started to load, then the screensaver took over.

kind of annoying to have the screensaver not pop up at all when i'm gone, then pop up pretty much right when i'm ready to go again.
Comment 1 Giovanni Campagna 2011-02-19 20:32:43 UTC
Created attachment 181356 [details] [review]
Hide the overview when the screensaver is activated

If the overview is shown, gnome-screensaver cannot grab the input
and lock the screen, thus connect to gnome-session in the overview
and hide it when about to show the screensaver.
Comment 2 drago01 2011-02-21 21:43:29 UTC
(In reply to comment #1)
> Created an attachment (id=181356) [details] [review]
> Hide the overview when the screensaver is activated
> 
> If the overview is shown, gnome-screensaver cannot grab the input
> and lock the screen, thus connect to gnome-session in the overview
> and hide it when about to show the screensaver.

Can't we ungrab and regrab instead? (pop/push)
Not sure whether we can do it at the right time but for the user it is kind of odd to not be in the state where he/she was before the screensaver activated.
Comment 3 Giovanni Campagna 2011-02-23 20:17:32 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > Created an attachment (id=181356) [details] [review] [details] [review]
> > Hide the overview when the screensaver is activated
> > 
> > If the overview is shown, gnome-screensaver cannot grab the input
> > and lock the screen, thus connect to gnome-session in the overview
> > and hide it when about to show the screensaver.
> 
> Can't we ungrab and regrab instead? (pop/push)
> Not sure whether we can do it at the right time but for the user it is kind of
> odd to not be in the state where he/she was before the screensaver activated.

Ungrabbing the pointer and keyboard in the overview can have unexpected side effects, and I don't want to try that.
On the other hand, we can reopen the overview when back from away, if consistent state is so important (I don't think so).
Comment 4 Colin Walters 2011-02-23 20:22:38 UTC
Review of attachment 181356 [details] [review]:

This is racy, isn't it?  See:
https://bugzilla.gnome.org/show_bug.cgi?id=637540

For my proposed gnome-screensaver fix.
Comment 5 Dan Winship 2011-03-16 15:45:18 UTC
*** Bug 641635 has been marked as a duplicate of this bug. ***
Comment 6 Dan Winship 2011-03-16 15:45:42 UTC
copying GNOME Target from 641635
Comment 7 Colin Walters 2011-03-16 19:06:04 UTC
(In reply to comment #4)
> Review of attachment 181356 [details] [review]:
> 
> This is racy, isn't it?  See:
> https://bugzilla.gnome.org/show_bug.cgi?id=637540
> 
> For my proposed gnome-screensaver fix.

To elaborate, while gnome-screensaver does sleep 4 seconds, and it's very likely that we pop out of the overview in under 4 seconds, it's still a race; doing it from inside the screensaver also makes sure it works if something invokes gnome-screensaver-command --lock or whatever.
Comment 8 Matthias Clasen 2011-03-17 11:09:40 UTC
Can we come to some (if suboptimal) decision here ?
Comment 9 Colin Walters 2011-03-21 20:48:12 UTC
Got IRC approval from jon for the screensaver patch, which is in now.  We should definitely do something for at least gtk+ grabs for 3.2.
Comment 10 Matthias Clasen 2011-03-22 03:14:08 UTC
Moving off 3.0 blocker list
Comment 11 Owen Taylor 2011-04-24 19:49:56 UTC
Review of attachment 181356 [details] [review]:

No longer needed with gnome-screensaver change.
Comment 12 Matthias Clasen 2011-09-02 00:27:15 UTC
Colin, what did you want to do here for 3.2 ?
Comment 13 Colin Walters 2011-09-08 16:49:32 UTC
I don't see us doing anything for 3.2 here.
Comment 14 timothyhobbs 2012-03-14 07:12:43 UTC
This bug should not be considered in the limited context of gnome-screen saver. There are many things that don't work in the activity view which should.  Volume control, brightness control, alt-tab, ect.
Comment 15 Florian Müllner 2012-03-14 07:40:49 UTC
(In reply to comment #14)
> There are many things that don't work in the activity view which should. 
> Volume control, brightness control, alt-tab, ect.

alt-tab is ignored on purpose, for the other keys you mention see bug 643111.
Comment 16 timothyhobbs 2012-03-14 07:59:37 UTC
Why is alt-tab ignored on purpose?  It's not as though it has some other meaning in that view.  This annoys me to no end :)  Here you have a view that has no keyboard accessability and you won't let me alt tab out of it?  Is there an option to allow it?  It still won't work, since alt-tab veiw grabs...  But my comment, was not meant to reffer to bug 643111, but to make it clear that the proper solution to this is not, and should not be, through the patching of every possible application that could run into problems with the activities view.  The bug lies in the activities view itself, and the activities view alone.
Comment 17 Jasper St. Pierre (not reading bugmail) 2012-03-14 08:14:57 UTC
(In reply to comment #16)
> Why is alt-tab ignored on purpose?  It's not as though it has some other
> meaning in that view.

What meaning does it have in the overview? If you press Super and then press Alt+Tab, what do you want to happen?

> It still won't work, since alt-tab veiw grabs...  But
> my comment, was not meant to reffer to bug 643111, but to make it clear that
> the proper solution to this is not, and should not be, through the patching of
> every possible application that could run into problems with the activities
> view.  The bug lies in the activities view itself, and the activities view
> alone.

The bug is not in the activities view and the activities view alone. Any application that gets a keyboard grab has the same problems -- even in GNOME 2. The correct solution is to add Grab Overrides, but that won't be ready for quite a while. See:

  https://fedoraproject.org/wiki/Features/Grab_override
Comment 18 Mathieu Bridon 2012-03-14 08:51:13 UTC
(In reply to comment #17)
> (In reply to comment #16)
> > Why is alt-tab ignored on purpose?  It's not as though it has some other
> > meaning in that view.
> 
> What meaning does it have in the overview? If you press Super and then press
> Alt+Tab, what do you want to happen?

I would personally want alt-tab in the overview to circle through windows much like it does out of the overview.

However, out of the overview, alt-tab opens this kind of OSD "list of icons with previews of windows".

Inside the overview, I would like it to simply highlight a window, then highlight the next one, etc...

Then I could press "enter" or "space" to switch to exit the overview, with that highlighted window coming into focus.

That would improve the keyboard navigation of the overview, and allow switching windows in a very similar fashion both in and out of the overview.

I'm sure a designer could explain to me how my proposal is wrong though. :)
Comment 19 Bastien Nocera 2012-03-14 09:25:32 UTC
(In reply to comment #18)
<snip>
> I'm sure a designer could explain to me how my proposal is wrong though. :)

It's wrong because it's the wrong place to discuss this. This bug is about the screensaver not starting when there's a grab in place, this isn't the place to discuss features requests for the overview, or why keyboard grabs don't work in the overview, or the screensaver.
Comment 20 Mathieu Bridon 2012-03-14 09:58:06 UTC
(In reply to comment #19)
> (In reply to comment #18)
> <snip>
> > I'm sure a designer could explain to me how my proposal is wrong though. :)
> 
> It's wrong because it's the wrong place to discuss this. This bug is about the
> screensaver not starting when there's a grab in place, this isn't the place to
> discuss features requests for the overview,

You are absolutely right.

For those interested:
=> https://bugzilla.gnome.org/show_bug.cgi?id=627783#c4

Sorry for the inconvenience, and thank you for the reminder. :)
Comment 21 Florian Müllner 2012-08-23 18:17:13 UTC
The screen lock is not implemented in the shell itself, so this is no longer an issue \o/