#514036 xserver-xorg: screensaver doesn't start when a menu is open

Package:
xserver-xorg-core
Source:
xorg-server
Description:
Xorg X server - core server
Submitter:
Noel Köthe
Date:
2019-09-30 17:51:04 UTC
Severity:
wishlist
#514036#5
Date:
2009-02-03 16:51:52 UTC
From:
To:
Hello,

when you open a menu of e.g. KDE konqueror, GNOME nautilus or firefox
then the screensaver wouldn't start in my tests. First I thought its
a KDE bug http://bugs.kde.org/show_bug.cgi?id=176637 but the same behaviour
can be reproduced with gnome.
Or if you open a pull down menu on a website with firefox/iceweasel the
screensaver will not start.

Sorry if I reported it to the wrong package but I don't have xscreensaver
installed and can reproduce the problem so its somewhere else in xorg IMHO.

Regards

	Noèl

#514036#10
Date:
2009-02-03 19:31:18 UTC
From:
To:
Noel Köthe wrote:

I can reproduce in Gnome with both gnome-screensaver and xscreensaver
when opening firefox or gnome-terminal menus.

xscreensaver reported the following lines when the timeout expired:
xscreensaver: 20:16:02: couldn't grab keyboard!  (AlreadyGrabbed)
xscreensaver: 20:16:06: couldn't grab keyboard!  (AlreadyGrabbed)
xscreensaver: 20:16:10: couldn't grab pointer!  (AlreadyGrabbed)
xscreensaver: 20:16:10: unable to grab keyboard or mouse!  Blanking aborted.
But I don't know much about all this...

Brice

#514036#15
Date:
2009-02-04 07:58:56 UTC
From:
To:
Am Dienstag, den 03.02.2009, 20:31 +0100 schrieb Brice Goglin:

The source code comment says:

xscreensaver-5.07/driver/xscreensaver.c
...
      if (! blank_screen (si))
        {
          /* We were unable to grab either the keyboard or mouse.
             This means we did not (and must not) blank the screen.
             If we were to blank the screen while some other program
             is holding both the mouse and keyboard grabbed, then
             we would never be able to un-blank it!  We would never
             see any events, and the display would be wedged.

             So, just go around the loop again and wait for the
             next bout of idleness.  (If the user remains idle, we
             will next try to blank the screen again in no more than
             60 seconds.)
          */
...

I don't know if opening a menu in an application grabs mouse and
keyboard.

#514036#20
Date:
2009-02-04 08:30:50 UTC
From:
To:
It does; it's the only way the menu can receive input events while the
pointer is outside of it. AFAIK this is a pretty deep X11 design issue,
so I'm afraid this can't be fixed easily. Feel free to bring it up
upstream though.

#514036#25
Date:
2009-02-04 09:19:34 UTC
From:
To:
tags 514036 + upstream confirmed
forwarded 514036 http://bugs.freedesktop.org/show_bug.cgi?id=19946
thanks

Hello Michel,

Am Mittwoch, den 04.02.2009, 09:30 +0100 schrieb Michel Dänzer:

OK. thx for this information.
I reported it to upstream:

http://bugs.freedesktop.org/show_bug.cgi?id=19946