wayland: Add title/class to wayland window (#19)

This commit is contained in:
phonetic112 2024-07-17 05:40:45 -04:00 committed by GitHub
parent 1e385d02b3
commit cebcba4e10
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -479,6 +479,9 @@ Aquamarine::CWaylandOutput::CWaylandOutput(const std::string& name_, Hyprutils::
waylandState.xdgToplevel->setClose([this](CCXdgToplevel* r) { destroy(); }); waylandState.xdgToplevel->setClose([this](CCXdgToplevel* r) { destroy(); });
waylandState.xdgToplevel->sendSetTitle(std::format("aquamarine - {}", name).c_str());
waylandState.xdgToplevel->sendSetAppId("aquamarine");
auto inputRegion = makeShared<CCWlRegion>(backend->waylandState.compositor->sendCreateRegion()); auto inputRegion = makeShared<CCWlRegion>(backend->waylandState.compositor->sendCreateRegion());
inputRegion->sendAdd(0, 0, INT32_MAX, INT32_MAX); inputRegion->sendAdd(0, 0, INT32_MAX, INT32_MAX);