xpra icon
Bug tracker and wiki

Changes between Initial Version and Version 1 of Ticket #2269, comment 27


Ignore:
Timestamp:
09/14/19 04:13:04 (11 months ago)
Author:
Antoine Martin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2269, comment 27

    initial v1  
    11We also ran into the titlebar "click through" issue. A workaround we are using is to add the following in Window.js at the end when the window is created (right after the "// assign some interesting callbacks" comment):
    2 
     2{{{
    33jQuery(this.div).mousedown(function (e) {
    44                        e.stopPropagation();
    55                })
    6 
     6}}}
    77This solves the issue as the "ghost click" is created from the titlebar click propagating up the parent to "#screen" where an event listener sends it to the server. Using the above the event is not propagated from the window to the screen div and there are no "phantom clicks". Clicks landing outside the div are not affected. Clicks inside the div are not affected.