xdg-output: minor cleanups
This commit is contained in:
parent
1ed925b69c
commit
8e237b006f
2 changed files with 17 additions and 21 deletions
|
|
@ -9,12 +9,12 @@ class CXDGOutputProtocol;
|
|||
|
||||
class CXDGOutput {
|
||||
public:
|
||||
CXDGOutput(SP<CZxdgOutputV1> resource, CMonitor* monitor_);
|
||||
CXDGOutput(SP<CZxdgOutputV1> resource, SP<CMonitor> monitor_);
|
||||
|
||||
void sendDetails();
|
||||
|
||||
private:
|
||||
CMonitor* monitor = nullptr;
|
||||
WP<CMonitor> monitor;
|
||||
SP<CZxdgOutputV1> resource;
|
||||
|
||||
std::optional<Vector2D> overridePosition;
|
||||
|
|
@ -30,12 +30,12 @@ class CXDGOutputProtocol : public IWaylandProtocol {
|
|||
CXDGOutputProtocol(const wl_interface* iface, const int& ver, const std::string& name);
|
||||
|
||||
virtual void bindManager(wl_client* client, void* data, uint32_t ver, uint32_t id);
|
||||
void updateAllOutputs();
|
||||
|
||||
private:
|
||||
void onManagerResourceDestroy(wl_resource* res);
|
||||
void onOutputResourceDestroy(wl_resource* res);
|
||||
void onManagerGetXDGOutput(CZxdgOutputManagerV1* mgr, uint32_t id, wl_resource* outputResource);
|
||||
void updateAllOutputs();
|
||||
|
||||
//
|
||||
std::vector<UP<CZxdgOutputManagerV1>> m_vManagerResources;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue