@@ -279,13 +279,13 @@ function failed_covers_set(covers: FailedCovers) {
279279
280280async function get_alt_cover ( manifest : ipc . AppManifest ) {
281281 console . log ( manifest . cover_b64 ) ;
282- if ( manifest . cover_b64 != undefined ) {
282+ if ( manifest . cover_b64 != undefined ) {
283283 console . log ( "Runnning copy png to frontend" )
284284 return < >
285- < img className = { scss . game_cover_image } src = { manifest . cover_b64 } />
285+ < img className = { scss . game_cover_image } src = { manifest . cover_b64 } />
286286 </ > ;
287287 }
288- else {
288+ else {
289289 return < >
290290 < img className = { scss . game_cover_image } src = "/no_cover.webp" />
291291 < span className = { scss . game_cover_title } > { manifest . name } </ span >
@@ -303,8 +303,8 @@ export function GameCover({ manifest, big, on_click }: { manifest: ipc.AppManife
303303 const failed_covers = failed_covers_get ( ) ;
304304 const already_failed = failed_covers . covers . includes ( manifest . app_id ) ;
305305
306- if ( manifest . run_game_id . length < 10 ) {
307- if ( ! already_failed ) {
306+ if ( manifest . run_game_id . length < 10 ) {
307+ if ( ! already_failed ) {
308308 const url = `https://shared.cloudflare.steamstatic.com/store_item_assets/steam/apps/${ manifest . app_id } /library_600x900.jpg` ;
309309 setContent (
310310 < img
@@ -328,11 +328,11 @@ export function GameCover({ manifest, big, on_click }: { manifest: ipc.AppManife
328328 setContent ( await get_alt_cover ( manifest ) ) ;
329329 }
330330 }
331- else {
332- console . log ( "handling non Steam Game" ) ;
333- setContent ( await get_alt_cover ( manifest ) ) ;
331+ else {
332+ console . log ( "handling non Steam Game" ) ;
333+ setContent ( await get_alt_cover ( manifest ) ) ;
334334
335- }
335+ }
336336 } catch ( err ) {
337337 console . error ( "Unhandled error in GameCover useEffect:" , err ) ;
338338 }
@@ -508,8 +508,8 @@ async function launch(
508508
509509function ApplicationView ( { globals, application, } : { globals : Globals , application : ipc . DesktopFile } ) {
510510 const [ details , setDetails ] = useState ( < > </ > ) ;
511- const [ xwayland_mode , setXWaylandMode ] = useState ( false ) ;
512- const [ force_wayland , setForceWayland ] = useState ( true ) ;
511+ const [ xwayland_mode , setXWaylandMode ] = useState ( globals . prefs . cage_mode ? true : false ) ;
512+ const [ force_wayland , setForceWayland ] = useState ( globals . prefs . cage_mode ? false : true ) ;
513513 const [ displays , setDisplays ] = useState < ipc . Display [ ] | null > ( null ) ;
514514
515515 const refreshDisplays = async ( ) => {
@@ -531,12 +531,12 @@ function ApplicationView({ globals, application, }: { globals: Globals, applicat
531531 < div className = { scss . previewer_title } > { application . name } </ div >
532532 { details }
533533 < Separator />
534- < Checkbox title = "Run in X11 mode via XWayland (cage)" pair = { [ xwayland_mode , setXWaylandMode ] } onChange = { ( n ) => {
534+ < Checkbox title = "Run in X11 mode (cage)" pair = { [ xwayland_mode , setXWaylandMode ] } onChange = { ( n ) => {
535535 if ( n ) {
536536 setForceWayland ( false ) ;
537537 }
538538 } } />
539- < Checkbox title = "Force-enable Wayland for various backends - Qt/GTK/SDL (...) " pair = { [ force_wayland , setForceWayland ] } onChange = { ( n ) => {
539+ < Checkbox title = "Run in Wayland mode " pair = { [ force_wayland , setForceWayland ] } onChange = { ( n ) => {
540540 if ( n ) {
541541 setXWaylandMode ( false ) ;
542542 }
0 commit comments