[Bf-blender-cvs] [02fa3a8128b] blender-v3.4-release: Cleanup: remove unused window_manger reference in GHOST_WindowWayland
Campbell Barton
noreply at git.blender.org
Wed Nov 16 11:36:41 CET 2022
Commit: 02fa3a8128b038342ee40431133ef9a9aea9bb03
Author: Campbell Barton
Date: Wed Nov 16 21:04:30 2022 +1100
Branches: blender-v3.4-release
https://developer.blender.org/rB02fa3a8128b038342ee40431133ef9a9aea9bb03
Cleanup: remove unused window_manger reference in GHOST_WindowWayland
===================================================================
M intern/ghost/intern/GHOST_WindowWayland.cpp
===================================================================
diff --git a/intern/ghost/intern/GHOST_WindowWayland.cpp b/intern/ghost/intern/GHOST_WindowWayland.cpp
index 298e03dbe6b..460fc99d27f 100644
--- a/intern/ghost/intern/GHOST_WindowWayland.cpp
+++ b/intern/ghost/intern/GHOST_WindowWayland.cpp
@@ -47,8 +47,6 @@ static constexpr size_t base_dpi = 96;
# define use_libdecor GHOST_SystemWayland::use_libdecor_runtime()
#endif
-static GHOST_WindowManager *window_manager = nullptr;
-
#ifdef WITH_GHOST_WAYLAND_LIBDECOR
struct WGL_LibDecor_Window {
struct libdecor_frame *frame = nullptr;
@@ -793,11 +791,6 @@ GHOST_WindowWayland::GHOST_WindowWayland(GHOST_SystemWayland *system,
std::lock_guard lock_server_guard{*system->server_mutex};
#endif
- /* Globally store pointer to window manager. */
- if (!window_manager) {
- window_manager = system_->getWindowManager();
- }
-
window_->ghost_window = this;
window_->ghost_system = system;
More information about the Bf-blender-cvs
mailing list