mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-05 23:51:29 +02:00
Get basic tab move from one OS window to another via drag working
This commit is contained in:
@@ -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]);
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user