Skip to content

Commit

Permalink
[config] add full_window_drag with force_performance_flags
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpoelen committed Oct 20, 2023
1 parent 5ef49c4 commit fec06ec
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion projects/redemption_configs/autogen/doc/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@
"name": "force_performance_flags",
"type": "PerformanceFlags",
"value": "-mouse_cursor_shadows,-theme",
"description": "It specifies a list of (comma-separated) RDP server desktop features to enable or disable in the session (with the goal of optimizing bandwidth usage).\n\nIf a feature is preceded by a \"-\" sign, it is disabled; if it is preceded by a \"+\" sign or no sign, it is enabled. Unconfigured features can be controlled by the RPD client.\n\nAvailable features:\n - wallpaper\n - menu_animations\n - theme\n - mouse_cursor_shadows\n - cursor_blinking\n - font_smoothing\n - desktop_composition\n",
"description": "It specifies a list of (comma-separated) RDP server desktop features to enable or disable in the session (with the goal of optimizing bandwidth usage).\n\nIf a feature is preceded by a \"-\" sign, it is disabled; if it is preceded by a \"+\" sign or no sign, it is enabled. Unconfigured features can be controlled by the RPD client.\n\nAvailable features:\n - wallpaper\n - full_window_drag\n - menu_animations\n - theme\n - mouse_cursor_shadows\n - cursor_blinking\n - font_smoothing\n - desktop_composition\n",
"tags": ["perf","compatibility"],
"globalSpec": true,
"advanced": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ R"gen_config_ini(## Config file for RDP proxy.
#
# Available features:
# - wallpaper
# - full_window_drag
# - menu_animations
# - theme
# - mouse_cursor_shadows
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ allow_resize_hosted_desktop = boolean(default=True)
# If a feature is preceded by a "-" sign, it is disabled; if it is preceded by a "+" sign or no sign, it is enabled. Unconfigured features can be controlled by the RPD client.<br/>
# Available features:
# &nbsp; &nbsp; - wallpaper
# &nbsp; &nbsp; - full_window_drag
# &nbsp; &nbsp; - menu_animations
# &nbsp; &nbsp; - theme
# &nbsp; &nbsp; - mouse_cursor_shadows
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,7 @@ namespace cfg
/// <br/>
/// Available features: <br/>
/// - wallpaper <br/>
/// - full_window_drag <br/>
/// - menu_animations <br/>
/// - theme <br/>
/// - mouse_cursor_shadows <br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,7 @@ _.section(names{.all="mod_rdp", .connpolicy="rdp"}, [&]
"\n"
"Available features:\n"
" - wallpaper\n"
" - full_window_drag\n"
" - menu_animations\n"
" - theme\n"
" - mouse_cursor_shadows\n"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ inline char const* parse_performance_flags(RdpPerformanceFlags& x, chars_view fl
struct P { uint32_t flag; bool enable; std::string_view name; };
static constexpr P pairs[] {
{0x001, true, "wallpaper"},
{0x002, true, "full_window_drag"},
{0x004, true, "menu_animations"},
{0x008, true, "theme"},
{0x020, true, "mouse_cursor_shadows"},
Expand Down Expand Up @@ -80,7 +81,7 @@ inline char const* parse_performance_flags(RdpPerformanceFlags& x, chars_view fl

return
"Cannot parse performance flags because it's an invalid value."
" Expected are wallpaper, menu_animations, theme, mouse_cursor_shadows, cursor_blinking, font_smoothing and desktop_composition."
" Expected are wallpaper, full_window_drag, menu_animations, theme, mouse_cursor_shadows, cursor_blinking, font_smoothing and desktop_composition."
;

next_elem:;
Expand Down

0 comments on commit fec06ec

Please sign in to comment.