aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2015-07-19 13:53:40 +0200
committerPierre Krieger <pierre.krieger1708@gmail.com>2015-07-19 13:53:40 +0200
commitbaf9b92d3f8a62c6a10d2ea1506e262597e70ac9 (patch)
tree91f8a1c9c3b4a255e6b2aacc6668733edecb1204 /src/lib.rs
parent896640f2e0fd659e952e492c1b74841624db8d08 (diff)
downloadglutin-baf9b92d3f8a62c6a10d2ea1506e262597e70ac9.tar.gz
glutin-baf9b92d3f8a62c6a10d2ea1506e262597e70ac9.zip
Correct window creation on X11
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index f128f40..d43dcfb 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -323,6 +323,7 @@ pub struct PixelFormat {
/// Attributes
// FIXME: remove `pub` (https://github.com/rust-lang/rust/issues/23585)
+#[derive(Clone)]
#[doc(hidden)]
pub struct BuilderAttribs<'a> {
#[allow(dead_code)]
@@ -471,7 +472,7 @@ impl<'a> BuilderAttribs<'a> {
mod native_monitor {
/// Native platform identifier for a monitor. Different platforms use fundamentally different types
/// to represent a monitor ID.
- #[derive(PartialEq, Eq)]
+ #[derive(Clone, PartialEq, Eq)]
pub enum NativeMonitorId {
/// Cocoa and X11 use a numeric identifier to represent a monitor.
Numeric(u32),