Files
sloposk/tools/textprobe.cpp
T
ericek111andClaude Opus 5.5 cdef9b4ad0 Spike: KWin input-method backend with floating layer-shell window
Registers as KWin's virtual keyboard (input-method-unstable-v1), shows a
non-focusable layer-shell overlay, and commits Unicode text. Verified in a
nested headless KWin with the textprobe tool.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 14:43:44 +02:00

18 lines
410 B
C++

#include <QApplication>
#include <QLineEdit>
#include <cstdio>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QLineEdit edit;
QObject::connect(&edit, &QLineEdit::textChanged, [](const QString &text) {
std::printf("TEXT:%s\n", qPrintable(text));
std::fflush(stdout);
});
edit.resize(400, 40);
edit.show();
edit.setFocus();
return app.exec();
}