diff options
author | Campbell Barton <campbell@blender.org> | 2022-06-16 08:16:04 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-06-16 08:22:46 +0300 |
commit | 65b1b1cd349f3bd813392e76eab5b610efba7428 (patch) | |
tree | 2c5bbc151b54ceb581235497980d48de7ea8831c /intern/ghost/GHOST_C-api.h | |
parent | a17f74ab341b026387fef6b741e3c0901780526c (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_C-api.h')
-rw-r--r-- | intern/ghost/GHOST_C-api.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/ghost/GHOST_C-api.h b/intern/ghost/GHOST_C-api.h index 388d6eb96d2..c92e6ba78c1 100644 --- a/intern/ghost/GHOST_C-api.h +++ b/intern/ghost/GHOST_C-api.h @@ -907,6 +907,11 @@ extern int GHOST_UseNativePixels(void); extern int GHOST_SupportsCursorWarp(void); /** + * Support positioning windows (when false `wmWindow.x,y` are meaningless). + */ +extern int GHOST_SupportsWindowPosition(void); + +/** * Assign the callback which generates a back-trace (may be NULL). */ extern void GHOST_SetBacktraceHandler(GHOST_TBacktraceFn backtrace_fn); |