aboutsummaryrefslogtreecommitdiff
path: root/src/core/frontend
diff options
context:
space:
mode:
authorAlexander Orzechowski <alex@ozal.ski>2022-12-13 14:39:03 -0500
committerAlexander Orzechowski <alex@ozal.ski>2022-12-13 15:01:51 -0500
commit9e0510f77d0fc3d873dbcb724a87b9ae5f77734c (patch)
tree652f0490e20ecd253171c43cc7a9271712793be5 /src/core/frontend
parentcc07198519708b6dd235530efad72faaf9594ecf (diff)
gl_device: Use a more robust way to use strict context mode
Instead of checking a environment variable which may not actually exist or is just wrong, ask QT if it's running on the wayland platform.
Diffstat (limited to 'src/core/frontend')
-rw-r--r--src/core/frontend/emu_window.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/frontend/emu_window.h b/src/core/frontend/emu_window.h
index 95363b645e..cf85ba29eb 100644
--- a/src/core/frontend/emu_window.h
+++ b/src/core/frontend/emu_window.h
@@ -131,6 +131,10 @@ public:
return active_config;
}
+ bool StrictContextRequired() const {
+ return strict_context_required;
+ }
+
/**
* Requests the internal configuration to be replaced by the specified argument at some point in
* the future.
@@ -207,6 +211,8 @@ protected:
WindowSystemInfo window_info;
+ bool strict_context_required = false;
+
private:
/**
* Handler called when the minimal client area was requested to be changed via SetConfig.