Commit Graph

1965 Commits

Author SHA1 Message Date
Osspial
bb6ab1bb6e Fix unreachable panic after setting ControlFlow to Poll during some RedrawRequested events. 2018-11-08 22:52:13 -05:00
Osspial
5068ff4ee1 Improve clarity/fix typos in docs 2018-11-08 22:52:12 -05:00
Osspial
8ed575ff4a Update send test and errors that broke some examples/APIs 2018-11-08 22:52:11 -05:00
Osspial
bf7bfa82eb Fix resize lag when waiting in some situations 2018-11-08 22:50:23 -05:00
Osspial
70722cc4c3 When SendEvent is called during event closure, buffer events 2018-11-08 22:49:58 -05:00
Osspial
53370924b2 Improve WaitUntil timer precision 2018-11-08 22:49:57 -05:00
Osspial
a654400e73 Add CHANGELOG entry 2018-11-08 22:49:07 -05:00
Osspial
deb7d379b7 Rename MonitorId to MonitorHandle 2018-11-08 22:48:18 -05:00
Osspial
8d8d9b7cd1 Change instances of "events_loop" to "event_loop" 2018-11-08 22:46:53 -05:00
Osspial
0f34408763 Improve docs for run and run_return 2018-11-08 22:45:03 -05:00
Osspial
fba41f7a7e Small changes to examples 2018-11-08 22:45:02 -05:00
Osspial
42e8a0d2cf Improve documentation 2018-11-08 22:45:02 -05:00
Osspial
4377680a44 Re-organize into module structure 2018-11-08 22:43:04 -05:00
Osspial
f20fac99f6 Add platform::desktop module with EventLoopExt::run_return 2018-11-08 22:33:11 -05:00
Osspial
dad24d086a Rename os to platform, add Ext trait postfixes 2018-11-08 22:33:10 -05:00
Osspial
7df59c60a0 Rename platform to platform_impl 2018-11-08 22:33:09 -05:00
Osspial
99c0f84a9f Add request_redraw 2018-11-08 22:30:50 -05:00
Osspial
a0fef1a5fa Fully invert windows control flow so win32 calls into winit's callback 2018-11-08 22:30:19 -05:00
Osspial
2c607ff87f Add ability to send custom user events 2018-11-08 22:09:10 -05:00
Osspial
a0b2bb3695 Add StartCause::Init support, timer example 2018-11-08 20:59:47 -05:00
Osspial
02f922f003 Implement new ControlFlow and associated events 2018-11-08 20:59:46 -05:00
Osspial
8b8a7675ec Replace windows Mutex with parking_lot Mutex 2018-11-08 20:58:32 -05:00
Osspial
9feada206f Update run_forever to hijack thread 2018-11-08 20:18:47 -05:00
Osspial
2e83bac99c Remove second thread from win32 backend 2018-11-08 20:15:28 -05:00
Osspial
64b8a9c6a5 Rename WindowEvent::Refresh to WindowEvent::Redraw 2018-11-08 19:13:11 -05:00
Osspial
529c08555f Rename EventsLoop and associated types to EventLoop 2018-11-08 19:13:07 -05:00
Joe Moon
30aa5a5057 version 0.18.0 (#680)
* version 0.18.0

* Changelog: F16-F24 support was a breaking change

* fix version in README

* bump image dep

* Updated release date
v0.18.0
2018-11-07 00:43:15 -05:00
Barret Rennie
a46fcaee31 Support requesting user attention on macOS (#664)
* Support requesting user attention on macOS

* Documentation improvements
2018-11-06 23:50:40 -05:00
Osspial
52e2748869 Remove From<NSApplicationActivationPolicy> impl from ActivationPolicy (#690)
* Remove From<NSApplicationActivationPolicy> impl from ActivationPolicy

* Update CHANGELOG
2018-11-05 18:54:22 -05:00
Patrick Walton
d2d127a4c4 Make views explicitly layer-backed on macOS Mojave. (#685)
On Mojave, views automatically become layer-backed shortly after being added to
a window. Changing the layer-backedness of a view breaks the association
between the view and its associated OpenGL context. To work around this, on
Mojave we explicitly make the view layer-backed up front so that AppKit doesn't
do it itself and break the association with its context.

This was breaking the `window` example in `glutin`.
2018-11-05 14:34:54 -05:00
Francesca Plebani
0fca8e8cb5 X11: Fix DND freezing the WM (#688)
Fixes #687

`XdndFinished` isn't supposed to be sent when rejecting a `XdndPosition`; it should only be
sent in response to `XdndDrop`.

https://freedesktop.org/wiki/Specifications/XDND/
2018-11-02 17:41:51 -04:00
Osspial
6bec912961 Add optional Serde implementations and missing derivable traits (#652)
* Add optional serde feature

* Document features in README

* Add changelog entry

* Implement some missing derivable traits

* Add changelog entry for std derives

* Remove extraneous space on serde doc comments

* Add period to end of serde line in readme

* Remove serde impls from WindowAttributes

* Add serde impls for TouchPhase

* Add serde test file

* Add feature lines to testing CIs

* Remove WindowAttributes from changelog
2018-11-01 04:24:56 -04:00
Artúr Kovács
214e157e5d Implement HoveredFile and HoveredFileCancelled on Windows (#662)
* Implement HoveredFile and HoveredFileCancelled on Windows (#448)

* Update CHANGELOG.

* Applied code organizational corrections and fixed IDropHandler leak on window destroy.

* Moved FileDropHandle to a separate file.
2018-10-24 14:40:12 -04:00
Lucas Kent
da1d479e55 update to image 0.20 (#683) 2018-10-23 20:29:11 -04:00
Eleanore Young
062bb0cef2 On linux without X11 or Wayland, reduced the panic message to a single line (#681) 2018-10-21 18:12:51 -04:00
Victor Berger
c744b016ce x11: compute resize logical size with new dpi (#668)
* x11: compute resize logical size with new dpi

Whenever a dpi change occurs, trigger a Resized event as well with the
new logical size. Given X11 primarily deals in physical pixels, a change
in DPI also changes the logical size (as the physical size remains
fixed).

* Doc tweaks
2018-10-19 16:32:57 -04:00
George Burton
f486845f7f Implement Debug trait on exported opaque types (#677)
* Implement `Debug` trait on exported opaque types

* Make formatting consistent
2018-10-17 23:20:12 -04:00
trimental
7baa96c5c7 Provide current modifiers state with pointer events on wayland (#676) 2018-10-17 22:34:02 -04:00
Joe Moon
ea07ec1fda macOS: fix modifiers during key repeat (#666)
* macOS: fix modifiers during key repeat

* fix compile warnings
2018-10-17 22:03:26 -04:00
Alex Taylor
26b70e457b Windows: Fix transparency (#675)
* Windows: Fix transparency (#260)

* Windows: Only enable WS_EX_LAYERED for transparent windows

* Update winapi to 0.3.6

* Windows: Amend transparency code

* Add transparency fix to CHANGELOG.md
2018-10-17 20:23:59 -04:00
Rob Horswell
5d5fcb3911 Windows: Fix window.set_maximized() (#672)
* Windows: Fix window.set_maximized()

* Add window.set_maximized fix to CHANGELOG.

* Windows: use same style for set_maximized as other set_x(bool) methods
2018-10-14 19:47:08 -04:00
trimental
50008dff3d Upgrade to smithay-client-toolkit 0.4 (#671)
* Upgrade to smithay-client-toolkit 0.4

* Fix PR points
2018-10-14 19:15:43 -04:00
Francesca Plebani
808638fee3 Windows: Fix set_cursor delay (#660) 2018-09-22 21:03:38 -04:00
Tobias Umbach
b0e3865562 Don't include NUL byte in _NET_WM_NAME (#658)
> The contents of the property are not required to be null-terminated;
> any terminating null should not be included in text_prop.nitems.

https://tronche.com/gui/x/xlib/ICC/client-to-window-manager/XmbTextPropertyToTextList.html
2018-09-20 17:59:37 -04:00
Tobias Umbach
bc03ffb317 Add X11-specific with_gtk_theme_variant option (#659) 2018-09-20 17:00:04 -04:00
trimental
1edbca1775 Wayland: use init_from_env() to create windows and allow server-sid… (#655)
* Wayland: use `init_from_env()` to create windows and allow server-side decorations

* Change the CHANGELOG.md entrys wording
2018-09-20 13:48:36 -04:00
Kirill Chibisov
5a0bc016e7 Add support for F16-F24 (#641)
* Added support for F16-F19 keys.

* Documented support for F16-F19 keys

* Added support for F20 key

* Added support for F21-F24 on platforms except macOs

* Added support for F21-F24 on macOs

* Documented addition of F16-F24 keys

* Added missing ref qualifier

* Fixed compilation error on 1.24.1

* Refactored methods in macOs events_loop and view files
2018-09-12 13:04:16 -04:00
Sven-Hendrik Haase
bb66b7f28e Update wm spec hints (#646)
* Update wm-spec hints to v1.5

* Update changelog

* Fix CHANGELOG entry

* Remove trailing quote
2018-09-11 15:03:42 -04:00
Sven-Hendrik Haase
0331491b2b Put badges next to each other instead of below eachother (#649) 2018-09-11 14:59:04 -04:00
Kornel
54a782c8ae Syntax fix in Cargo.toml (#644) 2018-09-11 00:23:48 -04:00