File tree Expand file tree Collapse file tree 2 files changed +0
-5
lines changed
Expand file tree Collapse file tree 2 files changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -1734,7 +1734,6 @@ void Viewport::_gui_input_event(Ref<InputEvent> p_event) {
17341734 gui.mouse_focus_mask .set_flag (button_mask);
17351735 } else {
17361736 gui.mouse_focus = gui_find_control (mpos);
1737- gui.last_mouse_focus = gui.mouse_focus ;
17381737
17391738 if (!gui.mouse_focus ) {
17401739 return ;
@@ -2391,9 +2390,6 @@ void Viewport::_gui_remove_control(Control *p_control) {
23912390 gui.forced_mouse_focus = false ;
23922391 gui.mouse_focus_mask .clear ();
23932392 }
2394- if (gui.last_mouse_focus == p_control) {
2395- gui.last_mouse_focus = nullptr ;
2396- }
23972393 if (gui.key_focus == p_control) {
23982394 gui.key_focus = nullptr ;
23992395 }
Original file line number Diff line number Diff line change @@ -345,7 +345,6 @@ class Viewport : public Node {
345345 bool key_event_accepted = false ;
346346 HashMap<int , ObjectID> touch_focus;
347347 Control *mouse_focus = nullptr ;
348- Control *last_mouse_focus = nullptr ;
349348 Control *mouse_click_grabber = nullptr ;
350349 BitField<MouseButtonMask> mouse_focus_mask;
351350 Control *key_focus = nullptr ;
You can’t perform that action at this time.
0 commit comments