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 07:20:34 +0300
committerCampbell Barton <campbell@blender.org>2022-06-16 07:27:57 +0300
commit0d644e6d06de349b04c5c54f19eff9c6fe00b32a (patch)
tree6e98b3e5723d6874ad1ebc0c5f4784a52f3acd36 /intern/ghost/intern/GHOST_WindowWayland.h
parent9dd5c2a7ecc861707ef2987259ab2aff047a741a (diff)
Cleanup: return const vector for system & window outputs() method
Move the enter/leave logic into methods so the method can return a const vector which isn't to be manipulated from other functions.
Diffstat (limited to 'intern/ghost/intern/GHOST_WindowWayland.h')
-rw-r--r--intern/ghost/intern/GHOST_WindowWayland.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/intern/ghost/intern/GHOST_WindowWayland.h b/intern/ghost/intern/GHOST_WindowWayland.h
index 948635fc9ae..b6d9fa04079 100644
--- a/intern/ghost/intern/GHOST_WindowWayland.h
+++ b/intern/ghost/intern/GHOST_WindowWayland.h
@@ -103,10 +103,12 @@ class GHOST_WindowWayland : public GHOST_Window {
struct wl_surface *surface() const;
- std::vector<output_t *> &outputs();
-
output_t *output_find_by_wl(struct wl_output *output);
+ const std::vector<output_t *> &outputs();
+
+ bool outputs_enter(output_t *reg_output);
+ bool outputs_leave(output_t *reg_output);
bool outputs_changed_update_scale();
uint16_t dpi();