mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-24 06:04:08 +00:00
Get basic tab move from one OS window to another via drag working
This commit is contained in:
parent
c56d4223af
commit
0682c5bc8a
2 changed files with 1 additions and 2 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue