Bugzilla – Attachment 885 Details for
Bug 7240
server can override and monitor clipboard when the client is in the background
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Test program that injects data into selection and clipboard for testing.
clipboard.c (text/x-csrc), 813 bytes, created by
Henrik Andersson
on 2018-09-17 16:00:54 CEST
(
hide
)
Description:
Test program that injects data into selection and clipboard for testing.
Filename:
MIME Type:
Creator:
Henrik Andersson
Created:
2018-09-17 16:00:54 CEST
Size:
813 bytes
patch
obsolete
>/* > * cbrun x86_64 x86_64-unknown-linux-gnu-g++ -o clipboard clipboard.c -ldl -lX11 -lXext -lXrender -lXinerama -lXft -lfontconfig -lXfixes -lXcursor -lfltk > */ >#include <FL/Fl.H> >#include <FL/Fl_Window.H> > >static struct { > int destination; > double interval; > int serial; >} _state = { > destination: 2, > interval: 5.0, > serial: 0 >}; > >static char buf[512]; > >static void update_clipboard(void*) >{ > snprintf(buf, sizeof(buf), "clipboard update serial %d", _state.serial); > Fl::copy(buf, strlen(buf), _state.destination); > _state.serial++; > fprintf(stderr, "%s\n", buf); > Fl::repeat_timeout(_state.interval, update_clipboard); >} > >int main(int argc, char **argv) >{ > Fl_Window win(0,0,0,0,""); > win.show(); > Fl::add_timeout(_state.interval, update_clipboard); > Fl::run(); >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 7240
: 885