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
|
|
@ -8,6 +8,9 @@ void CMonitor::onConnect(bool noRule) {
|
|||
|
||||
szName = output->name;
|
||||
|
||||
if (!wlr_backend_is_drm(output->backend))
|
||||
createdByUser = true; // should be true. WL, X11 and Headless backends should be addable / removable
|
||||
|
||||
// get monitor rule that matches
|
||||
SMonitorRule monitorRule = g_pConfigManager->getMonitorRuleFor(output->name, output->description ? output->description : "");
|
||||
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@ public:
|
|||
bool dpmsStatus = true;
|
||||
bool vrrActive = false; // this can be TRUE even if VRR is not active in the case that this display does not support it.
|
||||
bool enabled10bit = false; // as above, this can be TRUE even if 10 bit failed.
|
||||
bool createdByUser = false;
|
||||
|
||||
// mirroring
|
||||
CMonitor* pMirrorOf = nullptr;
|
||||
|
|
|
|||
|
|
@ -154,4 +154,8 @@ inline void wlr_xwayland_surface_close(wlr_xwayland_surface*) { }
|
|||
|
||||
inline void wlr_xwayland_surface_set_fullscreen(wlr_xwayland_surface*, bool) { }
|
||||
|
||||
inline void wlr_xwayland_surface_set_minimized(wlr_xwayland_surface *, bool) {}
|
||||
inline void wlr_xwayland_surface_set_minimized(wlr_xwayland_surface *, bool) { }
|
||||
|
||||
inline bool wlr_backend_is_x11(void*) { return false; }
|
||||
|
||||
inline void wlr_x11_output_create(void*) { }
|
||||
Loading…
Add table
Add a link
Reference in a new issue