commit_hash stringlengths 40 40 | author stringlengths 1 57 | date timestamp[s]date 2010-07-26 04:45:09 2026-04-14 18:21:10 | message stringlengths 8 1.39M | diff stringlengths 68 51.2k | files_changed int64 1 136 | insertions int64 0 2.35k | deletions int64 0 1.9k |
|---|---|---|---|---|---|---|---|
40f3cc218e53e89f4b5093b16348de3b7103a8bd | Martin Mills | 2018-04-03T14:55:50 | Version bump to 2.17.5. | diff --git a/x11-dl/Cargo.toml b/x11-dl/Cargo.toml
index 18a3a3c..e0fe4b5 100644
--- a/x11-dl/Cargo.toml
+++ b/x11-dl/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11-dl"
-version = "2.17.4"
+version = "2.17.5"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "C... | 2 | 2 | 2 |
ec2f3c0c7fe0fd6efe8c2467eb56004e6289e2dc | Martin Mills | 2018-04-03T03:14:18 | Version bump to 2.17.4. | diff --git a/x11-dl/Cargo.toml b/x11-dl/Cargo.toml
index 241e43b..18a3a3c 100644
--- a/x11-dl/Cargo.toml
+++ b/x11-dl/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11-dl"
-version = "2.17.3"
+version = "2.17.4"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "C... | 2 | 2 | 2 |
ec9780a36289e5ae448ad7a0540fbd5bd17da8a2 | Francesca Frangipane | 2018-04-01T22:37:53 | Added definitions for XIM callbacks. | diff --git a/src/xlib.rs b/src/xlib.rs
index bd18b92..62d4585 100644
--- a/src/xlib.rs
+++ b/src/xlib.rs
@@ -952,6 +952,8 @@ pub type XrmOptionDescList = *mut XrmOptionDescRec;
// function pointers
pub type XConnectionWatchProc = Option<unsafe extern "C" fn (*mut Display, XPointer, c_int, Bool, XPointer)>;
+pub typ... | 1 | 13 | 0 |
b1fde3e5726132b32d197cf75ba2bee58efcfc5c | Francesca Sunshine | 2017-12-21T19:45:41 | Corrected XkbSelectEvents to take c_ulong masks. | diff --git a/src/xlib.rs b/src/xlib.rs
index 14f41e9..bd18b92 100644
--- a/src/xlib.rs
+++ b/src/xlib.rs
@@ -495,7 +495,7 @@ x11_link! { Xlib, x11, ["libX11.so.6", "libX11.so"], 767,
pub fn XkbResizeKeySyms (_3: XkbDescPtr, _2: c_int, _1: c_int) -> *mut c_ulong,
pub fn XkbResizeKeyType (_5: XkbDescPtr, _4: c_int,... | 1 | 1 | 1 |
3bbfd656fb8251d103fd9f8c96cae41a92ee554a | Bastien Orivel | 2017-12-04T20:57:14 | Update lazy_static and bump version | diff --git a/x11-dl/Cargo.toml b/x11-dl/Cargo.toml
index c278c6f..a8fff13 100644
--- a/x11-dl/Cargo.toml
+++ b/x11-dl/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11-dl"
-version = "2.17.0"
+version = "2.17.1"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "C... | 1 | 2 | 2 |
34ce68f13ddab0fa76f3abe93b6124cac8755a38 | Anthony Ramine | 2017-11-24T09:58:58 | Remove metadeps dependency
It uses an outdated YAML parser and doesn't bring much benefit. | diff --git a/x11/Cargo.toml b/x11/Cargo.toml
index ce676f5..397c011 100644
--- a/x11/Cargo.toml
+++ b/x11/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11"
-version = "2.17.0"
+version = "2.17.1"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "CC0-1.0"
@@ -33,... | 2 | 32 | 21 |
6a50a91e9191b3391a119267d703ced795d19747 | daggerbot | 2017-11-22T21:11:01 | Version bump to 2.17.0. | diff --git a/x11-dl/Cargo.toml b/x11-dl/Cargo.toml
index d8d6880..c278c6f 100644
--- a/x11-dl/Cargo.toml
+++ b/x11-dl/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11-dl"
-version = "2.16.0"
+version = "2.17.0"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "C... | 2 | 2 | 2 |
7c96a3835f700e242e16369d9766b0b360faafb9 | Ariel Ben-Yehuda | 2017-11-22T12:41:27 | avoid undefined behavior with mem::zeroed
Creating structs with invalid data is UB and can cause the program to
behave unexpectedly. To avoid that, this patch creates the invalid data
behind a `ManuallyDrop`, and only creates a struct after the data is in
a valid state.
This fixes a crash on nightly rustc. | diff --git a/x11-dl/src/link.rs b/x11-dl/src/link.rs
index 0603702..74a8065 100644
--- a/x11-dl/src/link.rs
+++ b/x11-dl/src/link.rs
@@ -36,7 +36,7 @@ macro_rules! x11_link {
unsafe impl Sync for $struct_name {}
impl $struct_name {
- unsafe fn init (&mut self) -> Result<(), $crate::error::OpenError> {
... | 1 | 10 | 9 |
455a24845ad85dccec7f4b615e09d88450a7318c | daggerbot | 2017-10-23T13:09:11 | Version bump to 2.16.0. | diff --git a/x11-dl/Cargo.toml b/x11-dl/Cargo.toml
index ac94f0c..d8d6880 100644
--- a/x11-dl/Cargo.toml
+++ b/x11-dl/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11-dl"
-version = "2.15.0"
+version = "2.16.0"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "C... | 2 | 2 | 2 |
171fc1a2789d087e09e2ae39b9c5ab9e09e44f4d | darkstalker | 2017-10-21T23:48:29 | fix struct names for auto-generated xinput2 code
needed for proper Debug output | diff --git a/src/xinput2.rs b/src/xinput2.rs
index 0147205..b78cd37 100644
--- a/src/xinput2.rs
+++ b/src/xinput2.rs
@@ -217,68 +217,68 @@ pub const XI_BarrierLeaveMask: i32 = (1 << XI_BarrierLeave);
#[repr(C)]
#[derive(Debug, Copy)]
-pub struct Struct_Unnamed1 {
+pub struct XIAddMasterInfo {
pub _type: ::std:... | 1 | 115 | 114 |
34ffe2f758033bb5ccb0d6b0928e9e1f9edec771 | darkstalker | 2017-10-21T23:34:41 | implemented Debug for XEvent | diff --git a/src/xlib.rs b/src/xlib.rs
index 49982f7..14f41e9 100644
--- a/src/xlib.rs
+++ b/src/xlib.rs
@@ -16,6 +16,7 @@ use std::os::raw::{
c_ushort,
c_void,
};
+use std::fmt;
use libc::wchar_t;
@@ -1037,6 +1038,51 @@ impl XEvent {
}
}
+impl fmt::Debug for XEvent {
+ fn fmt(&self, f: &mut fmt::For... | 1 | 46 | 0 |
3b8bcfa005a98184f248ae57ca12644e783c1cf5 | darkstalker | 2017-10-21T22:44:13 | derive Debug for all structs
a few were left out due to unimplemented types. | diff --git a/src/xcursor.rs b/src/xcursor.rs
index 5efe3cc..0c5f8fa 100644
--- a/src/xcursor.rs
+++ b/src/xcursor.rs
@@ -101,7 +101,7 @@ pub type XcursorDim = XcursorUInt;
pub type XcursorPixel = XcursorUInt;
pub type XcursorUInt = c_uint;
-#[derive(Clone, Copy)]
+#[derive(Debug, Clone, Copy)]
#[repr(C)]
pub stru... | 11 | 209 | 209 |
dafeaffc977756c6b2b5dd6aa28e26621dc64779 | Evgenii Pashkin | 2017-10-21T15:26:04 | Add dox feature to suppress probing native packages | diff --git a/x11/Cargo.toml b/x11/Cargo.toml
index 5f6836c..2de588f 100644
--- a/x11/Cargo.toml
+++ b/x11/Cargo.toml
@@ -27,6 +27,7 @@ xss = []
xt = []
xtest = ["xtst"]
xtst = []
+dox = []
[dependencies]
libc = "0.2"
diff --git a/x11/build.rs b/x11/build.rs
index 160dc98..3550499 100644
--- a/x11/build.rs
+++ b/... | 2 | 2 | 0 |
6a202929ee11f3ce8972ceaa93e57cca6ccb5a13 | Michael Sloan | 2017-09-24T07:12:38 | XineramaQueryExtension arguments are pointers not by-val | diff --git a/src/xinerama.rs b/src/xinerama.rs
index c5d743b..1610170 100644
--- a/src/xinerama.rs
+++ b/src/xinerama.rs
@@ -24,7 +24,7 @@ use ::xlib::{
x11_link! { Xlib, xinerama, ["libXinerama.so.1", "libXinerama.so"], 10,
pub fn XineramaIsActive (dpy: *mut Display) -> Bool,
- pub fn XineramaQueryExtension (dp... | 1 | 1 | 1 |
fc979a827f070e2c9b3cd82847b22173e796674f | darkstalker | 2017-09-19T00:20:42 | convert XEvent into an union | diff --git a/src/xf86vmode.rs b/src/xf86vmode.rs
index 53d6e2c..7ed289e 100644
--- a/src/xf86vmode.rs
+++ b/src/xf86vmode.rs
@@ -12,9 +12,6 @@ use std::os::raw::{
c_ushort,
};
-use std::mem;
-use ::internal::transmute_union;
-
use ::xlib::{
Bool,
Display,
@@ -145,5 +142,5 @@ pub struct XF86VidModeNotifyEve... | 4 | 102 | 55 |
7a7337748a7e7f60c07816ec05dcbdad736df59e | Daggerbot | 2017-08-13T03:01:15 | Version bump to 2.15.0. | diff --git a/x11-dl/Cargo.toml b/x11-dl/Cargo.toml
index cc65c60..ac94f0c 100644
--- a/x11-dl/Cargo.toml
+++ b/x11-dl/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11-dl"
-version = "2.14.0"
+version = "2.15.0"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "C... | 2 | 2 | 2 |
4340a85fe1e09f09fa06bd25258f3fc502aa9ca3 | Daggerbot | 2017-08-13T02:43:55 | Add nul-terminated string constants. | diff --git a/src/xlib.rs b/src/xlib.rs
index fcf49bc..6bda964 100644
--- a/src/xlib.rs
+++ b/src/xlib.rs
@@ -3146,6 +3146,38 @@ pub const XNFontSet: &'static str = "fontSet";
pub const XNLineSpace: &'static str = "lineSpace";
pub const XNCursor: &'static str = "cursor";
+pub const XNVaNestedList_0: &'static [u8] = ... | 1 | 44 | 0 |
44d9c74b1d5590f3927f8e2196a8d2fe78a8c9dc | Daggerbot | 2017-08-13T02:39:07 | Add missing GLX constants. | diff --git a/src/glx.rs b/src/glx.rs
index 244f254..bafff0f 100644
--- a/src/glx.rs
+++ b/src/glx.rs
@@ -128,10 +128,17 @@ pub const GLX_TRANSPARENT_RED_VALUE: c_int = 0x0025;
pub const GLX_TRANSPARENT_GREEN_VALUE: c_int = 0x0026;
pub const GLX_TRANSPARENT_BLUE_VALUE: c_int = 0x0027;
pub const GLX_TRANSPARENT_ALPHA_... | 1 | 57 | 0 |
5fa47c2aef955b68f7a36e1d6f475dc48eb8f9ed | Daggerbot | 2017-08-13T02:18:02 | Add glXGetProcAddressARB. | diff --git a/src/glx.rs b/src/glx.rs
index 6d7d34c..244f254 100644
--- a/src/glx.rs
+++ b/src/glx.rs
@@ -22,7 +22,7 @@ use ::xlib::{
//
-x11_link! { Glx, gl, ["libGL.so.1", "libGL.so"], 39,
+x11_link! { Glx, gl, ["libGL.so.1", "libGL.so"], 40,
pub fn glXChooseFBConfig (_4: *mut Display, _3: c_int, _2: *const c_... | 2 | 3 | 1 |
4120ed73582cb8da8434e0d351a8714d63ab752a | Daggerbot | 2017-05-17T17:37:37 | Version bump to 2.14.0. | diff --git a/x11-dl/Cargo.toml b/x11-dl/Cargo.toml
index ceb55ea..cc65c60 100644
--- a/x11-dl/Cargo.toml
+++ b/x11-dl/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11-dl"
-version = "2.13.0"
+version = "2.14.0"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "C... | 2 | 2 | 2 |
8e97eaefb514928fd3c18314921803a66aa32232 | Mason Larobina | 2017-04-17T06:01:50 | Add bindings for XICCEncodingStyle, copied from /usr/include/X11/Xutil.h | diff --git a/src/xlib.rs b/src/xlib.rs
index 647aa6d..36b39a8 100644
--- a/src/xlib.rs
+++ b/src/xlib.rs
@@ -3231,3 +3231,10 @@ pub const IconMaskHint: c_long = 1 << 5;
pub const WindowGroupHint: c_long = 1 << 6;
pub const AllHints: c_long = InputHint | StateHint | IconPixmapHint | IconWindowHint | IconPositionHint |... | 1 | 7 | 0 |
1c83249f7da91c7ada08c6cde60e3f5f79012be0 | Mason Larobina | 2017-04-17T03:29:07 | Add bindings for XWMHints flags, copied from /usr/include/X11/Xutil.h | diff --git a/src/xlib.rs b/src/xlib.rs
index 2e992b7..647aa6d 100644
--- a/src/xlib.rs
+++ b/src/xlib.rs
@@ -3220,3 +3220,14 @@ pub const HeightValue: c_int = 0x0008;
pub const AllValues: c_int = 0x000f;
pub const XNegative: c_int = 0x0010;
pub const YNegative: c_int = 0x0020;
+
+// Definition for flags of XWMHints
... | 1 | 11 | 0 |
a52d1da89c272bffbfb06efdb412d606ac183a91 | Daggerbot | 2017-04-09T15:23:29 | Version bump to 2.13.0. | diff --git a/x11-dl/Cargo.toml b/x11-dl/Cargo.toml
index 3d1912e..ceb55ea 100644
--- a/x11-dl/Cargo.toml
+++ b/x11-dl/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11-dl"
-version = "2.12.1"
+version = "2.13.0"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "C... | 2 | 2 | 2 |
a0e55afc38b6cb8e4a06d729444a94fbc3335584 | Daggerbot | 2017-03-08T16:43:54 | Add XParseGeometry return constants. | diff --git a/src/xlib.rs b/src/xlib.rs
index e117523..2e992b7 100644
--- a/src/xlib.rs
+++ b/src/xlib.rs
@@ -3210,3 +3210,13 @@ pub const XkbActionMessageMask: c_ulong = 1 << 9;
pub const XkbAccessXNotifyMask: c_ulong = 1 << 10;
pub const XkbExtensionDeviceNotifyMask: c_ulong = 1 << 11;
pub const XkbAllEventsMask: c... | 1 | 10 | 0 |
b3db68341176d596319ef53f815731c7baad2664 | Daggerbot | 2017-01-02T16:46:06 | Bump minimum version of x11 pkg down to 1.4.99.1. | diff --git a/x11-dl/Cargo.toml b/x11-dl/Cargo.toml
index 5ae829d..3d1912e 100644
--- a/x11-dl/Cargo.toml
+++ b/x11-dl/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11-dl"
-version = "2.12.0"
+version = "2.12.1"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "C... | 2 | 3 | 3 |
1abb57e1e1c6a6de484711d4a67de090ab7a5b61 | Josh Triplett | 2016-12-26T10:28:07 | Use metadeps to specify pkg-config dependencies declaratively
This makes it easier for distribution packaging tools to generate
appropriate package dependencies. | diff --git a/x11/Cargo.toml b/x11/Cargo.toml
index e0e995f..64f2fe5 100644
--- a/x11/Cargo.toml
+++ b/x11/Cargo.toml
@@ -19,14 +19,32 @@ xlib = []
xlib_xcb = []
xmu = []
xrandr = []
-xrecord = []
+xrecord = ["xtst"]
xrender = []
xss = []
xt = []
-xtest = []
+xtest = ["xtst"]
+xtst = []
[dependencies]
libc = "... | 2 | 23 | 20 |
01e07265f95818df05f11df03f3535ab4020b5b7 | Daggerbot | 2016-10-21T21:10:39 | Version bump to 2.11.0. | diff --git a/x11-dl/Cargo.toml b/x11-dl/Cargo.toml
index 1b4061c..8ed2f6c 100644
--- a/x11-dl/Cargo.toml
+++ b/x11-dl/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11-dl"
-version = "2.10.0"
+version = "2.11.0"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "C... | 2 | 2 | 2 |
186414bb147c43504ee9b25350a462157dae1ceb | Greg V | 2016-10-21T20:37:14 | Fix linking on BSD systems | diff --git a/x11-dl/build.rs b/x11-dl/build.rs
index 104eb05..a7999bc 100644
--- a/x11-dl/build.rs
+++ b/x11-dl/build.rs
@@ -40,5 +40,10 @@ fn main() {
let mut f = File::create(&dest_path).unwrap();
f.write_all(&config.into_bytes()).unwrap();
- println!("cargo:rustc-link-lib=dl");
+ let target = env::... | 1 | 6 | 1 |
7684b7ed156fae817830d503155579bd8acf3d91 | Daggerbot | 2016-10-21T05:02:17 | Version bump to 2.10.0. | diff --git a/x11-dl/Cargo.toml b/x11-dl/Cargo.toml
index 9f39bfb..1b4061c 100644
--- a/x11-dl/Cargo.toml
+++ b/x11-dl/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11-dl"
-version = "2.9.0"
+version = "2.10.0"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "CC... | 2 | 2 | 2 |
45f9b1e7e82222ba46d401e37ea16aa79ae115aa | Mason Larobina | 2016-10-21T04:07:39 | Add XK_XKB_KEYS from /usr/include/X11/keysymdef.h | diff --git a/src/keysym.rs b/src/keysym.rs
index 330ef3f..f075794 100644
--- a/src/keysym.rs
+++ b/src/keysym.rs
@@ -1175,3 +1175,158 @@ pub const XF86XK_Next_VMode: c_uint = 0x1008FE22;
pub const XF86XK_Prev_VMode: c_uint = 0x1008FE23;
pub const XF86XK_LogWindowTree: c_uint = 0x1008FE24;
pub const XF86XK_LogGrabInf... | 1 | 155 | 0 |
56167aeb792172c66a215911fe2abba507f08445 | Daggerbot | 2016-10-10T05:25:16 | Version bump to 2.9.0. | diff --git a/x11-dl/Cargo.toml b/x11-dl/Cargo.toml
index feb2a27..9f39bfb 100644
--- a/x11-dl/Cargo.toml
+++ b/x11-dl/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11-dl"
-version = "2.8.0"
+version = "2.9.0"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "CC0... | 2 | 2 | 2 |
86d346b9cd79c83cb5cd6b87a0be22f740bd01c4 | Daggerbot | 2016-10-09T23:08:27 | Add Xkb event constants. | diff --git a/src/xlib.rs b/src/xlib.rs
index d29e923..e117523 100644
--- a/src/xlib.rs
+++ b/src/xlib.rs
@@ -3183,3 +3183,30 @@ pub const XkbLC_BeepOnComposeFail: c_uint = 1 << 31;
pub const XkbLC_AllComposeControls: c_uint = 0xc000_0000;
pub const XkbLC_AllControls: c_uint = 0xc000_001f;
+
+pub const XkbNewKeyboar... | 1 | 27 | 0 |
33be43921085736fc7d65c0197c569ef2068fbab | Daggerbot | 2016-10-03T06:21:32 | Add structs and constants from <X11/XKBlib.h>. | diff --git a/src/xlib.rs b/src/xlib.rs
index 2994cf9..d29e923 100644
--- a/src/xlib.rs
+++ b/src/xlib.rs
@@ -869,7 +869,6 @@ pub enum _XrmHashBucketRec {}
#[repr(C)] pub struct _XkbKey;
#[repr(C)] pub struct _XkbKeyType;
#[repr(C)] pub struct _XkbMapChanges;
-#[repr(C)] pub struct _XkbMapNotifyEvent;
#[repr(C)] pub... | 1 | 303 | 1 |
6dbee5d73d50e51305bfb236e73a19cd56cc6030 | Daggerbot | 2016-07-30T17:52:14 | Make last two PRs work with each other and version bump to 2.8.0. | diff --git a/src/xlib_xcb.rs b/src/xlib_xcb.rs
index bcac1f1..c1a8145 100644
--- a/src/xlib_xcb.rs
+++ b/src/xlib_xcb.rs
@@ -1,7 +1,7 @@
use std::os::raw::c_void;
use ::xlib::Display;
-x11_link! { Xlib_xcb, ["libX11-xcb.so.1", "libX11-xcb.so"], 1,
+x11_link! { Xlib_xcb, xlib_xcb, ["libX11-xcb.so.1", "libX11-xcb.so"... | 4 | 4 | 3 |
a5eae7b16989fe83feb59b55c98eed76e4853856 | Nicolas Koch | 2016-07-29T10:40:27 | Add support for xlib-xcb conversion utility | diff --git a/src/xlib_xcb.rs b/src/xlib_xcb.rs
new file mode 100644
index 0000000..bcac1f1
--- /dev/null
+++ b/src/xlib_xcb.rs
@@ -0,0 +1,10 @@
+use std::os::raw::c_void;
+use ::xlib::Display;
+
+x11_link! { Xlib_xcb, ["libX11-xcb.so.1", "libX11-xcb.so"], 1,
+ pub fn XGetXCBConnection(_1: *mut Display) -> *mut xcb_c... | 7 | 16 | 0 |
b750d641ed627794c5029996b06cae8684d73653 | Benno Fünfstück | 2016-07-13T14:40:15 | x11-dl: export xss module
x11 already exports this module | diff --git a/x11-dl/src/lib.rs b/x11-dl/src/lib.rs
index 4ee9475..3fc2c4c 100644
--- a/x11-dl/src/lib.rs
+++ b/x11-dl/src/lib.rs
@@ -34,6 +34,7 @@ pub mod xmd;
pub mod xmu;
pub mod xrecord;
pub mod xrender;
+pub mod xss;
pub mod xt;
pub mod xtest; | 1 | 1 | 0 |
2c570ee95dec3547bceaf6e4c2686aa31d32605e | Benno Fünfstück | 2016-07-13T14:33:01 | x11-dl: fallback to pkg-config libdir for loading
Some source-based distributions do not have libraries in the standard
paths such as /usr/lib or /lib and don't make all libraries available
though LD_LIBRARY_PATH either (an example is NixOS). Before this patch,
x11-dl would not work on these kind of distributions. To ... | diff --git a/src/dpms.rs b/src/dpms.rs
index 721558a..a19a9de 100644
--- a/src/dpms.rs
+++ b/src/dpms.rs
@@ -13,7 +13,7 @@ use xmd::{ CARD16, BOOL };
//
-x11_link! { Xext, ["libXext.so.6", "libXext.so"], 9,
+x11_link! { Xext, xext, ["libXext.so.6", "libXext.so"], 9,
pub fn DPMSQueryExtension (_1: *mut Display, ... | 21 | 72 | 25 |
4f2790b8cd991b79acc570544bd1c6e10d19fe07 | Daggerbot | 2016-07-11T18:27:04 | Version bump to 2.7.0. | diff --git a/x11-dl/Cargo.toml b/x11-dl/Cargo.toml
index 30d060c..68d1b61 100644
--- a/x11-dl/Cargo.toml
+++ b/x11-dl/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11-dl"
-version = "2.6.1"
+version = "2.7.0"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "CC0... | 2 | 2 | 2 |
55559e0f8c7722e90382060d055024f001156307 | meh | 2016-06-25T15:07:12 | Add missing event impl to XF86VMode | diff --git a/src/xf86vmode.rs b/src/xf86vmode.rs
index 983419f..eeeba86 100644
--- a/src/xf86vmode.rs
+++ b/src/xf86vmode.rs
@@ -12,11 +12,15 @@ use std::os::raw::{
c_ushort,
};
+use std::mem;
+use ::internal::transmute_union;
+
use ::xlib::{
Bool,
Display,
Time,
Window,
+ XEvent,
};
@@ -113,6 ... | 1 | 19 | 5 |
b037b7e0f1d5299fd28c34a151cc18381e719720 | meh | 2016-06-25T15:06:53 | Add missing constants and event impls in XRandr | diff --git a/src/xrandr.rs b/src/xrandr.rs
index b83a39f..e3130be 100644
--- a/src/xrandr.rs
+++ b/src/xrandr.rs
@@ -3,7 +3,9 @@
// These bindings are public domain.
use std::os::raw::{ c_char, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort };
+use std::mem;
+use ::internal::transmute_union;
use xlib... | 1 | 279 | 122 |
0f610382840594899352e80b7c4d0a86ae4c117c | meh | 2016-06-25T15:06:35 | Fix warning in Xss | diff --git a/src/xss.rs b/src/xss.rs
index af5b80c..93e57d0 100644
--- a/src/xss.rs
+++ b/src/xss.rs
@@ -2,7 +2,7 @@
// The X11 libraries are available under the MIT license.
// These bindings are public domain.
-use std::os::raw::{ c_int, c_uint, c_long, c_ulong };
+use std::os::raw::{ c_int, c_uint, c_ulong };
u... | 1 | 1 | 1 |
11ff4718f0065b56a6ece048fea2356d4eae69fa | meh | 2016-06-17T19:24:11 | Added support for DPMS extension | diff --git a/src/dpms.rs b/src/dpms.rs
new file mode 100644
index 0000000..721558a
--- /dev/null
+++ b/src/dpms.rs
@@ -0,0 +1,44 @@
+// x11-rs: Rust bindings for X11 libraries
+// The X11 libraries are available under the MIT license.
+// These bindings are public domain.
+
+use std::os::raw::{ c_int };
+
+use xlib::{ ... | 10 | 66 | 0 |
6d7a95808fe06a9330be0d415655e3787c4fcb6c | Daggerbot | 2016-06-16T21:29:00 | Version bump to 2.6.1. | diff --git a/x11-dl/Cargo.toml b/x11-dl/Cargo.toml
index acf93ca..30d060c 100644
--- a/x11-dl/Cargo.toml
+++ b/x11-dl/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11-dl"
-version = "2.6.0"
+version = "2.6.1"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "CC0... | 2 | 2 | 2 |
a30671b72d4eddc48a923aac5c2ffe60d51b4d98 | meh | 2016-06-16T03:12:25 | Added XScreenSaver extension support | diff --git a/src/xss.rs b/src/xss.rs
new file mode 100644
index 0000000..af5b80c
--- /dev/null
+++ b/src/xss.rs
@@ -0,0 +1,100 @@
+// x11-rs: Rust bindings for X11 libraries
+// The X11 libraries are available under the MIT license.
+// These bindings are public domain.
+
+use std::os::raw::{ c_int, c_uint, c_long, c_u... | 7 | 111 | 2 |
8023aab0bd3ba732fc60342ef8512bd96f34360a | meh | 2016-06-15T19:30:40 | Fix event transmutation from reference | diff --git a/src/xlib.rs b/src/xlib.rs
index b54aa52..e9d9dca 100644
--- a/src/xlib.rs
+++ b/src/xlib.rs
@@ -1030,7 +1030,7 @@ macro_rules! event_conversions_and_tests {
impl<'a> From<&'a XEvent> for $ty {
fn from (xevent: &'a XEvent) -> $ty {
- unsafe { transmute_union(&xevent) }
+ ... | 1 | 1 | 1 |
df26934a58f1bcce0e859863c1ad41f78e7d316a | Daggerbot | 2016-06-05T16:40:07 | Version bump to 2.6.0. | diff --git a/x11-dl/Cargo.toml b/x11-dl/Cargo.toml
index 9b27499..acf93ca 100644
--- a/x11-dl/Cargo.toml
+++ b/x11-dl/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11-dl"
-version = "2.5.1"
+version = "2.6.0"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "CC0... | 2 | 2 | 2 |
918296edd4457b34472104f816c6f3b81529ec1d | Daggerbot | 2016-06-05T16:38:59 | Add Xft. | diff --git a/src/xft.rs b/src/xft.rs
new file mode 100644
index 0000000..9339024
--- /dev/null
+++ b/src/xft.rs
@@ -0,0 +1,219 @@
+// x11-rs: Rust bindings for X11 libraries
+// The X11 libraries are available under the MIT license.
+// These bindings are public domain.
+
+use std::os::raw::*;
+
+use xlib::{Display, Re... | 7 | 226 | 4 |
94d2b097033cf791afd01032bd5b8aa71e795fab | Daggerbot | 2016-05-11T02:45:32 | Add xrender constants. | diff --git a/src/xrender.rs b/src/xrender.rs
index 54b0fb3..dd3116a 100644
--- a/src/xrender.rs
+++ b/src/xrender.rs
@@ -317,3 +317,147 @@ pub struct _XTransform {
pub matrix: [[XFixed; 3]; 3],
}
pub type XTransform = _XTransform;
+
+
+//
+// constants
+//
+
+
+// pict format mask
+pub const PictFormatID: c_ulong ... | 1 | 144 | 0 |
018036098c2e07aad84a344721c3051080b9405a | Daggerbot | 2016-05-01T05:29:22 | Version bump to 2.5.1. | diff --git a/x11-dl/Cargo.toml b/x11-dl/Cargo.toml
index 9defe81..9b27499 100644
--- a/x11-dl/Cargo.toml
+++ b/x11-dl/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11-dl"
-version = "2.5.0"
+version = "2.5.1"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "CC0... | 2 | 2 | 2 |
809115d5ad61cc0f16d472e1dca8a45e99755d2e | Matt Brubeck | 2016-04-30T22:28:20 | Implement conversion traits for c_schar and c_uchar
This fixes a build error on platfoms like ARM where c_char and c_uchar are the
same type. (The C standard doesn't specify whether `char` is the same as
`signed char` or `unsigned char`.) | diff --git a/src/xlib.rs b/src/xlib.rs
index e99aa65..b54aa52 100644
--- a/src/xlib.rs
+++ b/src/xlib.rs
@@ -10,6 +10,7 @@ use std::os::raw::{
c_int,
c_long,
c_short,
+ c_schar,
c_uchar,
c_uint,
c_ulong,
@@ -2202,7 +2203,7 @@ macro_rules! client_message_data_conversions {
}
client_message_data_co... | 1 | 2 | 1 |
f1b57e2c76ecbee2d936c677fe624995ef0dbde5 | Daggerbot | 2016-04-23T16:47:49 | Version bump to 2.5.0. | diff --git a/x11-dl/Cargo.toml b/x11-dl/Cargo.toml
index 84c2efc..9defe81 100644
--- a/x11-dl/Cargo.toml
+++ b/x11-dl/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11-dl"
-version = "2.4.0"
+version = "2.5.0"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "CC0... | 2 | 2 | 2 |
22dff4ddd1ee010617abbe2bbeb808fe12553c40 | Daggerbot | 2016-04-23T16:47:20 | Add conversions for XGenericEventCookie. | diff --git a/src/xlib.rs b/src/xlib.rs
index 0ce4a7f..e99aa65 100644
--- a/src/xlib.rs
+++ b/src/xlib.rs
@@ -1051,6 +1051,7 @@ event_conversions_and_tests! {
XErrorEvent,
XExposeEvent,
XFocusChangeEvent,
+ XGenericEventCookie,
XGraphicsExposeEvent,
XGravityEvent,
XKeyEvent,
@@ -1796,12 +1797,6 @@ pub... | 1 | 1 | 6 |
ef2b167575c67a830eea531b7b160fe9e45ba184 | Daggerbot | 2016-04-22T22:32:19 | Try opening versioned libraries before unversioned. | diff --git a/src/glx.rs b/src/glx.rs
index 67bc53e..673b191 100644
--- a/src/glx.rs
+++ b/src/glx.rs
@@ -22,7 +22,7 @@ use ::xlib::{
//
-x11_link! { Glx, ["libGL.so", "libGL.so.1"], 39,
+x11_link! { Glx, ["libGL.so.1", "libGL.so"], 39,
pub fn glXChooseFBConfig (_4: *mut Display, _3: c_int, _2: *const c_int, _1:... | 12 | 12 | 12 |
ae42e4f8c52e4957556d87b13c9467a074435d47 | Daggerbot | 2016-04-22T22:26:51 | Optimize loader x11-dl loader functions. | diff --git a/src/glx.rs b/src/glx.rs
index b6128d7..67bc53e 100644
--- a/src/glx.rs
+++ b/src/glx.rs
@@ -22,7 +22,7 @@ use ::xlib::{
//
-x11_link! { Glx, ["libGL.so", "libGL.so.1"],
+x11_link! { Glx, ["libGL.so", "libGL.so.1"], 39,
pub fn glXChooseFBConfig (_4: *mut Display, _3: c_int, _2: *const c_int, _1: *mu... | 18 | 44 | 30 |
d888002034d8dede170905ee48a38eed10db4ba6 | Daggerbot | 2016-03-31T02:11:05 | Impl Send and Sync for dynamic libraries. | diff --git a/x11-dl/src/link.rs b/x11-dl/src/link.rs
index a0b0901..407dd5c 100644
--- a/x11-dl/src/link.rs
+++ b/x11-dl/src/link.rs
@@ -31,6 +31,9 @@ macro_rules! x11_link {
$(pub $var_name: *mut $var_type,)*
}
+ unsafe impl Send for $struct_name {}
+ unsafe impl Sync for $struct_name {}
+
imp... | 1 | 3 | 0 |
bf97b708c998aad904761e62be08d8e17b632664 | Daggerbot | 2016-03-31T01:55:53 | Remove dependence on dylib crate. | diff --git a/x11-dl/Cargo.toml b/x11-dl/Cargo.toml
index 0dfe3d4..51fca9d 100644
--- a/x11-dl/Cargo.toml
+++ b/x11-dl/Cargo.toml
@@ -5,7 +5,7 @@ authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "CC0-1.0"
repository = "https://github.com/Daggerbot/x11-rs.git"
+buil... | 5 | 107 | 39 |
b6abaa9cfd94451c5e4fa66794a3d7dff5d25861 | Daggerbot | 2016-03-16T23:12:02 | Add bindings for libXrandr.so.2.2.0 needed for Ubuntu LTS 14.04. | diff --git a/x11-dl/src/lib.rs b/x11-dl/src/lib.rs
index b0dfb83..44646e5 100644
--- a/x11-dl/src/lib.rs
+++ b/x11-dl/src/lib.rs
@@ -25,8 +25,12 @@ pub mod xinput;
pub mod xinput2;
pub mod xlib;
pub mod xmu;
-pub mod xrandr;
pub mod xrecord;
pub mod xrender;
pub mod xt;
pub mod xtest;
+
+pub mod xrandr {
+ in... | 2 | 78 | 1 |
e877a899c5f032e2870f29578ead25c0b0913845 | Daggerbot | 2016-03-16T22:37:27 | Add XF86 keysyms. | diff --git a/src/keysym.rs b/src/keysym.rs
index 03cd606..330ef3f 100644
--- a/src/keysym.rs
+++ b/src/keysym.rs
@@ -997,3 +997,181 @@ pub const XK_hebrew_shin: c_uint = 0xcf9;
pub const XK_hebrew_taw: c_uint = 0xcfa;
pub const XK_hebrew_taf: c_uint = 0xcfa;
pub const XK_Hebrew_switch: c_uint = 0xFF7E;
+
+pub const ... | 1 | 178 | 0 |
07cb4e2e5480c606d6b1bfa6ea1c02e1cdac4b71 | Daggerbot | 2016-02-03T02:46:11 | Add Xrandr. | diff --git a/src/xrandr.rs b/src/xrandr.rs
new file mode 100644
index 0000000..3e21e1e
--- /dev/null
+++ b/src/xrandr.rs
@@ -0,0 +1,398 @@
+// x11-rs: Rust bindings for X11 libraries
+// The X11 libraries are available under the MIT license.
+// These bindings are public domain.
+
+use std::os::raw::{ c_char, c_int, c_... | 9 | 429 | 25 |
9ccdb8ff2119ea66c5ab06fd84f79c5823ec3860 | Daggerbot | 2016-01-31T17:44:32 | Version bump to 2.3.1. | diff --git a/x11-dl/Cargo.toml b/x11-dl/Cargo.toml
index cbc2e0c..77a7d47 100644
--- a/x11-dl/Cargo.toml
+++ b/x11-dl/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11-dl"
-version = "2.3.0"
+version = "2.3.1"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "CC0... | 2 | 2 | 2 |
0be040578863f0fbf2f1c96ce2dc70944143c65f | Daggerbot | 2016-01-31T17:40:54 | Update lints for rustc 1.6. | diff --git a/x11-dl/src/lib.rs b/x11-dl/src/lib.rs
index 2d3c1b0..f7cff73 100644
--- a/x11-dl/src/lib.rs
+++ b/x11-dl/src/lib.rs
@@ -2,11 +2,9 @@
// The X11 libraries are available under the MIT license.
// These bindings are public domain.
-#![allow(unknown_lints)]
#![allow(non_camel_case_types)]
#![allow(non_sn... | 2 | 0 | 4 |
4a8f6f7adc46a47e01a825e71b04ff3730c3a42b | Daggerbot | 2015-11-19T18:34:50 | Minor fixes which should enable servo build. | diff --git a/x11-dl/src/lib.rs b/x11-dl/src/lib.rs
index f7cff73..2d3c1b0 100644
--- a/x11-dl/src/lib.rs
+++ b/x11-dl/src/lib.rs
@@ -2,9 +2,11 @@
// The X11 libraries are available under the MIT license.
// These bindings are public domain.
+#![allow(unknown_lints)]
#![allow(non_camel_case_types)]
#![allow(non_sn... | 3 | 5 | 1 |
20c65a9bb6a4df5378da3dab2bf4decf30614353 | Simon Sapin | 2015-11-19T16:25:20 | Fix compiler warnings | diff --git a/src/internal.rs b/src/internal.rs
index d23e6a6..b1ec344 100644
--- a/src/internal.rs
+++ b/src/internal.rs
@@ -18,7 +18,7 @@ pub unsafe fn mem_eq<T: Sized> (a: &T, b: &T) -> bool {
let a_addr = a as *const T as usize;
let b_addr = b as *const T as usize;
- for i in (0..size_of::<T>()) {
+ for i ... | 3 | 2 | 4 |
c1f6a6436871de3d583de4e15aad325673c335b6 | Simon Sapin | 2015-11-19T16:22:14 | Update libc to 0.2 | diff --git a/x11-dl/Cargo.toml b/x11-dl/Cargo.toml
index 9fc793d..cbc2e0c 100644
--- a/x11-dl/Cargo.toml
+++ b/x11-dl/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11-dl"
-version = "2.2.1"
+version = "2.3.0"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "CC0... | 2 | 4 | 4 |
059a4543982a877f872981737c1d778adae28bbb | Simon Sapin | 2015-11-19T16:21:47 | Use std::os::raw instead of libc where possible. | diff --git a/examples/hello_world/main.rs b/examples/hello_world/main.rs
index c14932d..af4882a 100644
--- a/examples/hello_world/main.rs
+++ b/examples/hello_world/main.rs
@@ -10,7 +10,7 @@ use std::ptr::{
null_mut,
};
-use libc::c_uint;
+use std::os::raw::c_uint;
use x11::xlib;
const TITLE: &'static str = "... | 18 | 185 | 185 |
93067a35f7f3112a4dd15c007e97def3d9ca7aa2 | Daggerbot | 2015-11-07T00:41:11 | Update all wildcard dependencies. | diff --git a/x11-dl/Cargo.toml b/x11-dl/Cargo.toml
index 5a8d500..9fc793d 100644
--- a/x11-dl/Cargo.toml
+++ b/x11-dl/Cargo.toml
@@ -1,11 +1,11 @@
[package]
name = "x11-dl"
-version = "2.2.0"
+version = "2.2.1"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "C... | 2 | 4 | 4 |
0e600e955dc9be1bab1bb3da0b2aecebd405a5a7 | Josh Matthews | 2015-11-06T23:32:33 | Pin libc to avoid breakage of dependencies. | diff --git a/x11/Cargo.toml b/x11/Cargo.toml
index 094a227..a4b7a04 100644
--- a/x11/Cargo.toml
+++ b/x11/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11"
-version = "2.2.0"
+version = "2.2.1"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "CC0-1.0"
@@ -21,7 ... | 1 | 2 | 2 |
64ee1dd5324ec3c6dc4d6d87abdb39cd781124cf | Daggerbot | 2015-10-26T22:10:25 | Suppress 'improper_ctypes' warnings. | diff --git a/x11/src/lib.rs b/x11/src/lib.rs
index e051fd1..663e45c 100644
--- a/x11/src/lib.rs
+++ b/x11/src/lib.rs
@@ -7,6 +7,11 @@
#![allow(non_upper_case_globals)]
#![allow(raw_pointer_derive)]
+// A recent update to rustc has cause a bunch of `improper_ctypes` warnings to pop up. I believe
+// that all of the ... | 1 | 5 | 0 |
b80ee7e3a52d60575ee25f2f2ed9430113db9554 | Adam Badawy | 2015-10-27T04:54:12 | Bump up version to 2.2.0 | diff --git a/x11-dl/Cargo.toml b/x11-dl/Cargo.toml
index 935b555..5a8d500 100644
--- a/x11-dl/Cargo.toml
+++ b/x11-dl/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11-dl"
-version = "2.1.0"
+version = "2.2.0"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "CC0... | 2 | 2 | 2 |
bb7e376f55099ebac6727aea7acb33bb43f0aad0 | Adam Badawy | 2015-10-26T07:01:29 | Make ClientMessageData instantiable | diff --git a/src/xlib.rs b/src/xlib.rs
index e0d1f89..8b8881d 100644
--- a/src/xlib.rs
+++ b/src/xlib.rs
@@ -2450,6 +2450,10 @@ pub struct ClientMessageData {
}
impl ClientMessageData {
+ pub fn new() -> ClientMessageData {
+ ClientMessageData { longs: [0; 5] }
+ }
+
pub fn get_byte (&self, index: usize) ->... | 1 | 4 | 0 |
5d12f4a9dc4ae10a5dec4288c3153344ef5b135c | wartman4404 | 2015-10-11T01:07:53 | fix XErrorEvent element order | diff --git a/src/xlib.rs b/src/xlib.rs
index 008de28..e0d1f89 100644
--- a/src/xlib.rs
+++ b/src/xlib.rs
@@ -1447,11 +1447,11 @@ impl From<XEvent> for XDestroyWindowEvent {
pub struct XErrorEvent {
pub type_: c_int,
pub display: *mut Display,
+ pub resourceid: XID,
pub serial: c_ulong,
pub error_code: c_u... | 1 | 1 | 1 |
ebe0c1f5c6fd8e88e08566714057e26e80a51dd6 | Daggerbot | 2015-09-06T21:42:42 | Version bump to 2.1.0. | diff --git a/x11-dl/Cargo.toml b/x11-dl/Cargo.toml
index ef2c4bb..935b555 100644
--- a/x11-dl/Cargo.toml
+++ b/x11-dl/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11-dl"
-version = "2.0.1"
+version = "2.1.0"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "CC0... | 2 | 2 | 2 |
7a103682a1aaef0af29e2e22cdf18eed1443163f | Alexey Kolmakov | 2015-08-13T18:15:07 | Change app name | diff --git a/examples/xrecord/Cargo.toml b/examples/xrecord/Cargo.toml
index 43dd91d..29b120c 100644
--- a/examples/xrecord/Cargo.toml
+++ b/examples/xrecord/Cargo.toml
@@ -1,5 +1,5 @@
[package]
-name = "_"
+name = "x11-xrecord"
version = "0.0.0"
[dependencies]
@@ -10,5 +10,5 @@ path = "../../x11"
features = ["xl... | 1 | 2 | 2 |
88ddbe4268c4f7b16ea6034e813a5f047b21a64a | Alexey Kolmakov | 2015-08-12T19:10:46 | Add constants definitions from X11/extensions/recordconst.h | diff --git a/src/xrecord.rs b/src/xrecord.rs
index 7b4e400..51f4902 100644
--- a/src/xrecord.rs
+++ b/src/xrecord.rs
@@ -43,6 +43,27 @@ globals:
}
+//
+// constants
+//
+
+
+pub const XRecordFromServerTime: c_int = 0x01;
+pub const XRecordFromClientTime: c_int = 0x02;
+pub const XRecordFromClientSequence: c_int = ... | 1 | 21 | 0 |
332bbe17729c8a6849ae267647e66b752abd9214 | Daggerbot | 2015-07-11T02:52:35 | Switched back to a strict build system for 'x11' crate. | diff --git a/x11-dl/Cargo.toml b/x11-dl/Cargo.toml
index 1707404..ef2c4bb 100644
--- a/x11-dl/Cargo.toml
+++ b/x11-dl/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11-dl"
-version = "2.0.0"
+version = "2.0.1"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "CC0... | 3 | 13 | 13 |
9f7310a167dcc133235c9fff43774bdb6fe02bc3 | Daggerbot | 2015-07-04T03:20:12 | Revert 84617d1. | diff --git a/examples/hello_world/Cargo.toml b/examples/hello_world/Cargo.toml
index 3a905e3..2aee3b5 100644
--- a/examples/hello_world/Cargo.toml
+++ b/examples/hello_world/Cargo.toml
@@ -1,5 +1,5 @@
[package]
-name = "_"
+name = "hello_world"
version = "0.0.0"
[dependencies]
@@ -10,5 +10,5 @@ path = "../../x11"
... | 3 | 14 | 10 |
00d426f02f25d1ba3635d14c751b610459fbc34e | Daggerbot | 2015-07-02T09:11:38 | Optimized x11-dl build slightly. | diff --git a/x11-dl/src/link.rs b/x11-dl/src/link.rs
index 438694a..05e0c7d 100644
--- a/x11-dl/src/link.rs
+++ b/x11-dl/src/link.rs
@@ -36,16 +36,12 @@ macro_rules! x11_link {
impl $struct_name {
pub fn open () -> Result<$struct_name, ::error::OpenError> {
unsafe {
- let lib = try!(::link... | 1 | 7 | 11 |
84617d18cbe33f2769fbd16879969267105e1118 | Daggerbot | 2015-07-02T09:04:47 | Split xrecord from xtest. | diff --git a/src/xrecord.rs b/src/xrecord.rs
new file mode 100644
index 0000000..7b4e400
--- /dev/null
+++ b/src/xrecord.rs
@@ -0,0 +1,116 @@
+// x11-rs: Rust bindings for X11 libraries
+// The X11 libraries are available under the MIT license.
+// These bindings are public domain.
+
+use libc::{
+ c_char,
+ c_int,
+... | 8 | 122 | 93 |
e76804bda8aceb4e3ff8710277ebef88a335d5aa | Daggerbot | 2015-07-02T08:45:11 | Version bump to 2.0.0. | diff --git a/x11-dl/Cargo.toml b/x11-dl/Cargo.toml
index b62a258..1707404 100644
--- a/x11-dl/Cargo.toml
+++ b/x11-dl/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11-dl"
-version = "1.2.0"
+version = "2.0.0"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "CC0... | 2 | 2 | 2 |
c64a8619eee9f3271295f9c57e7f2e095c52cbe5 | Daggerbot | 2015-07-02T08:27:40 | Add XF86VidModeInfo.hskew. | diff --git a/src/xf86vmode.rs b/src/xf86vmode.rs
index 1be8ad4..dbbc728 100644
--- a/src/xf86vmode.rs
+++ b/src/xf86vmode.rs
@@ -74,6 +74,7 @@ pub struct XF86VidModeModeInfo {
pub hsyncstart: c_ushort,
pub hsyncend: c_ushort,
pub htotal: c_ushort,
+ pub hskew: c_ushort,
pub vdisplay: c_ushort,
pub vsync... | 1 | 1 | 0 |
0d0fc0345ff64de69e5908e3c568f8b06b2022bf | Jesús Espino | 2015-06-27T06:58:17 | Add all missed constants from X.h in xlib.rs | diff --git a/src/xlib.rs b/src/xlib.rs
index 9badc67..fe299dd 100644
--- a/src/xlib.rs
+++ b/src/xlib.rs
@@ -2663,6 +2663,8 @@ pub const SelectionNotify: c_int = 31;
pub const ColormapNotify: c_int = 32;
pub const ClientMessage: c_int = 33;
pub const MappingNotify: c_int = 34;
+pub const GenericEvent: c_int = 35;
+p... | 1 | 277 | 2 |
094944fa95c18131b986d6b994f1a3cd196c701f | Jesús Espino | 2015-06-23T05:51:39 | Add missed variables in xlib.rs file | diff --git a/src/xlib.rs b/src/xlib.rs
index 9badc67..5a950bc 100644
--- a/src/xlib.rs
+++ b/src/xlib.rs
@@ -2822,3 +2822,52 @@ pub const XIMStatusCallbacks: c_int = 0x0200;
pub const XIMStatusNothing: c_int = 0x0400;
pub const XIMStatusNone: c_int = 0x0800;
+pub const XNVaNestedList: &'static str = "XNVaNestedList... | 1 | 49 | 0 |
335c19bedd8d349b7382e88d0decd131d9c67ce8 | Daggerbot | 2015-06-18T12:12:14 | Added window gravity constants. | diff --git a/src/xlib.rs b/src/xlib.rs
index 5875c3e..2eb8ab7 100644
--- a/src/xlib.rs
+++ b/src/xlib.rs
@@ -2703,6 +2703,20 @@ pub const GrabInvalidTime: c_int = 2;
pub const GrabNotViewable: c_int = 3;
pub const GrabFrozen: c_int = 4;
+// gravity
+pub const ForgetGravity: c_int = 0;
+pub const UnmapGravity: c_int... | 1 | 16 | 1 |
b6edf3e7c8fd6a2a5f527fe2ad761c44b9958f98 | Avi Weinstock | 2015-06-17T13:27:52 | Add property-related constants from X.h to xlib.rs. | diff --git a/src/xlib.rs b/src/xlib.rs
index 5875c3e..1334544 100644
--- a/src/xlib.rs
+++ b/src/xlib.rs
@@ -2692,6 +2692,15 @@ pub const PropertyChangeMask: c_long = 0x0040_0000;
pub const ColormapChangeMask: c_long = 0x0080_0000;
pub const OwnerGrabButtonMask: c_long = 0x0100_0000;
+// property modes
+pub const P... | 1 | 10 | 1 |
fe9ff57fa3e6b2d6f5281216bb10bad3944581a5 | Alexey Kolmakov | 2015-06-06T03:25:41 | Fix library name (xtst). | diff --git a/x11/build.rs b/x11/build.rs
index d84ca19..19c9d0e 100644
--- a/x11/build.rs
+++ b/x11/build.rs
@@ -14,5 +14,5 @@ fn main () {
if cfg!(feature="xmu") { let _ = pkg_config::find_library("xmu"); }
if cfg!(feature="xrender") { let _ = pkg_config::find_library("xrender"); }
if cfg!(feature="xt") { let... | 1 | 1 | 1 |
24948907dcdf80a262d4bd4001dc38d58fd569cf | Daggerbot | 2015-06-04T11:01:56 | Added xinerama. | diff --git a/src/xinerama.rs b/src/xinerama.rs
new file mode 100644
index 0000000..bf162c8
--- /dev/null
+++ b/src/xinerama.rs
@@ -0,0 +1,66 @@
+// x11-rs: Rust bindings for X11 libraries
+// The X11 libraries are available under the MIT license.
+// These bindings are public domain.
+
+use libc::{
+ c_int,
+ c_short... | 7 | 72 | 0 |
7fdbffad8b3201b50af7fb21cf3fd0178a4c5985 | Daggerbot | 2015-06-04T10:45:03 | Added xtest. | diff --git a/src/xinput.rs b/src/xinput.rs
index fdfe2a8..4a3ede5 100644
--- a/src/xinput.rs
+++ b/src/xinput.rs
@@ -195,7 +195,7 @@ pub struct XFeedbackState {
pub struct XIAddMasterInfo {
pub type_: c_int,
pub name: *mut c_char,
- pub send_core: bool,
+ pub send_core: Bool,
pub enable: Bool,
}
@@ -305,... | 9 | 159 | 6 |
583eccb2af227a51c67e2eccd1ac05496f1532b1 | Daggerbot | 2015-06-04T10:20:35 | Added xfixes stub and xinput. | diff --git a/src/xfixes.rs b/src/xfixes.rs
new file mode 100644
index 0000000..0277cbf
--- /dev/null
+++ b/src/xfixes.rs
@@ -0,0 +1,13 @@
+// x11-rs: Rust bindings for X11 libraries
+// The X11 libraries are available under the MIT license.
+// These bindings are public domain.
+
+use ::xlib::XID;
+
+
+//
+// types
+//... | 10 | 389 | 3 |
764b519a6fdcb95c49dd545f63508b65d6f827e1 | Daggerbot | 2015-05-28T14:35:18 | Reversed the previous "optimization", which was causing a stack overflow. | diff --git a/x11-dl/src/link.rs b/x11-dl/src/link.rs
index 8b918c1..438694a 100644
--- a/x11-dl/src/link.rs
+++ b/x11-dl/src/link.rs
@@ -37,11 +37,14 @@ macro_rules! x11_link {
pub fn open () -> Result<$struct_name, ::error::OpenError> {
unsafe {
let lib = try!(::link::open_lib(&[$($lib_name)... | 1 | 6 | 3 |
6457baa3e0ecaf9dd18d9d918a39a794e6972b5c | Daggerbot | 2015-05-28T08:35:55 | Removed a few redundant lines of code. | diff --git a/x11-dl/src/link.rs b/x11-dl/src/link.rs
index 438694a..8b918c1 100644
--- a/x11-dl/src/link.rs
+++ b/x11-dl/src/link.rs
@@ -37,14 +37,11 @@ macro_rules! x11_link {
pub fn open () -> Result<$struct_name, ::error::OpenError> {
unsafe {
let lib = try!(::link::open_lib(&[$($lib_name)... | 1 | 3 | 6 |
cc7bc3f6316b7ca68272c0aff40b291e9a5be34c | Daggerbot | 2015-05-22T16:46:23 | Version bump to 1.1.1. | diff --git a/x11-dl/Cargo.toml b/x11-dl/Cargo.toml
index 91bd3e4..4116107 100644
--- a/x11-dl/Cargo.toml
+++ b/x11-dl/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11-dl"
-version = "1.1.0"
+version = "1.1.1"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "CC0... | 2 | 2 | 2 |
8a92f39ad2f05434f9a92c100dc8a1d7c0db17b0 | Daggerbot | 2015-05-22T16:44:05 | Changed build script to not panic if pkg-config can't find a library. | diff --git a/x11/build.rs b/x11/build.rs
index 46a40c7..b6d0afe 100644
--- a/x11/build.rs
+++ b/x11/build.rs
@@ -5,11 +5,11 @@
extern crate pkg_config;
fn main () {
- if cfg!(feature="glx") { pkg_config::find_library("gl").unwrap(); }
- if cfg!(feature="xcursor") { pkg_config::find_library("xcursor").unwrap(); }
... | 1 | 7 | 7 |
cb7aa1a7daf9ed50bacc2466e0da722c128c7ac4 | Daggerbot | 2015-05-18T17:39:46 | Version bump to 1.1.0. | diff --git a/x11-dl/Cargo.toml b/x11-dl/Cargo.toml
index fe7cedd..91bd3e4 100644
--- a/x11-dl/Cargo.toml
+++ b/x11-dl/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11-dl"
-version = "1.0.1"
+version = "1.1.0"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "CC0... | 2 | 2 | 2 |
0bde0db8cfb4a63b1ea105d7d7ed84523ab8ce9e | Jesús Espino | 2015-05-18T06:41:52 | Error types must be in c_uchar type (u8) | diff --git a/src/xlib.rs b/src/xlib.rs
index 2ddc8c7..4cfe2f7 100644
--- a/src/xlib.rs
+++ b/src/xlib.rs
@@ -2604,26 +2604,26 @@ pub const DoGreen: c_char = 2;
pub const DoBlue: c_char = 4;
// error codes
-pub const Success: c_int = 0;
-pub const BadRequest: c_int = 1;
-pub const BadValue: c_int = 2;
-pub const Bad... | 1 | 20 | 20 |
4c6a44d854626d2b09f128e42f6e8aa0d2290f49 | Daggerbot | 2015-05-17T20:30:20 | Added extern atoms for Xmu. | diff --git a/src/xmu.rs b/src/xmu.rs
index fb5c680..0bbe182 100644
--- a/src/xmu.rs
+++ b/src/xmu.rs
@@ -149,6 +149,29 @@ x11_link! { Xmu, ["libXmu.so", "libXmu.so.6"],
variadic:
pub fn XmuSnprintf (_3: *mut c_char, _2: c_int, _1: *const c_char) -> c_int,
globals:
+ pub static _XA_ATOM_PAIR: AtomPtr,
+ pub stati... | 1 | 23 | 0 |
3375e8095f2f8825744c95ef106a927206ef1b0b | Daggerbot | 2015-05-17T20:26:13 | Added support for extern globals. | diff --git a/src/glx.rs b/src/glx.rs
index c34e94a..432c47e 100644
--- a/src/glx.rs
+++ b/src/glx.rs
@@ -62,6 +62,8 @@ x11_link! { Glx, ["libGL.so", "libGL.so.1"],
pub fn glXUseXFont (_4: c_ulong, _3: c_int, _2: c_int, _1: c_int) -> (),
pub fn glXWaitGL () -> (),
pub fn glXWaitX () -> (),
+variadic:
+globals:
... | 9 | 24 | 33 |
ef39bfcaa40fc36c57ecf38cd3cc6e0d4bd1922e | Daggerbot | 2015-05-17T20:12:04 | Added xmu module. | diff --git a/src/xmu.rs b/src/xmu.rs
new file mode 100644
index 0000000..33039a5
--- /dev/null
+++ b/src/xmu.rs
@@ -0,0 +1,175 @@
+// x11-rs: Rust bindings for X11 libraries
+// The X11 libraries are available under the MIT license.
+// These bindings are public domain.
+
+use libc::{
+ c_char,
+ c_int,
+ c_uchar,
+... | 8 | 185 | 0 |
301b37e2a410a3340ef5dea7e62f8d1b6defc78c | Daggerbot | 2015-05-17T19:59:12 | Added xt module. | diff --git a/src/xt.rs b/src/xt.rs
new file mode 100644
index 0000000..27500b4
--- /dev/null
+++ b/src/xt.rs
@@ -0,0 +1,393 @@
+use libc::{
+ c_char,
+ c_int,
+ c_long,
+ c_short,
+ c_uchar,
+ c_uint,
+ c_ulong,
+ c_ushort,
+ c_void,
+};
+
+use ::xlib::{
+ Display,
+ GC,
+ Region,
+ Screen,
+ Visual,
+ X... | 7 | 401 | 2 |
1e87e0926b1579037f79e621eb7dc1ebc7feb0d2 | Daggerbot | 2015-05-17T08:24:27 | Version un-bump. Waiting until 1.1.0 is ready for publishing. | diff --git a/x11-dl/Cargo.toml b/x11-dl/Cargo.toml
index 91bd3e4..fe7cedd 100644
--- a/x11-dl/Cargo.toml
+++ b/x11-dl/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11-dl"
-version = "1.1.0"
+version = "1.0.1"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "CC0... | 2 | 2 | 2 |
e3020cd1a6d974bdfc29c73147d8165d655be14c | Daggerbot | 2015-05-17T08:18:19 | Added empty, deprecated x11::xlib::xkb module.
This should be marked with the `deprecated` attribute, but rustc currently doesn't allow this outside of the standard library. | diff --git a/src/xlib.rs b/src/xlib.rs
index c2ad654..f9081c7 100644
--- a/src/xlib.rs
+++ b/src/xlib.rs
@@ -27,6 +27,9 @@ use ::internal::{
transmute_union,
};
+// deprecated
+pub mod xkb {}
+
//
// functions | 1 | 3 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.