Skip to content

Commit

Permalink
Remove the unused thread popup stack thing
Browse files Browse the repository at this point in the history
I lied, this is the last commit before sleep.

It does exactly nothing :DDDDDDDDDDDDDDDDDDDD
  • Loading branch information
Riteo committed Jan 17, 2025
1 parent 17ebbb3 commit 0e2df30
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
8 changes: 0 additions & 8 deletions platform/linuxbsd/wayland/wayland_thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3424,8 +3424,6 @@ void WaylandThread::window_create_popup(DisplayServer::WindowID p_window_id, Dis

ws.rect = p_rect;

popup_stack.push_back(ws.id);

ws.wl_surface = wl_compositor_create_surface(registry.wl_compositor);
wl_proxy_tag_godot((struct wl_proxy *)ws.wl_surface);
wl_surface_add_listener(ws.wl_surface, &wl_surface_listener, &ws);
Expand Down Expand Up @@ -3472,12 +3470,6 @@ void WaylandThread::window_destroy(DisplayServer::WindowID p_window_id) {
WindowState &ws = windows[p_window_id];

if (ws.xdg_popup) {
// FIXME: make more sturdy, this is a test
//while (popup_stack.back()->get() != p_window_id) {
// window_destroy(popup_stack.back()->get());
//}

//popup_stack.pop_back();
xdg_popup_destroy(ws.xdg_popup);
}

Expand Down
2 changes: 0 additions & 2 deletions platform/linuxbsd/wayland/wayland_thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -546,8 +546,6 @@ class WaylandThread {

bool initialized = false;

List<DisplayServer::WindowID> popup_stack;

#ifdef LIBDECOR_ENABLED
struct libdecor *libdecor_context = nullptr;
#endif // LIBDECOR_ENABLED
Expand Down

0 comments on commit 0e2df30

Please sign in to comment.