mirror of
https://github.com/mintycube/dotfiles.git
synced 2024-10-22 14:05:41 +02:00
16 lines
286 B
C
16 lines
286 B
C
static char *expected;
|
|
void
|
|
expect(char *expect, XKeyEvent *ignored)
|
|
{
|
|
if (sel && expected && strstr(expected, expect)) {
|
|
puts(expect);
|
|
puts(sel->text);
|
|
cleanup();
|
|
exit(1);
|
|
} else if (!sel && expected && strstr(expected, expect)){
|
|
puts(expect);
|
|
cleanup();
|
|
exit(1);
|
|
}
|
|
}
|