Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

X11 clipboard support #5479

Closed
wants to merge 10 commits into from

fixup! Implement X11 clipboard integration (Issue #5376).

  • Loading branch information
aweinstock314 committed Apr 1, 2015
commit 3cbe25a04c4a4729835b860f8dfa8d0e0e6b15da
@@ -2,11 +2,12 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

use dom::bindings::trace::JSTraceable;

// X11 clipboard support
#[cfg(target_os="linux")]
mod x11_clipboard {
//use dom::bindings::trace::JSTraceable;
//use js::jsapi::JSTracer;

use xlib::{Display, Window};
use xlib::{XOpenDisplay, XCloseDisplay};
use xlib::{XCreateSimpleWindow, XDefaultRootWindow};
@@ -17,7 +18,8 @@ mod x11_clipboard {
display: *mut Display,
window: Window,
}
no_jsmanaged_fields!(ClipboardContext);
no_jsmanaged_fields!(Display);
no_jsmanaged_fields!(Window);

impl ClipboardContext {
pub fn new() -> Result<ClipboardContext, &'static str> {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.