protocols: add xdg_toplevel_tag_v1 support
Adds a new windowrule to target windows by xdgTag, xdgtag:
This commit is contained in:
parent
55e953b383
commit
a4f7d7c594
11 changed files with 140 additions and 11 deletions
36
src/protocols/XDGTag.hpp
Normal file
36
src/protocols/XDGTag.hpp
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
#include "WaylandProtocol.hpp"
|
||||
#include "xdg-toplevel-tag-v1.hpp"
|
||||
|
||||
class CXDGToplevelResource;
|
||||
|
||||
class CXDGToplevelTagManagerResource {
|
||||
public:
|
||||
CXDGToplevelTagManagerResource(UP<CXdgToplevelTagManagerV1>&& resource);
|
||||
|
||||
bool good();
|
||||
|
||||
private:
|
||||
UP<CXdgToplevelTagManagerV1> m_resource;
|
||||
};
|
||||
|
||||
class CXDGToplevelTagProtocol : public IWaylandProtocol {
|
||||
public:
|
||||
CXDGToplevelTagProtocol(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);
|
||||
|
||||
private:
|
||||
void destroyResource(CXDGToplevelTagManagerResource* res);
|
||||
|
||||
//
|
||||
std::vector<UP<CXDGToplevelTagManagerResource>> m_vManagers;
|
||||
|
||||
friend class CXDGToplevelTagManagerResource;
|
||||
};
|
||||
|
||||
namespace PROTO {
|
||||
inline UP<CXDGToplevelTagProtocol> xdgTag;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue