linuxmint / linuxmint/cinnamon
Show curson when CTRL clicked causes FOCUSOUT event to run
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 5.6k
- Forks
- 915
- Avg merge
- 5d 22h
- Merged PRs (30d)
- 3
Description
Distribution
Mint 22.1
Package version
6.4.8
Graphics hardware in use
Intel Corporation Iris Plus Graphics G7
Frequency
Always
Bug description
When I pressed Copy or Paste, the window was often losing focus - eg a browser extension open would close as the focus was lost.
On some testing, I found, through XEV that pressing CTRL was causing the FOCUSOUT event to run.
Turning the Mouse> Show position of pointer when the Control key is pressed setting off stopped this behaviour.
Result from XEV:
With Setting on
FocusOut event, serial 38, synthetic NO, window 0x6000001,
mode NotifyNormal, detail NotifyNonlinear
PropertyNotify event, serial 38, synthetic NO, window 0x6000001,
atom 0x18f (_NET_WM_STATE), time 4789584, state PropertyNewValue
PropertyNotify event, serial 38, synthetic NO, window 0x6000001,
atom 0x1bc (_GTK_EDGE_CONSTRAINTS), time 4789584, state PropertyNewValue
With setting off
MotionNotify event, serial 38, synthetic NO, window 0x6000001,
root 0x4ca, subw 0x6000002, time 4983370, (26,41), root:(1090,380),
state 0x14, is_hint 0, same_screen YES
MotionNotify event, serial 38, synthetic NO, window 0x6000001,
root 0x4ca, subw 0x6000002, time 4983379, (27,41), root:(1091,380),
state 0x14, is_hint 0, same_screen YES
KeyPress event, serial 38, synthetic NO, window 0x6000001,
root 0x4ca, subw 0x6000002, time 4983946, (27,41), root:(1091,380),
state 0x14, keycode 55 (keysym 0x76, v), same_screen YES,
XLookupString gives 1 bytes: (16) ""
XmbLookupString gives 1 bytes: (16) ""
XFilterEvent returns: False
Steps to reproduce
System Settings > Mouse > Show position of pointer when the Control key is pressed to on
to
Open a browser extension window
Press CTRL-C or CTRL-V
The window will disappear as the focus is lost, and you cannot copy or paste to it easily...
Sometimes it works on 2nd or 3rd try
Expected behavior
Should just copy/ paste / other uses of CTRL in the window, no change to focus.
Additional information
No response
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the focus loss with the Mouse setting enabled, using the browser extension window and XEV output described in the report. Trace the FocusOut event alongside the pointer-position display behavior; done means CTRL-C, CTRL-V, and other CTRL uses no longer change focus or close the window.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100