alacritty/src
Victor Berger e17d38167e Update glutin & fix a few wayland issues (#815)
This PR fixes a few wayland issues of alacritty (and updates glutin on
the process because it is needed).

Mainly two changes are done:

1. Add a drawing_ready() method on Window: see
https://docs.rs/winit/0.8.2/winit/os/unix/trait.WindowExt.html#tymethod.is_ready
for explanations. Hopefully glutin will be able to handle it itself in
the future, but it currently does not.

2. resize window and OpenGL contextes.

The way wayland forces winit to draw its own decorations and how surface
size is defined by its content means that in practice:

- winit's window.set_inner_size() defines the dimensions of the
  borders
- glutins gl_window.resize() defines the dimensions of the content
  (and is a noop in other platforms)

It is for now glutin's user responsibility to keep them in sync
otherwise borders are drawn stupidly. This PR changes the resize methods
of alacritty::Window to always update both.

This fixed the borders issues for me, tested on weston.
2017-10-06 08:47:51 -07:00
..
renderer Use clippy = "*", update, and fix some warnings (#796) 2017-09-27 17:29:44 -07:00
term Use clippy = "*", update, and fix some warnings (#796) 2017-09-27 17:29:44 -07:00
ansi.rs implement ANSI CSI REP (Repeat) 2017-09-30 16:30:04 -07:00
cli.rs Use clippy = "*", update, and fix some warnings (#796) 2017-09-27 17:29:44 -07:00
config.rs Use clippy = "*", update, and fix some warnings (#796) 2017-09-27 17:29:44 -07:00
display.rs Use clippy = "*", update, and fix some warnings (#796) 2017-09-27 17:29:44 -07:00
event.rs Update glutin & fix a few wayland issues (#815) 2017-10-06 08:47:51 -07:00
event_loop.rs Update most remaining deps 2017-09-05 09:07:00 -07:00
grid.rs Use clippy = "*", update, and fix some warnings (#796) 2017-09-27 17:29:44 -07:00
index.rs Clippy fixes! 2017-01-06 20:44:51 -08:00
input.rs Use clippy = "*", update, and fix some warnings (#796) 2017-09-27 17:29:44 -07:00
lib.rs Use clippy = "*", update, and fix some warnings (#796) 2017-09-27 17:29:44 -07:00
logging.rs Use clippy = "*", update, and fix some warnings (#796) 2017-09-27 17:29:44 -07:00
macros.rs Remove debug_print! macros 2017-01-23 09:14:01 -08:00
main.rs Update glutin & fix a few wayland issues (#815) 2017-10-06 08:47:51 -07:00
meter.rs Fix typo in rustdoc (#654) 2017-07-08 10:33:17 -07:00
selection.rs Update tests for new Selection API 2017-06-19 21:31:50 -07:00
sync.rs Fix some compiler warnings 2016-09-23 10:12:11 -07:00
tty.rs Use clippy = "*", update, and fix some warnings (#796) 2017-09-27 17:29:44 -07:00
util.rs Add better printing for ref test failure 2017-04-03 20:44:23 -07:00
window.rs Update glutin & fix a few wayland issues (#815) 2017-10-06 08:47:51 -07:00