Added creating / destroying outputs on a multi-backend + headless backend
See `hyprctl output`.
This commit is contained in:
parent
a71f44baa5
commit
5a750b485a
9 changed files with 129 additions and 1 deletions
|
|
@ -180,6 +180,15 @@ CCompositor::CCompositor() {
|
|||
m_sWLRIMEMgr = wlr_input_method_manager_v2_create(m_sWLDisplay);
|
||||
|
||||
m_sWLRActivation = wlr_xdg_activation_v1_create(m_sWLDisplay);
|
||||
|
||||
m_sWLRHeadlessBackend = wlr_headless_backend_create(m_sWLDisplay);
|
||||
|
||||
if (!m_sWLRHeadlessBackend) {
|
||||
Debug::log(CRIT, "Couldn't create the headless backend");
|
||||
throw std::runtime_error("wlr_headless_backend_create() failed!");
|
||||
}
|
||||
|
||||
wlr_multi_backend_add(m_sWLRBackend, m_sWLRHeadlessBackend);
|
||||
}
|
||||
|
||||
CCompositor::~CCompositor() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue