Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-06-16 08:16:04 +0300
committerCampbell Barton <campbell@blender.org>2022-06-16 08:22:46 +0300
commit65b1b1cd349f3bd813392e76eab5b610efba7428 (patch)
tree2c5bbc151b54ceb581235497980d48de7ea8831c /intern/ghost/GHOST_ISystem.h
parenta17f74ab341b026387fef6b741e3c0901780526c (diff)
GHOST/Wayland: workaround inability to access window position
Wayland doesn't support accessing the position making functionality that would map events to other windows fail, sometimes considering windows overlapping when they weren't (as all window positions were zeroed). Disable dragging between windows when accessing the window the position isn't supported.
Diffstat (limited to 'intern/ghost/GHOST_ISystem.h')
-rw-r--r--intern/ghost/GHOST_ISystem.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/ghost/GHOST_ISystem.h b/intern/ghost/GHOST_ISystem.h
index 436ff7a723e..d946d2d882a 100644
--- a/intern/ghost/GHOST_ISystem.h
+++ b/intern/ghost/GHOST_ISystem.h
@@ -313,6 +313,11 @@ class GHOST_ISystem {
virtual bool supportsCursorWarp() = 0;
/**
+ * Return true getting/setting the window position is supported.
+ */
+ virtual bool supportsWindowPosition() = 0;
+
+ /**
* Focus window after opening, or put them in the background.
*/
virtual void useWindowFocus(const bool use_focus) = 0;