Commit graph

461 commits

Author SHA1 Message Date
Victor Berger 1e97103094 wayland: migrate to smithay-client-toolkit (#490)
* wayland: migrate to smithay-client-toolkit

* Update smithay-client-toolkit

* Add changelog entry for wayland rework
2018-05-05 13:36:34 -04:00
Francesca Frangipane c4b92ebd45
X11: General cleanup (#491)
* X11: General cleanup

This is almost entirely internal changes, and as usual, doesn't actually
fix any problems people have complained about.

- `XSetInputFocus` can't be called before the window is visible. This
was previously handled by looping (with a sleep) and querying for the
window's state until it was visible. Now we use `XIfEvent`, which blocks
until we receive `VisibilityNotify`. Note that this can't be replaced
with an `XSync` (I tried).
- We now call `XSync` at the end of window creation and check for
errors, assuring that broken windows are never returned. When creating
invisible windows, this is the only time the output buffer is flushed
during the entire window creation process (AFAIK). For visible windows,
`XIfEvent` will generally flush, but window creation has overall been
reduced to the minimum number of flushes.
- `check_errors().expect()` has been a common pattern throughout the
backend, but it seems that people (myself included) didn't make a
distinction between using it after synchronous requests and asynchronous
requests. Now we only use it after async requests if we flush first,
though this still isn't correct (since the request likely hasn't been
processed yet). The only real solution (besides forcing a sync *every
time*) is to handle asynchronous errors *asynchronously*. For future
work, I plan on adding logging, though I don't plan on actually
*handling* those errors; that's more of something to hope for in the
hypothetical async/await XCB paradise.
- We now flush whenever it makes sense to. `util::Flusher` was added to
force contributors to be aware of the output buffer.
- `Window::get_position`, `Window::get_inner_position`,
`Window::get_inner_size`, and `Window::get_outer_size` previously all
required *several* round-trips. On my machine, it took an average of
around 80µs. They've now been reduced to one round-trip each, which
reduces my measurement to 16µs. This was accomplished simply by caching
the frame extents, which are expensive to calculate (due to various
queries and heuristics), but change infrequently and predictably. I
still recommend that application developers use these methods sparingly
and generally prefer storing the values from `Resized`/`Moved`, as
that's zero overhead.
- The above change enabled me to change the `Moved` event to supply
window positions, rather than client area positions. Additionally, we no
longer generate `Moved` for real (as in, not synthetic)
`ConfigureNotify` events. Real `ConfigureNotify` events contain
positions relative to the parent window, which are typically constant
and useless. Since that position would be completely different from the
root-relative positions supplied by synthetic `ConfigureNotify` events
(which are the vast majority of them), that meant real `ConfigureNotify`
events would *always* be detected as the position having changed, so the
resultant `Moved` was multiple levels of misleading. In practice, this
meant a garbage `Moved` would be sent every time the window was resized;
now a resize has to actually change the window's position to be
accompanied by `Moved`.
- Every time we processed an `XI_Enter` event, we would leak 4 bytes via
`util::query_pointer` (`XIQueryPointer`). `XIButtonState` contains a
dynamically-allocated mask field which we weren't freeing. As this event
occurs with fairly high frequency, long-running applications could
easily accumulate substantial leaks. `util::PointerState::drop` now
takes care of this.
- The `util` module has been split up into several sub-modules, as it
was getting rather lengthy. This accounts for a significant part of this
diff, unfortunately.
- Atoms are now cached. Xlib caches them too, so `XInternAtom` wouldn't
typically be a round-trip anyway, but the added complexity is
negligible.
- Switched from `std::sync::Mutex` to `parking_lot::Mutex` (within this
backend). There appears to be no downside to this, but if anyone finds
one, this would be easy to revert.
- The WM name and supported hints are now global to the application, and
are updated upon `ReparentNotify`, which should detect when the WM was
replaced (assuming a reparenting WM was involved, that is). Previously,
these values were per-window and would never update, meaning replacing
the WM could potentially lead to (admittedly very minor) problems.
- The result of `Window2::create_empty_cursor` will now only be used if
it actually succeeds.
- `Window2::load_cursor` no longer re-allocates the cursor name.
- `util::lookup_utf8` previously allocated a 16-byte buffer on the heap.
Now it allocates a 1024-byte buffer on the stack, and falls back to
dynamic allocation if the buffer is too small. This base buffer size is
admittedly gratuitous, but less so if you're using IME.
- `with_c_str` was finally removed.
- Added `util::Format` enum to help prevent goofs when dealing with
format arguments.
- `util::get_property`, something I added way back in my first winit PR,
only calculated offsets correctly for `util::Format::Char`. This was
concealed by the accomodating buffer size, as it would be very rare for
the offset to be needed; however, testing with a buffer size of 1,
`util::Format::Long` would read from the same offset multiple times, and
`util::Format::Short` would miss data. This function now works correctly
for all formats, relying on the simple fact that the offset increases by
the buffer size on each iteration. We also account for the extra byte
that `XGetWindowProperty` allocates at the end of the buffer, and copy
data from the buffer instead of moving it and taking ownership of the
pointer.
- Drag and drop now reliably works in release mode. This is presumably
related to the `util::get_property` changes.
- `util::change_property` now exists, which should make it easier to add
features in the future.
- The `EventsLoop` device map is no longer in a mutex.
- `XConnection` now implements `Debug`.
- Valgrind no longer complains about anything related to winit (with
either the system allocator or jemalloc, though "not having valgrind
complain about jemalloc" isn't something to strive for).

* X11: Add better diagnostics when initialization fails

* X11: Handle XIQueryDevice failure

* X11: Use correct types in error handler
2018-05-03 09:15:49 -04:00
Francesca Frangipane 2ea42b3947
Release winit 0.13.1 (#486) 2018-04-26 18:53:16 -04:00
Branan Riley 7510b95d8c Set minimum x11-dl version to include Z (#484)
Without this pin, an existing cargo.lock for an older winit will not
update the x11-dl dependency, and thus will select a version that is
missing required new XIM features.
2018-04-26 11:53:11 -04:00
Joe Moon 4641433c6a bump minor version (#468)
* bump minor version

* update changelog date and fix typo

* Updated date (we're going to release for real this time)

* Update version in README for the first time in a long time
2018-04-25 11:43:32 -04:00
Edwin Cheng bdc01fee1a Implement set_maximized, get_current_monitor, set_fullscreen and set_decorations for windows (#457)
* Implement set_fullscreen for windows

* Implement get_current_monitor for windows

* Implement set_maximized

* Implement set_decorations for windows

* Update CHANGELOG.md

* Fixed minor syntax bug for stable rust version

* Added support for WindowBuilder::with_maximized

* Move all window sized related functions to main thread

* Refactor and formatting force_window_active

* Remove unused code

* Update CHANGELOG.md

* Refactor and change keyboard handling code

* Reformatting and refactoring

* Added back missing link for comment

* Fixed set_maximized and set_fullscreen wrong order bug

* Call ShowWindow(SW_RESTORE) when restore_saved_window

* Sync system maximized status when set_fullscreen

* Fixed wrong function name
2018-04-12 13:12:15 -04:00
mitchmindtree 9d036a6faa
Publish 0.12.0. Update CHANGELOG. (#449)
See the CHANGELOG for all relevant changes included in this new version.
2018-04-06 15:04:12 +05:45
Pierre Krieger 0b922ad9c0
0.11.3 (#437) 2018-03-28 13:32:46 +02:00
Paul Rouget 51181b4347 Version bump (#418)
* Send Awakened event on Android when event loop is woken up

* v0.11.2
2018-03-06 18:07:18 +01:00
Chet Gurevitch f279b2f229 Version 0.11.1 (#409) 2018-02-20 16:18:16 +01:00
Pierre Krieger 4abcc164cd
Publish 0.11.0 (#404) 2018-02-09 12:07:19 +01:00
Paul Rouget 9b5254adeb Version 0.10.1 (#397) 2018-02-05 18:50:13 +01:00
Jeff Muizelaar b49abbbf17 Update mac dependencies (#390) 2018-02-05 14:34:37 +01:00
Gabriel Majeri dddd9de151 Update x11-dl (#378) 2018-01-09 11:48:23 +01:00
Pierre Krieger 198d9ff230
Publish 0.10.0 (#375) 2017-12-27 19:44:53 +01:00
Chet Gurevitch 23881459bc Update dependencies (#369)
* macos: Update core-graphics to v12 and cocoa to v13

* Update lazy_static to v1
2017-12-27 18:39:38 +01:00
Gabriel Majeri d92666c188 Update winapi to 0.3 (#346)
* Update to `winapi` 0.3

* Update max size comment

* Fix missing import

* Shorten import path

* Update to stable winapi version
2017-12-24 14:46:47 +01:00
Francesca Sunshine d18db208ff x11: Implement file drag and drop (#360)
* x11: Implement file drag and drop

* Fixed typo
2017-12-13 12:22:03 +01:00
stuart nelson 8348e8225b bump for v0.9.0 (#355) 2017-12-01 10:58:48 +01:00
Victor Berger 61d25be3e0
wayland: upgrade wayland-window (#339)
* wayland: upgrade wayland-window

This new version of wayland window considerably simplifies the
window handling for winit, meaning much of the previous juggling
is no longer needed, and the windows will appear even if nothing is
drawn.

* wayland: cleanup unused stuff
2017-11-03 17:35:29 +01:00
Andriy Symonovych 37a10e6741 update macos deps (#335) 2017-10-31 11:03:18 +01:00
Victor Berger 62e45fa75d wayland: update dependencies (#334) 2017-10-30 07:27:43 +01:00
Victor Berger d10312c6b1 Rewrite of wayland backend to new wayland-client API (#325)
* wayland: clean state for rewrite to new wayland-client API

* wayland: context init

* wayland: Monitors logic

* wayland: Basic event loop logic

* wayland: Keyboard handling

* wayland: pointer handling

* wayland: refactor to remove WaylandContext

* wayland: window logic

* wayland: event dispatching logic

* wayland: update changelog
2017-10-20 09:46:42 +02:00
Chet Gurevitch eff3440482 Mirror x11 ISO_LEFT_TAB detection on wayland and release version 0.8.3 (#314)
* wayland: mirror x11 ISO_LEFT_TAB detection

* Release 0.8.3
2017-10-12 09:39:41 +02:00
Victor Berger b337d8f99b Version 0.8.2 (#301) 2017-09-28 19:04:26 +02:00
tomaka 15fbc0dff4 Publish 0.8.1 with fixes necessary for glutin (#296) 2017-09-23 09:36:30 +02:00
tomaka 3edc8e0cd9 Publish 0.8.0 (#290) 2017-09-22 08:00:19 +02:00
tomaka ae7802c8c2 Fix warnings for win32 (#283) 2017-09-13 11:15:16 +02:00
Pedro Côrte-Real 5b57b73fe8 Remove dead code causing warnings (#278) 2017-09-04 08:45:56 +02:00
Victor Berger 1b22e39fb2 wayland: internal event buffer & wait for xdg configure (#255) 2017-08-31 19:43:24 +02:00
Tim Steinbach be9d4e7e03
Release 0.7.6 2017-08-26 10:41:24 -04:00
Victor Berger 8d5b23d56c Update wayland-window to support xdg_shell 2017-07-19 18:28:14 +02:00
Rukai e1e21ded28 Fix x11 ModifiersState 2017-07-15 09:58:32 -07:00
Pierre Krieger 7a1a2667b1 Reimplement platform_window on win32 2017-07-13 21:14:32 +02:00
Rukai 117beed0b5 Fix x11 mouse scroll wheel 2017-07-11 17:15:23 +10:00
Imanol Fernandez 5ebeb8ab5f Fix Android compilation error 2017-07-06 23:33:42 +02:00
Pierre Krieger ac0d6c890a Remove dependency on cgl on OSX 2017-07-05 09:13:39 +02:00
tomaka e196f80e98 Publish 0.7.1 2017-07-01 10:28:37 +02:00
Brendan Zabarauskas 886eab5c7e Fix build on nightly
Nightly recently fixed some soundness issues related to `Sized`. This had to be fixed in the cocoa crates as well, and also affects our ios bindings.
2017-07-01 17:48:47 +10:00
tomaka db0f012574 Merge pull request #205 from mitchmindtree/publish
Publish version 0.7.0
2017-06-24 09:02:29 +02:00
mitchmindtree 9a17c2eb86 Publish version 0.7.0
Includes:

- Recent removal of sync (breaking change) #191.
- Wayland fixes: #190, #188, #181
- X11 fixes: #174, #178,
2017-06-24 12:26:15 +10:00
Victor Berger e915454a9d linux: update wayland dependencies 2017-06-23 20:25:06 +02:00
Victor Berger 148c751f32 wayland: Initially paint the window white so that they always exist 2017-05-23 21:53:17 +02:00
Joe Wilm 6c5bc52a5f Bump Cargo.toml version to match crates.io
This makes is possible for consumers to use cargo [replace] with the
latest Glutin.
2017-05-09 09:55:10 -07:00
mitchmindtree 9363ee20f3 Publish 0.6.3 with recent non-breaking macOS fixes 2017-03-25 14:51:58 +11:00
Victor Berger 08254e68fb Readd pub import erroneously removed 2017-03-15 10:11:43 +01:00
Victor Berger 50f38e2f76 wayland: Update to wayland 0.8.6 2017-03-13 19:18:49 +01:00
Imanol Fernandez f961bdd668 Implement android events and wake event loop. 2017-03-06 14:39:42 +01:00
Victor Berger 64c8f66e72 wayland: implement modifiers 2017-03-03 22:28:02 +01:00
Sotaro Ikeda 3b1df2c585 Update cgl to v0.2 2017-03-02 14:48:03 +09:00
Pierre Krieger e158af6806 Add categories 2017-01-31 10:01:36 +01:00
tomaka 5b1d38cb2f Fix stupid shit 2017-01-28 11:22:20 +01:00
tomaka 56b536cd48 Publish 0.5.9 2017-01-25 07:58:51 +01:00
tomaka 07f7612e3b Pin down to cocoa 0.5.2 2017-01-20 07:09:37 +01:00
rerion 941c8d3344 Add TODO & bump version 2017-01-07 15:00:15 +01:00
Paul Houghton d4ee609e6f Dependent crates version updates 2016-12-08 09:29:17 +02:00
Corey Farwell cb0811faf3 Implement window transparency on macOS.
Fixes https://github.com/tomaka/winit/issues/57.
2016-11-30 14:36:51 -05:00
Corey Farwell a7c8d115d2 Bump version to 0.5.6.
Primarily to pick up https://github.com/tomaka/winit/pull/89.
2016-11-23 17:01:44 -05:00
Pierre Krieger 38ad236df0 Publish 0.5.5 2016-11-05 13:44:36 +01:00
tomaka 2a545a8ef6 Publish 0.5.4 2016-11-05 09:48:58 +01:00
Jacob Greenfield f9030abdab Bump version of MacOS deps. 2016-11-02 11:23:18 -04:00
tomaka a32aaee83e Publish 0.5.3 2016-10-20 11:24:42 +02:00
Victor Berger 76f5613496 wayland: properly fetch new events with Window::poll_events() 2016-10-16 23:29:29 +02:00
Victor Berger a5ba9983c9 wayland: basic mouse & keyboard support 2016-10-09 16:08:10 +02:00
Victor Berger 34c00aa153 wayland: window creation & resizing 2016-10-09 16:08:10 +02:00
Victor Berger c991172a28 wayland: remove old code for new backend 2016-10-09 16:08:10 +02:00
Andrey Lesnikov 7f6ae8910e Merge https://github.com/tomaka/glutin
Conflicts:
	.travis.yml
	Cargo.toml
	examples/fullscreen.rs
	src/api/android/mod.rs
	src/api/cocoa/headless.rs
	src/api/cocoa/helpers.rs
	src/api/cocoa/mod.rs
	src/api/glx/mod.rs
	src/api/osmesa/mod.rs
	src/api/win32/callback.rs
	src/headless.rs
	src/lib.rs
	src/platform/linux/mod.rs
	src/window.rs
2016-09-19 19:53:28 +03:00
Andrey Lesnikov 6089fa8c2c docs.rs 2016-09-05 22:10:15 +03:00
tomaka 37882d140d Publish 0.5.2 2016-07-31 08:31:41 +02:00
Nicolas Koch 32d01b288e Add support for xcb
Due to XCB and Xlib compability, we can take a shortcut and use X11's
underlying xcb_connection. This way, a complete XCB backend implementation can
be avoided.
2016-07-31 00:00:43 +02:00
Nicolas Koch 8a2a3219d7 Simplify target dependencies in Cargo.toml 2016-07-30 22:08:00 +02:00
tomaka 50b2b4d351 Publish 0.6.1 2016-06-19 12:53:28 +02:00
tomaka 3958cd7192 Publish 0.6.0 2016-06-13 10:34:35 +02:00
tomaka 11faacefd7 Merge pull request #772 from ozkriff/master
Update to android_glue 0.2
2016-05-25 21:22:13 +02:00
tomaka 8e8e1e7729 Publish 0.5.1
cc @nicokoch
2016-05-24 07:42:24 +02:00
tomaka cf02e7f1f4 Publish 0.5.2 2016-05-19 11:14:19 +02:00
Victor Berger 14323656b6
wayland: Remove EGL-dependent code.
This removes all EGL-specific code from the wayland backend.

Notable unresolved question: due to wayland design, the resizing
methods will only get/set the size of the drawn borders, not of the
actual content drawn. This latter size cannot be controlled by winit.
2016-05-08 09:11:15 +02:00
Andrey Lesnikov 18f846403b Updated to android_glue 0.2 2016-05-06 00:01:40 +03:00
Matt Brubeck 386db74093 Update lazy_static, osmesa-sys, and x11-dl 2016-05-02 15:05:45 -07:00
Matt Brubeck 523140ed74 Use cfg syntax for target-specific dependencies 2016-05-02 15:05:09 -07:00
Corey Farwell dc49156fe6 Allow OSX WindowBuilder to specify 'activation behavior'. 2016-04-29 10:43:30 -04:00
Pierre Krieger 764bf7ce4b Update the android glue to 0.2 to use the new cargo-apk crate 2016-04-26 13:43:48 +02:00
Pierre Chevalier 18c065a2a1 Publish 0.5.1
- to make the fix for #748 available to the repos downstream that need it
2016-04-13 07:54:37 +01:00
tomaka 136d3beed1 Publish 0.5.0 2016-04-06 16:34:30 +02:00
Pierre Krieger d216d6b052 Merge remote-tracking branch 'glutin/master' into merge-glutin
Conflicts:
	Cargo.toml
	build.rs
	src/api/caca/mod.rs
	src/api/cocoa/mod.rs
	src/api/egl/ffi.rs
	src/api/egl/mod.rs
	src/api/glx/mod.rs
	src/api/osmesa/mod.rs
2016-03-26 17:55:03 +01:00
Brendan Zabarauskas e8b3570db4 Update gl_generator to v0.5 2016-03-24 14:03:38 +11:00
Steven Sheldon c5268309c3 Update objc to 0.2. 2016-03-20 16:04:11 -07:00
Manish Goregaokar 1de66e4efb Add support for navigation keys 2016-03-17 16:04:03 +05:30
Corey Farwell c0adb8d87e Fix Mac build by bumping core-graphics.
At the time of writing, Glutin requires 0.2.x and cocoa requires 0.3.x.
2016-03-14 20:22:19 -04:00
Jack Moffitt 717d0184c0 Pin core-graphics to 0.2 since cocoa 0.2.4 does 2016-03-08 22:59:15 -07:00
Kirill Zdornyy 74a28adba2 Fix this_platform_is_not_supported on OpenBSD.
I followed the steps of @mneumann.
2016-03-01 18:06:13 -08:00
Paul Rouget 68818751f4 TouchpadPressure event 2016-02-26 11:08:46 +01:00
Pierre Krieger 10bb03c5f0 Remove most OpenGL stuff and make it compile on win32 2016-02-23 12:56:23 +01:00
tomaka bd605478d1 Merge pull request #723 from petevine/master
Add the new `i586` target in Cargo.toml
2016-02-14 18:21:45 +01:00
petevine e4bf0a22b5 Update Cargo.toml 2016-02-14 18:03:50 +01:00
Pierre Krieger 86dd75f7e9 Publish 0.4.8 2016-02-09 15:24:44 +01:00
Pierre Krieger 9238a48ffc Merge branch 'master' of http://github.com/tomaka/gl-init-rs 2016-02-09 15:20:06 +01:00
Pierre Krieger 982279bc39 Update the emscripten port of glutin 2016-02-09 14:25:21 +01:00
petevine abdfa91b75 Update Cargo.toml 2016-02-01 16:27:16 +01:00
tomaka 4222812e12 Merge pull request #716 from mmatyas/typofix
Typo fix in package description
2016-02-01 11:54:04 +01:00
Mátyás Mustoha 4c7460a410 Typo fix in package description 2016-02-01 11:22:22 +01:00
Pierre Krieger 5cce3f9640 Publish 0.4.7 2016-01-29 07:36:09 +01:00
tomaka 8f1151cbc4 Publish 0.4.6 2016-01-28 22:44:32 +01:00
Marcell Pardavi 535356f5ce Dependency fix 2015-12-31 21:22:19 +01:00
Ruben Bakker c68fb24838 Publish 0.4.5 2015-12-29 22:39:43 +02:00
Victor Berger aace58d203 api/wayland: fix Window not being Send+Sync 2015-12-22 14:36:41 +01:00
Victor Berger 84f1aef100 api/wayland: add keyboard support. 2015-12-22 14:36:41 +01:00
Victor Berger 833c892cf9 api/wayland: update wayland-client to 0.5.3 2015-12-22 14:36:41 +01:00
Victor Berger fad2e77a36 api/wayland: Reset to empty API.
In order to build the whole new structure.
2015-12-22 14:36:41 +01:00
tomaka ae7638b995 Publish 0.4.4 2015-12-20 15:08:28 +01:00
Simon Sapin e4f1c7358d Update some libraries 2015-12-01 02:11:54 +01:00
tomaka 6a3ee2af75 Merge pull request #646 from adambadawy/master
Fix fullscreen on X11
2015-11-11 20:38:12 +01:00
Pierre Krieger 5ca4e89dd4 Publish 0.4.2 2015-11-09 10:26:01 +01:00
mitchmindtree b02265fa11 Update to libc 0.2, remove unnecessary gl_common crate 2015-11-09 08:47:12 +01:00
mitchmindtree 228732877a Lock objc version, add casts to appease libc pointer type conflict. Closes #654 2015-11-08 21:13:25 +11:00
Pierre Krieger 2fcbdcc2fc Fix the libc breakage 2015-11-04 11:28:08 +01:00
Adam Badawy c068a770f0 Update x11-dl 2015-10-27 03:22:13 -04:00
Pierre Krieger df10bbd163 Publish 0.4.0 2015-10-03 16:58:04 +02:00
Pierre Krieger cb56b55a88 Update khronos_api to 0.0.8 2015-10-03 16:33:38 +02:00
Pierre Krieger 7a625ef3d8 Remove the window feature entirely 2015-10-03 10:33:37 +02:00
Pierre Krieger 644ecf877d Update the gl_generator dependency 2015-09-30 07:29:29 +02:00
tomaka a448043b16 Merge pull request #606 from paulrouget/NSFullSizeContentViewWindowMask
Use NSFullSizeContentViewWindowMask for decoration-less windows
2015-09-23 13:29:28 +02:00
tomaka 3820d307a3 Merge pull request #611 from vvuk/win32
fix up win32 support
2015-09-23 13:09:36 +02:00
Paul Rouget 68230faeb0 Update cocoa version 2015-09-23 10:53:35 +02:00
Vladimir Vukicevic 4af72a4109 win32: Bump user32-sys req for MapVirtualKeyA 2015-09-22 14:01:27 -04:00
tomaka 34d2c7517d Merge pull request #610 from mbrubeck/android-touch
Support multi-touch events on Android
2015-09-22 19:55:43 +02:00
Matt Brubeck 1827910927 Support multi-touch events on Android
Depends on tomaka/android-rs-glue#64.
2015-09-22 09:25:49 -07:00
Tim Neumann 9f6806ba2e make glutin compile on all iOS targets 2015-09-21 18:57:35 +02:00
tomaka fa48f4b845 Publish 0.3.6 2015-09-12 14:40:16 +02:00
Anthony Ramine b096143f73 Bump gl_generator to 0.0.27 2015-09-12 01:02:38 +02:00
tomaka ded23549eb Merge pull request #585 from frewsxcv/https
Use HTTPS for doc hyperlink
2015-08-30 18:54:01 +02:00
Michael Neumann b707959c2c Make it work on DragonFly/FreeBSD
Tested on DragonFly BSD. Should work similarily on FreeBSD.
2015-08-30 13:52:09 +02:00
Corey Farwell bcce133fae Use HTTPS for doc hyperlink 2015-08-27 22:28:16 -04:00
Peter Atashian 9d387b4f98 Cleanup unused import stuff
Also support i686-pc-windows-msvc

Signed-off-by: Peter Atashian <retep998@gmail.com>
2015-08-21 11:49:10 -04:00
Pierre Krieger 42949fb34b Publish 0.3.5 2015-08-21 07:59:49 +02:00
Victor Berger 1cea6a65a4 Update wayland backend to draw decorations.
Integrate with wayland-window crate to draw decorations
allowing resize & move of the window.

Leaving the wayland backend as disabled until full usability
is ensured.
2015-08-16 14:12:21 +02:00
Pierre Krieger 15dfbd1ef6 Publish 0.3.4 2015-07-25 16:15:00 +02:00
Akos Kiss 07c8154cb7 Add aarch64-unknown-linux-gnu support
* Adding dependencies
* Replacing `i8` with `c_char` ot `_` (since `c_char` can be
  unsigned on some platforms, aarch64 is one of them)
2015-07-23 06:19:54 +00:00
tomaka eb8611f272 Publish 0.3.3 2015-07-22 15:52:43 +02:00
Pierre Krieger ca1eb8dc53 Publish 0.3.2 2015-07-19 21:41:48 +02:00
tomaka 7d1d035d9a Merge pull request #510 from robertknight/x11_xinput2
Use XInput2 for event handling
2015-07-18 19:03:13 +02:00
Pierre Krieger f8b6f0f1fc Fix the winapi build and publish 0.3.1 2015-07-14 11:55:55 +02:00
Pierre Krieger 59a18acde2 Publish 0.3.0 2015-07-12 13:55:57 +02:00
tomaka bb96e8a58a Merge pull request #511 from thelink2012/drop-win32
[0.3] DroppedFile event for Win32
2015-07-09 11:06:38 +02:00
Robert Knight b1223bc041 Bump x11-dl dependency to 2.x
This brings in XInput2 support.
2015-07-08 21:42:45 +01:00
Pierre Krieger db901e3d83 Test glutin with MSVC++ 2015-07-04 13:57:29 +02:00
tomaka 836e53e55a Merge pull request #477 from rozaliev/feature/ios
[WIP] ios support
2015-06-29 09:29:46 +02:00
tomaka 164d47b93c Publish 0.2.2 2015-06-27 18:21:57 +02:00
Pierre Krieger bff79c02ce Add support for the EGL_KHR_create_context_no_error extension 2015-06-25 09:35:58 +02:00
Denilson M. Amorim 826931e2c2 DroppedFile event for Win32 2015-06-23 19:05:37 -03:00
Pierre Krieger 1c6fb9daae Publish 0.2.1 2015-06-23 17:01:59 +02:00
Victor Berger 2ac78cadf6 Update wayland dependency to 0.2. 2015-06-23 11:23:10 +02:00
Ricky Taylor 4ef969c7db Add support for MSVC build. 2015-06-21 01:23:29 +01:00
tomaka e6dca4f7d1 Publish 0.2.0 2015-06-17 07:43:26 +02:00
Felix Kaaman a8fef35dbf Make legacy functions crash on osx core contexts 2015-06-16 09:00:02 +02:00
Evgeny Rozaliev 84703027d6 [add] ios support 2015-06-05 16:38:35 +03:00
Jack Moffitt dbec1bf79d Switch to the official crates.
cocoa, core-foundation, and core-graphics are now on crates.io.
2015-06-03 23:06:54 -06:00
Pierre Krieger 9117bcf3d3 Switch to dwmapi 2015-05-24 09:10:45 +02:00
Pierre Krieger 9c21899249 Fix the compilation on 32bits linux 2015-05-21 21:31:41 +02:00
tomaka a05ae6ba97 Publish 0.1.5 2015-05-21 19:38:06 +02:00
Pierre Krieger ea17038ac2 Detach wgl and win32 2015-05-21 16:47:19 +02:00
Pierre Krieger 3376332a85 Rework the X implementation to use only one X connection 2015-05-17 19:33:07 +02:00
tomaka 7fe85cbc49 Publish 0.1.4 2015-05-16 17:29:47 +02:00
Victor Berger 02bd3758ee Basic raw keyboard handling. 2015-05-14 21:46:29 +02:00
Victor Berger 40322a2c69 Implement some more functions for wayland.
- set/get_inner_size()
 - set_title
2015-05-13 08:12:09 +02:00
Victor Berger a3921ea88a Continue wayland API: WindowProxy, MonitorID,
and some other little stuff.
2015-05-09 11:12:44 +02:00
tomaka bfa7e091d0 Publish 0.1.3 2015-05-09 07:17:48 +02:00
Pierre Krieger 4086063e40 Use precise version numbers for dependencies 2015-05-08 15:34:56 +02:00
tomaka 28355a66f0 Publish 0.1.2 2015-05-08 08:00:37 +02:00
Daggerbot 68aff5ba0d Using x11_dl instead of x11. 2015-05-07 11:20:25 +00:00
Pierre Krieger 7ee416ab88 Make it work under the raspi 2015-05-07 13:49:33 +02:00
Pierre Krieger 2414f87ceb Make x11 dynamic 2015-05-07 13:14:09 +02:00
tomaka 3e29c6585b Merge pull request #410 from vberger/wayland
(WIP) Wayland backend
2015-05-07 08:57:38 +02:00
tomaka f67802021c Publish 0.1.1 2015-05-07 08:14:44 +02:00
Victor Berger 1e0dd2290e Firsts steps of a wayland backend. 2015-05-06 23:30:45 +02:00
Pierre Krieger fa74d7412b Fix previous commit 2015-05-06 16:58:57 +02:00
tomaka 587a36eb8d Publish 0.1 2015-05-06 16:56:42 +02:00
tomaka 2d97e0380f Merge pull request #429 from tomaka/remove-headless
[Breaking change] Remove the "headless" feature entirely
2015-05-06 16:56:20 +02:00
krdln 99ee1de381 Copy Linux dependencies to ARM target
Add `[target.arm-unknown-linux-gnueabihf.dependencies]` with osmesa-sys and x11. This enables glutin to compile on ARM Linux.
2015-05-05 02:01:50 +02:00
Pierre Krieger 430ae43528 Remove the "headless" feature entirely 2015-05-04 18:36:26 +02:00
tomaka e45e107d07 Publish 0.0.31 2015-05-04 17:46:34 +02:00
Pierre Krieger ace4808fac Remove the "headless" feature 2015-05-04 07:48:42 +02:00
tomaka b9aa741c26 Publish 0.0.30 2015-05-02 09:10:33 +02:00
Pierre Krieger ad21d31b6b Fix compilation of cocoa 2015-05-02 06:56:47 +02:00
Dzmitry Malyshau a42f1f5833 Implemented gl_core flag 2015-04-30 22:50:15 -04:00
Pierre Krieger 7df4de2ce7 Use the shared_library crate instead of loading symbols manually 2015-04-27 14:31:26 +02:00
tomaka aca06d16e2 Release 0.0.27 2015-04-26 11:05:23 +02:00
tomaka d8cd748e35 Publish 0.0.26 2015-04-22 19:57:33 +02:00
tomaka 2d7a800aee Merge pull request #368 from Daggerbot/wip
Using `x11-rs` and `osmesa-rs`.
2015-04-17 17:42:46 +02:00
tomaka d56e723677 Publish 0.0.25 2015-04-14 22:14:57 +02:00
Dzmitry Malyshau ac23d3114c Implemented get_pixel_format for X11 2015-04-12 13:45:41 -04:00
Daggerbot 2d20050b89 Using x11-rs and osmesa-rs. 2015-04-09 10:38:58 +00:00
tomaka 2a2c98d631 Publish 0.0.23 2015-04-08 10:17:00 +02:00
tomaka dc5b0110c9 Publish 0.0.22
For Rust 1.0.0-beta
2015-04-03 19:18:40 +02:00
tomaka 52fa3c8382 Publish 0.0.21 2015-04-03 13:10:01 +02:00
tomaka 631cedb58c Publish 0.0.20 2015-04-03 09:57:36 +02:00
Pierre Krieger 0f7bd9071e Remove all features for 1.0 beta 2015-04-03 09:42:45 +02:00
tomaka 2e1fe8283f Publish 0.0.19 2015-04-02 13:23:45 +02:00
tomaka 837ea45867 Publish 0.0.18 2015-04-01 18:18:10 +02:00
Nathaniel Theis f554eceb58 Release 0.0.17 2015-03-31 11:41:58 -07:00
tomaka c3470abc8e Release 0.0.16 2015-03-30 07:12:57 +02:00
Pierre Krieger 556e1b4caf Update for winapi 2015-03-30 05:58:13 +02:00
tomaka d7c44b95b0 Publish 0.0.15 2015-03-28 11:36:42 +01:00
Brendan Zabarauskas eeb314d3aa Merge pull request #321 from SSheldon/objc_lib
Use objc crate for Objective-C runtime functionality
2015-03-26 09:58:26 +11:00
tomaka 132753ebda Release 0.0.14 2015-03-25 21:38:12 +01:00
Steven Sheldon 4b1cfe8801 Updated to use objc lib. 2015-03-25 10:08:42 -04:00
Steven Sheldon 9e96fdb288 Cleaned up OSX dependencies. 2015-03-25 10:07:54 -04:00
tomaka 63d2cd263e Fix the description in Cargo.toml 2015-03-25 10:52:42 +01:00
tomaka fce9b40deb Release 0.0.13 2015-03-23 07:47:13 +01:00
tomaka 3ad95d5867 Release 0.0.12 2015-03-21 13:58:55 +01:00
tomaka 8eac00f007 Depend on glutin_core_foundation instead of core_foundation 2015-03-20 07:20:53 +01:00
tomaka 3117ab5b2d Publish version 0.0.10 2015-03-19 14:44:34 +01:00
Pierre Krieger 330767d0c3 Pull all dependencies from crates.io 2015-03-13 21:24:59 +01:00
Pierre Krieger 896c8b11af Switch to new I/O in build.rs 2015-03-13 10:21:27 +01:00
tomaka 277b66a708 Bump version 2015-03-08 10:39:53 +01:00
Andreas Gal 16a934fc94 bump version 2015-02-23 23:50:17 +01:00
tomaka 424dbb29ed Bump version 2015-02-21 18:11:26 +01:00
Pierre Krieger c3ab907e04 Setup deployment on crates.io 2015-02-15 14:13:26 +01:00
Pierre Krieger 28955c69d0 Update with libc change 2015-02-06 09:21:55 +01:00
Peter Atashian 33cd252f99 Upgrade to latest winapi
Signed-off-by: Peter Atashian <retep998@gmail.com>
2015-01-25 21:52:17 -05:00
Pierre Krieger b05ef16d81 Implement vsync for x11 and add vsync example 2015-01-23 09:33:22 +01:00
Pierre Krieger c2c43b80b3 Fix for changes in winapi 2015-01-18 13:48:43 +01:00
Pierre Krieger 7557dc52fc Update for rustc/cargo 2015-01-17 18:02:22 +01:00
tomaka 318f0d2d06 Merge pull request #191 from sbward/osx-1.0-alpha
OSX compatibility for Rust 1.0 alpha
2015-01-12 21:21:53 +01:00
Sam Ward 2b0a70e69b Revert arch_64 feature flag for rust-cocoa 2015-01-11 16:26:26 -08:00
Sam Ward 879f61dbbc OSX compatibility for Rust 1.0 alpha 2015-01-10 01:56:47 -08:00
Pierre Krieger 5a20f0af6b Bump version number 2015-01-10 08:55:51 +01:00
Pierre Krieger 4c5e430dd3 Update for Rustc 2015-01-03 23:15:39 +01:00
Pierre Krieger f68bf85a85 Fix dependencies erroneously removed 2014-12-31 23:10:29 +01:00
Pierre Krieger fb42768a14 Bump version number 2014-12-30 11:18:42 +01:00
Pierre Krieger 9d7cfb4a32 Use gl_common and gl_generator from crates.io 2014-12-30 10:51:45 +01:00
Pierre Krieger b9a6366f96 Update for changes in Send/Sync traits 2014-12-30 08:20:50 +01:00
Pierre Krieger 7f6f4f8d04 Update for gl_generator's changes 2014-12-24 08:12:10 +01:00
Pierre Krieger 452514a863 Add links to documentation 2014-12-17 10:57:13 +01:00
Pierre Krieger 61a4c4b75f Use "winapi" from crates.io 2014-12-17 07:29:45 +01:00
Pierre Krieger ffba8564c8 Remove the dependency to compile_msg 2014-12-04 20:44:12 +01:00
Pierre Krieger 3cf487ac70 Use the winapi crate instead of our own ffi 2014-12-02 14:58:20 +01:00
Brendan Zabarauskas 9bf954d049 Use servo/rust-cocoa 2014-11-20 15:33:01 +11:00
Pierre Krieger 1c69819084 Add readme in Cargo.toml 2014-11-14 08:54:04 +01:00
Pierre Krieger fc7cfac41c Version 0.0.2 2014-11-14 08:51:37 +01:00
Tomaka17 7268082b76 Add some metadata in Cargo.toml 2014-11-13 09:01:30 +01:00
Glenn Watson 62bbcdbf09 Add gl_common dependency to fix android build. 2014-11-11 10:42:11 +10:00
David Partouche 2d76e0666f Added fullscreen support to osx 2014-11-06 16:40:30 +01:00
David Partouche 0ce2fd00dd Switched to own repos for osx bindings 2014-11-05 11:17:58 +01:00
David Partouche 9dd592600a Retrieve the monitors and their info for osx 2014-11-04 18:03:38 +01:00
Tomaka17 2c029f3fa3 android_glue is now a platform-specific dependency 2014-10-31 07:17:48 +01:00
Tomaka17 1d9ceb9ddf Update for Cargo's platform-specific dependencies 2014-10-21 21:25:30 +02:00
Tomaka17 6d34ef7a3d Revert temporary fix for rust-core-foundation 2014-10-14 14:44:26 +02:00
Tomaka17 4a654b561e Temporary fix to outdated rust-core-foundation 2014-10-14 14:43:38 +02:00
Tomaka17 e565bfeb13 Implement headless rendering 2014-10-09 15:55:42 +02:00