fix the issue with windows losing focus right after they're opened

This commit is contained in:
jelveh
2024-12-07 10:16:25 -08:00
parent 6a2f5f0eee
commit 383b4841ae
+4 -1
View File
@@ -67,7 +67,10 @@ function UITaskbarItem(options){
// fade in the taskbar item
$(el_taskbar_item).show(50);
$(el_taskbar_item).on("click", function(){
$(el_taskbar_item).on("click", function(e){
e.preventDefault();
e.stopPropagation();
// If this item has an open context menu, don't do anything
if($(el_taskbar_item).hasClass('has-open-contextmenu'))
return;