mirror of
https://github.com/morgan9e/UxPlay
synced 2026-04-14 00:04:13 +09:00
allow the changed display name = server_name behavior without applyiong ZOOMFIX
This commit is contained in:
@@ -7,12 +7,17 @@ set (CMAKE_CXX_STANDARD 11)
|
||||
|
||||
if (ZOOMFIX)
|
||||
add_definitions(-DX_DISPLAY_FIX)
|
||||
add_definitions(-DCHANGE_DISPLAY_NAME)
|
||||
find_package(X11 REQUIRED)
|
||||
link_libraries(${X11_LIBRARIES})
|
||||
include_directories(${X11_INCLUDE_DIR})
|
||||
# link_directories(${X11_LIBRARIES})
|
||||
endif (ZOOMFIX)
|
||||
|
||||
if (CHANGE_DISPLAY_NAME)
|
||||
add_definitions(-DCHANGE_DISPLAY_NAME)
|
||||
endif (CHANGE_DISPLAY_NAME)
|
||||
|
||||
add_definitions(-DAVAHI_COMPAT_NOWARN)
|
||||
|
||||
add_subdirectory(lib/llhttp)
|
||||
|
||||
@@ -59,6 +59,9 @@ video_renderer_t *video_renderer_init(logger_t *logger, const char *server_name,
|
||||
|
||||
#ifdef X_DISPLAY_FIX
|
||||
get_x_display_root();
|
||||
#endif
|
||||
|
||||
#ifdef CHANGE_DISPLAY_NAME
|
||||
g_set_application_name(server_name);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user