diff --git a/src/UI/UITaskbarItem.js b/src/UI/UITaskbarItem.js index 478962a89..6d5b7e699 100644 --- a/src/UI/UITaskbarItem.js +++ b/src/UI/UITaskbarItem.js @@ -18,6 +18,7 @@ */ import UIContextMenu from './UIContextMenu.js'; +import path from '../lib/path.js'; let tray_item_id = 1; @@ -28,7 +29,7 @@ function UITaskbarItem(options){ options.open_windows_count = options.open_windows_count ?? 0; options.lock_keep_in_taskbar = options.lock_keep_in_taskbar ?? false; options.append_to_taskbar = options.append_to_taskbar ?? true; - const element_id = global_element_id++; + const element_id = window.global_element_id++; h += `
0 && $event_parent_win.attr('data-id') !== $(mouseover_window).attr('data-id')) + if( $event_parent_win.length > 0 && $event_parent_win.attr('data-id') !== $(window.mouseover_window).attr('data-id')) return; // Don't do anything if the dragged item is NOT a UIItem if(!$(ui.draggable).hasClass('item'))