Cleanup: remove unused window_manger reference in GHOST_WindowWayland

This commit is contained in:
Campbell Barton 2022-11-16 21:04:30 +11:00
parent 88c9f1266d
commit 02fa3a8128
1 changed files with 0 additions and 7 deletions

View File

@ -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;