Skip to content

Commit

Permalink
#148 remove the root_window_click workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Feb 11, 2022
1 parent 7d82bf3 commit 3562c86
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions html5/js/Window.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down

0 comments on commit 3562c86

Please sign in to comment.