summaryrefslogtreecommitdiffstats
path: root/src/snap.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/snap.h')
-rw-r--r--src/snap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/snap.h b/src/snap.h
index 1f2b85974..f7882fc61 100644
--- a/src/snap.h
+++ b/src/snap.h
@@ -148,6 +148,10 @@ public:
bool getSnapEnabledGlobally() const {
return _snap_enabled_globally;
}
+
+ void toggleSnapEnabledGlobally() {
+ _snap_enabled_globally = !_snap_enabled_globally;
+ }
protected:
SPNamedView const *_named_view;