Skip to content

Commit

Permalink
[client,sdl] add clipboard support
Browse files Browse the repository at this point in the history
  • Loading branch information
akallabeth committed May 7, 2024
1 parent 0de6b7e commit 8fb9051
Show file tree
Hide file tree
Showing 9 changed files with 908 additions and 6 deletions.
2 changes: 2 additions & 0 deletions client/SDL/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ set(SRCS
sdl_channels.cpp
sdl_window.hpp
sdl_window.cpp
sdl_clip.hpp
sdl_clip.cpp
)

add_subdirectory(aad)
Expand Down
4 changes: 2 additions & 2 deletions client/SDL/sdl_channels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void sdl_OnChannelConnectedEventHandler(void* context, const ChannelConnectedEve
{
auto clip = reinterpret_cast<CliprdrClientContext*>(e->pInterface);
WINPR_ASSERT(clip);
clip->custom = context;
sdl->clip.init(clip);
}
else if (strcmp(e->name, DISP_DVC_CHANNEL_NAME) == 0)
{
Expand All @@ -70,7 +70,7 @@ void sdl_OnChannelDisconnectedEventHandler(void* context, const ChannelDisconnec
{
auto clip = reinterpret_cast<CliprdrClientContext*>(e->pInterface);
WINPR_ASSERT(clip);
clip->custom = nullptr;
sdl->clip.uninit(clip);
}
else if (strcmp(e->name, DISP_DVC_CHANNEL_NAME) == 0)
{
Expand Down

0 comments on commit 8fb9051

Please sign in to comment.