@@ -396,19 +396,19 @@ luaA_viewport_get_outputs(lua_State *L, viewport_t *a)
396396 foreach (output , a -> outputs ) {
397397 lua_createtable (L , 3 , 0 );
398398
399- lua_pushstring (L , "mm_width" );
399+ lua_pushliteral (L , "mm_width" );
400400 lua_pushinteger (L , output -> mm_width );
401401 lua_settable (L , -3 );
402402
403- lua_pushstring (L , "mm_height" );
403+ lua_pushliteral (L , "mm_height" );
404404 lua_pushinteger (L , output -> mm_height );
405405 lua_settable (L , -3 );
406406
407- lua_pushstring (L , "name" );
407+ lua_pushliteral (L , "name" );
408408 lua_pushstring (L , output -> name );
409409 lua_settable (L , -3 );
410410
411- lua_pushstring (L , "viewport_id" );
411+ lua_pushliteral (L , "viewport_id" );
412412 lua_pushinteger (L , a -> id );
413413 lua_settable (L , -3 );
414414
@@ -434,33 +434,33 @@ luaA_viewports(lua_State *L)
434434 lua_newtable (L );
435435
436436 /* The geometry */
437- lua_pushstring (L , "geometry" );
437+ lua_pushliteral (L , "geometry" );
438438
439439 lua_newtable (L );
440440
441- lua_pushstring (L , "x" );
441+ lua_pushliteral (L , "x" );
442442 lua_pushinteger (L , a -> x );
443443 lua_settable (L , -3 );
444- lua_pushstring (L , "y" );
444+ lua_pushliteral (L , "y" );
445445 lua_pushinteger (L , a -> y );
446446 lua_settable (L , -3 );
447- lua_pushstring (L , "width" );
447+ lua_pushliteral (L , "width" );
448448 lua_pushinteger (L , a -> width );
449449 lua_settable (L , -3 );
450- lua_pushstring (L , "height" );
450+ lua_pushliteral (L , "height" );
451451 lua_pushinteger (L , a -> height );
452452 lua_settable (L , -3 );
453453
454454 /* Add the geometry table to the arguments */
455455 lua_settable (L , -3 );
456456
457457 /* Add the outputs table to the arguments */
458- lua_pushstring (L , "outputs" );
458+ lua_pushliteral (L , "outputs" );
459459 luaA_viewport_get_outputs (L , a );
460460 lua_settable (L , -3 );
461461
462462 /* Add an identifier to better detect when screens are removed */
463- lua_pushstring (L , "id" );
463+ lua_pushliteral (L , "id" );
464464 lua_pushinteger (L , a -> id );
465465 lua_settable (L , -3 );
466466
@@ -1609,11 +1609,11 @@ static int
16091609luaA_screen_get_managed (lua_State * L , screen_t * s )
16101610{
16111611 if (s -> lifecycle & SCREEN_LIFECYCLE_LUA )
1612- lua_pushstring (L , "Lua" );
1612+ lua_pushliteral (L , "Lua" );
16131613 else if (s -> lifecycle & SCREEN_LIFECYCLE_C )
1614- lua_pushstring (L , "C" );
1614+ lua_pushliteral (L , "C" );
16151615 else
1616- lua_pushstring (L , "none" );
1616+ lua_pushliteral (L , "none" );
16171617
16181618 return 1 ;
16191619}
0 commit comments