openframeworks / openframeworks/openFrameworks

ofxPanel stops receiving mouse after switch from full screen to window mode (dual monitor setup)

Open
#6,448 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
10.4k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
9

Description

Hi @moebiussurfing
I think this has to do with a change in the coordinate system rather than an mouse events problem.
As for what you say, those 20 pixels on the y axis seem to be there to compensate the window's top bar.
I am not sure if there is a specific window event for when it changes to/from fullscreen. Although I guess that the window size event will work. So, register to this event so when it triggers then you just flag for a re-render. I'll try out this and let you know.

Originally posted by @roymacdonald in https://github.com/openframeworks/openFrameworks/pull/6429#issuecomment-552587497

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with ofxPanel on a dual-monitor setup, switching from fullscreen to window mode, and verify whether mouse input stops. The discussion suggests investigating coordinate changes and the window size event; done means the panel continues receiving mouse events after the mode switch.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.