hmlendea / gfn-electron

Linux Desktop client for Nvidia's GeForce NOW game streaming service
GNU General Public License v3.0
500 stars 62 forks source link

Orange border around fullscreen when clicking while in steam loading state #68

Closed ZainlessBrombie closed 2 years ago

ZainlessBrombie commented 3 years ago

An orange border around the fullscreen is shown when I click the screen while being in the steam loading window. Adding the following code to the preload.js DOMContentLoaded seems to prevent the issue, but might have an impact on accessibility as it applies to all elements in all screens.

    const head = document.getElementsByTagName("head")[0];
    const styleTag = document.createElement('style');
    styleTag.innerHTML = ":focus {outline:unset;}";
    head.appendChild(styleTag);

The style should only apply to the fullscreen window that is focused and gets the orange border - but it has been quite a day so I did not get around to checking what selector is needed.

hmlendea commented 2 years ago

This appears to have been fixed in the newer versions. Please feel free to reopen if you still experience this bug.