Get basic tab move from one OS window to another via drag working

This commit is contained in:
Kovid Goyal
2026-02-21 14:27:17 +05:30
parent c56d4223af
commit 0682c5bc8a
2 changed files with 1 additions and 2 deletions

View File

@@ -677,7 +677,7 @@ update_allowed_mimes_for_drop(GLFWDropEvent *ev) {
}
}
// Second pass: sort by cached priorities (descending)
for (size_t i = 0; i < new_count - 1; i++) {
for (size_t i = 0; i + 1 < new_count; i++) {
for (size_t j = i + 1; j < new_count; j++) {
if (prio_arr[j] > prio_arr[i]) {
SWAP(ev->mimes[i], ev->mimes[j]);

View File

@@ -1678,7 +1678,6 @@ class TabManager: # {{{
ignore, ignore_left_button_release = ignore_left_button_release, False
if not ignore:
self.set_active_tab(tab)
set_tab_being_dragged()
elif button == GLFW_MOUSE_BUTTON_MIDDLE:
if action == GLFW_RELEASE and self.recent_mouse_events:
p = self.recent_mouse_events[-1]