summaryrefslogtreecommitdiffstats
path: root/src/gui/GraphBox.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-10-06 17:00:07 -0400
committerDavid Robillard <d@drobilla.net>2024-10-11 19:37:24 -0400
commit932c0db65e54d24cbc9131e00412a7f0a8f2bcd2 (patch)
tree1a2e3542d8e480e6135243b5e96b62ac84b0322d /src/gui/GraphBox.cpp
parent1ecbb458c9877cf18d0438449d8757fb713d46d2 (diff)
downloadingen-932c0db65e54d24cbc9131e00412a7f0a8f2bcd2.tar.gz
ingen-932c0db65e54d24cbc9131e00412a7f0a8f2bcd2.tar.bz2
ingen-932c0db65e54d24cbc9131e00412a7f0a8f2bcd2.zip
Reduce variable scopes
Diffstat (limited to 'src/gui/GraphBox.cpp')
-rw-r--r--src/gui/GraphBox.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/GraphBox.cpp b/src/gui/GraphBox.cpp
index 0764e4ed..4c3ff50d 100644
--- a/src/gui/GraphBox.cpp
+++ b/src/gui/GraphBox.cpp
@@ -885,10 +885,10 @@ GraphBox::event_refresh_activated()
void
GraphBox::event_fullscreen_toggled()
{
- // FIXME: ugh, use GTK signals to track state and know for sure
- static bool is_fullscreen = false;
-
if (_window) {
+ // FIXME: ugh, use GTK signals to track state and know for sure
+ static bool is_fullscreen = false;
+
if (!is_fullscreen) {
_window->fullscreen();
is_fullscreen = true;