dat: one pair of content purposes

Two frontends read the same two numbers, and wl.c carried four lines of
comment to say why it kept its own copy of them.  IBus and text-input-v3
number the purposes alike because both took them from GTK, so the header
is where they belong and the explanation goes away with the copy.  hidden
stays in both files: one asks about a context, the other about the seat.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-08-17 21:23:20 +09:00
parent 8472474332
commit aef577026d
4 changed files with 11 additions and 15 deletions

9
wl.c
View File

@@ -9,16 +9,9 @@
#include "imv2.h"
#include "vkv1.h"
/*
* text-input-v3 content purposes whose keys the engine never sees. IBus
* numbers these alike but does not share them: one enum here is cheaper
* than reaching into dat.h and ibus.c both.
*/
enum
{
Purposepassword = 8,
Purposepin = 9,
Maxcode = 0x300, /* KEY_MAX+1: what evdev can send */
Maxcode = 0x300, /* KEY_MAX+1: what evdev can send */
};
/*