From 3562c86c8972a6d7a8cb3721e90a4a16d0da394a Mon Sep 17 00:00:00 2001 From: totaam Date: Fri, 11 Feb 2022 12:55:26 +0700 Subject: [PATCH] #148 remove the root_window_click workaround --- html5/js/Window.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/html5/js/Window.js b/html5/js/Window.js index da350fc0..45d1e7f9 100644 --- a/html5/js/Window.js +++ b/html5/js/Window.js @@ -149,19 +149,11 @@ XpraWindow.prototype.add_window_decorations = function() { jQuery(this.div).draggable({ transform: true }); } jQuery(this.div).draggable({ cancel: "canvas" }); - function root_window_click(ev) { - //fake a click on the root window, - //this helps some buggy Java applications close their popup menus - client.do_window_mouse_click(ev, null, true); - client.do_window_mouse_click(ev, null, false); - } jQuery("#head"+String(this.wid)).click(function(ev) { - root_window_click(ev); me.set_focus_cb(me); }); jQuery(this.div).on("dragstart",function(ev){ client.release_buttons(ev, me); - root_window_click(ev); me.set_focus_cb(me); client.mouse_grabbed = true; });