Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions examples/test_virtual_output/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ qt_add_executable(${BIN_NAME}
virtualoutput.cpp
virtualoutputmanager.h
virtualoutputmanager.cpp
wlroutputmanager.h
wlroutputmanager.cpp
)

qt_generate_wayland_protocol_client_sources(${BIN_NAME}
FILES
${TREELAND_PROTOCOLS_DATA_DIR}/treeland-virtual-output-manager-v1.xml
${TREELAND_PROTOCOLS_DATA_DIR}/treeland-output-manager-v1.xml
${CMAKE_SOURCE_DIR}/3rdparty/wlroots/protocol/wlr-output-management-unstable-v1.xml
)

target_link_libraries(${BIN_NAME}
Expand Down
12 changes: 2 additions & 10 deletions examples/test_virtual_output/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,14 @@

#include "virtualclient.h"

#include <QApplication>

Check warning on line 6 in examples/test_virtual_output/main.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <QApplication> not found. Please note: Cppcheck does not need standard library headers to get proper results.

// ./test-virtual-output HDMI-A-1 VGA-1

int main(int argc, char *argv[])
{
qputenv("QT_QPA_PLATFORM", "wayland");
QApplication app(argc, argv);

// Print help tip if no screen names provided via argv
if (argc < 3) {
qInfo() << "Tip: Specify screen names to clone:";
qInfo() << " ./test-virtual-output HDMI-A-1 VGA-1";
}

VirtualClient client(argc, argv);
VirtualClient client;

return app.exec();
}
}
Loading
Loading