1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-07 01:16:35 +01:00

Dnd works

This commit is contained in:
mannol
2014-10-11 23:53:02 +02:00
parent 70add920fe
commit c825adc1e3
3 changed files with 300 additions and 111 deletions

View File

@@ -967,6 +967,12 @@ static useconds_t optimal_msleepval(uint64_t *looptimer, uint64_t *loopcount, ui
return new_sleep;
}
void cb(const char* asdv, DropType dt)
{
if (dt != DT_plain)
line_info_add(prompt, NULL, NULL, NULL, SYS_MSG, 0, 0, asdv);
}
int main(int argc, char *argv[])
{
parse_args(argc, argv);
@@ -1004,7 +1010,7 @@ int main(int argc, char *argv[])
int settings_err = settings_load(user_settings, p);
#ifdef X11
xtra_init();
xtra_init(cb);
#endif
Tox *m = init_tox();