[Development] Print Screen does not work with Qt context menus

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Wed Oct 19 18:15:02 CEST 2022


Il 19/10/22 17:50, Thiago Macieira ha scritto:
> Welcome to X11.
> 
> Menus work by grabbing the keyboard and mouse exclusively so they can be
> dismissed if you click outside of it or press any key. That means the menu is
> eating the Print Screen button.
> 
> To screenshot a menu, configure your screenshot application to trigger on a
> time delay and then open the menu.

Although this has always historically been true (still remember the X11 
lock-screen security fiasco), is it still true today?

Things like Firefox seem to be able to do the "right thing" -- 
desktop-wide shortcuts are triggered even if a menu is open (although to 
say it all the menu closes, and then the shortcut triggers, so it won't 
help OP anyway for their specific use case...).


My 2c,
-- 
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4244 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/development/attachments/20221019/1c85141e/attachment.bin>


More information about the Development mailing list