Ticket #5393 (new bug)

Opened 4 weeks ago

Last modified 3 weeks ago

Duplicate screenshots acquired in case Keymap preflet is opened.

Reported by: damoklas Owned by: axeld
Priority: normal Milestone: R1
Component: Kits/Interface Kit Version: R1/Development
Keywords: Cc:
Blocked By: Platform: All
Blocking:

Description

How-to reproduce: 1) Open home folder. Check for existing screenshot PNG files. 2) Open Keymap preflet. Press the PrintScreen key.(Note that Keymap window must be active.) 3) Note that dublicate scrrenshot1.png and screenshot2.png were acquired.

Change History

Changed 4 weeks ago by damoklas

And if make alt+V to Keymap preflet in "Sample and clipboard:" that write dublet.

Changed 4 weeks ago by anevilyak

  • component changed from Preferences/Keymap to Servers/app_server

This looks like an app_server bug, the BWindow is receiving those keyboard messages twice (and consequently invokes printscreen and/or the shortcuts twice), which is probably an error in handling SetEventMask(B_KEYBOARD_EVENTS);

Changed 3 weeks ago by axeld

  • component changed from Servers/app_server to Kits/Interface Kit

I don't think the app_server is to blame here; when the keyboard view is the active view, there should only be one screenshot. Otherwise, since the focus handler is different from the SetEventMask() handler, it should send two messages.

So the fault is obviously in BWindow, as it does not detect this case (it should only consider focus messages).

Note: See TracTickets for help on using tickets.