gnome/extensions/dash-to-dock@micxgx.gmail.com/fileManager1API.js
/**
 * Guesses the X ID of a window.
 *
 * This is the basic implementation that is sufficient for Nautilus
 * windows. The pixel-saver extension has a much more complex
 * implementation if we ever need it.
 */
Guesses the X ID of a window.
This is the basic implementation that is sufficient for Nautilus
windows. The pixel-saver extension has a much more complex
implementation if we ever need it.
Guesses the X ID of a window . This is the basic implementation that is sufficient for Nautilus windows . The pixel - saver extension has a much more complex implementation if we ever need it .
function guessWindowXID(win) {
    try {
        return win.get_description().match(/0x[0-9a-f]+/)[0];
    } catch (err) {
        return null;
    }
}
function guessWindowXID ( win ) { try { return win . get_description ( ) . match ( / 0x[0-9a-f]+ / ) [ 0 ] ; } catch ( err ) { return null ; } }
Guesses the X ID of a window.
Guesses the X ID of a window .