Bugzilla – Attachment 545 Details for
Bug 5096
Copy/paste issue between client and server applications
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
FLTK clipboard monitor
clipmon-fltk.c (text/x-csrc), 1017 bytes, created by
Henrik Andersson
on 2014-05-23 09:51:06 CEST
(
hide
)
Description:
FLTK clipboard monitor
Filename:
MIME Type:
Creator:
Henrik Andersson
Created:
2014-05-23 09:51:06 CEST
Size:
1017 bytes
patch
obsolete
>#include <FL/Fl.H> >#include <FL/Fl_Window.H> > >bool exit_loop = false; > >void clipboard_change_cb(int source, void *data) >{ > fprintf(stderr, "ClipMon-Fltk: Got clipboard data source %d...\n", source); >} > >void window_cb(Fl_Widget *widget, void *data) >{ > Fl_Window *win; > win = (Fl_Window*)widget; > fprintf(stderr, "Window callback\n"); > exit_loop = true; >} > >int main(int argc, char **argv) >{ > int res; > Fl_Window *window; > > window = new Fl_Window(100,100); > window->end(); > window->callback(window_cb, NULL); > > /* setup */ > Fl::add_clipboard_notify(clipboard_change_cb, window); > window->show(argc, argv); > > /* Main loop*/ > fprintf(stderr, "Entering main loop\n"); >#if 0 > res = Fl::run(); >#else > while (!exit_loop) { > Fl::wait(0.1); > } > window->hide(); >#endif > > fprintf(stderr, "Out of main loop, flushing messages\n"); > while (true) > Fl::wait(0.5); > > /* cleanup */ > Fl::remove_clipboard_notify(clipboard_change_cb); > > delete window; > > while (true) > Sleep(INFINITE); > > return res; >}
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 5096
:
544
| 545