Add stub OpenFont

This commit is contained in:
Oskari Alaranta 2026-02-12 02:40:10 +02:00
parent abaa239505
commit 188f9182ea
1 changed files with 21 additions and 0 deletions

View File

@ -2276,6 +2276,27 @@ BAN::ErrorOr<void> handle_packet(Client& client_info, BAN::ConstByteSpan packet)
break;
}
case X_OpenFont:
{
auto request = decode<xOpenFontReq>(packet).value();
auto name = BAN::StringView((char*)packet.data(), request.nbytes);
dwarnln("OpenFont");
dwarnln(" fid: {}", request.fid);
dwarnln(" name: {}", name);
xError error {
.type = X_Error,
.errorCode = BadName,
.sequenceNumber = client_info.sequence,
.resourceID = 0,
.minorCode = 0,
.majorCode = opcode,
};
TRY(encode(client_info.output_buffer, error));
break;
}
case X_GetInputFocus:
{
dprintln("GetInputFocus");