Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't hide the toolbar when pressing esc #1256

Merged

Conversation

ipa-fez
Copy link
Contributor

@ipa-fez ipa-fez commented Jun 11, 2018

The fullscreen code does not properly keep track of the toolbar visibility state. This leads to the following undesired behaviour:

  • Pressing esc without ever having entered fullscreen may hides the toolbar because toolbar_visible_ is never set.
  • Pressing esc after having entered fullscreen previously sets the toolbar visibility to what it was the last time fullscreen was entered.

By only calling setFullScreen(false) after we really were in fullscreen mode, we guarantee that toolbar_visible_ is valid and don't mess with the toolbar visibility otherwise.

@ghost ghost assigned rhaschke Mar 6, 2019
@rhaschke
Copy link
Contributor

rhaschke commented Mar 6, 2019

Thanks for this contribution. To avoid breaking ABI, I removed the addition bool member variable and figure out the full-screen state on the fly.

@ghost ghost removed the in progress label Mar 6, 2019
@rhaschke rhaschke merged commit 526af00 into ros-visualization:kinetic-devel Mar 6, 2019
@ghost ghost removed the review label Mar 6, 2019
rhaschke pushed a commit that referenced this pull request Mar 6, 2019
* Correctly initialize toolbar_visible_, which fixes the bug.
* Only emit VisualizationFrame::fullScreenChange() on actual change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants