Ticket #106: nxagent-ping.patch

File nxagent-ping.patch, 659 bytes (added by Antoine Martin, 14 years ago)

agent patch

  • ./programs/Xserver/hw/nxagent/Rootless.c

    old new  
    633633
    634634    for (i = 0; i < nUnits; i++)
    635635    {
    636        atoms[i] = nxagentLocalToRemoteAtom(input[i]);
     636       if (strcmp("_NET_WM_PING",NameForAtom(input[i])) == 0) {
     637         atoms[i] = None; /* nxagent rootless corrupts function of _NET_WM_PING
     638                             protocol.  Mask the feature to prevent local
     639                             window manager misbehavior */
     640       } else {
     641         atoms[i] = nxagentLocalToRemoteAtom(input[i]);
     642       }
    637643
    638644       if (atoms[i] == None)
    639645       {