Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | x11: initial implementation of from_existing_window | bnewbold | 2016-06-12 | 1 | -0/+232 |
| | | | | | | | | | | | This adds the ability to create a glutin Window that wraps a pre-existing X Window. The proximal motivation for this is to allow writing of XScreensaver hacks in Rust, but it might also be useful for embedding 3D graphics in larger applications with full process separation, etc. This commit includes a bit of inline documentation, but no tests, and the details of what if any WindowAttributes or pixel information should be applied to the existing window aren't worked out. | ||||
* | x11: Refactor NoneCursor logic so it applies to CursorState::Hide too | Emilio Cobos Álvarez | 2016-04-17 | 1 | -32/+34 |
| | |||||
* | x11: Add cursor hiding | Emilio Cobos Álvarez | 2016-04-17 | 1 | -2/+30 |
| | | | | | The created cursor could be cached and whatnot, but I'm not sure it deserves the complexity. | ||||
* | Improve X11 cursor symbols handling | est31 | 2016-04-17 | 1 | -40/+66 |
| | | | | | | | | | | | | | | | 1. Make it non failing. Before we tried to call XFreeCursor with a cursor of 0 if we couldn't find a cursor. This has then caused a panic. 2. Introduce a system where multiple special cursors are tried in order to work with different themes and desktop environments. This way we get less often into the situation where we have to use a default cursor. 3. Also set names for some cursors that previously only had a placeholder. Fixes #765. Will fix https://github.com/servo/servo/issues/10475 as well. | ||||
* | Merge branch 'master' of github.com:tomaka/glutin into ↵ | Ivo Wetzel | 2016-03-30 | 1 | -1/+1 |
|\ | | | | | | | x11_window_size_constraints | ||||
| * | Changed MouseMoved((i32, i32)) to MouseMoved(i32, i32), breaking change | Richard Lettich | 2016-03-27 | 1 | -1/+1 |
| | | |||||
* | | Correctly apply initial size constraints for x11 windows. | Ivo Wetzel | 2016-03-25 | 1 | -2/+18 |
| | | |||||
* | | Merge branch 'master' into x11_window_size_constraints | Ivo Wetzel | 2016-03-25 | 2 | -13/+42 |
|\| | |||||
| * | Merge pull request #746 from Thinkofname/hide-cursor-state-x11 | tomaka | 2016-03-24 | 1 | -14/+41 |
| |\ | | | | | | | Implement CursorState::Hide for x11 | ||||
| | * | Implement CursorState::Hide for x11 | Thinkofname | 2016-03-21 | 1 | -14/+41 |
| | | | |||||
| * | | Remove a debug print added in 1de66e4ef | Thinkofname | 2016-03-21 | 1 | -1/+0 |
| |/ | |||||
| * | Add support for navigation keys | Manish Goregaokar | 2016-03-17 | 1 | -0/+3 |
| | | |||||
* | | Implement `min/max_dimensions` for x11 windows. | Ivo Wetzel | 2016-03-06 | 1 | -6/+28 |
|/ | | | | | | | | | | Size hints are only being set for non-fullscreen windows, if `max_dimensions` are set they'll override the normal `dimensions` since X11 will not automatically resize the window after setting the size hints. `PSize` hint is currently set along with the `min/max` hints for good measure. | ||||
* | Add phases to wheel events. | Patrick Walton | 2016-03-03 | 1 | -2/+3 |
| | | | | Needed for apps to support overscroll on the Mac. | ||||
* | Fix this_platform_is_not_supported on OpenBSD. | Kirill Zdornyy | 2016-03-01 | 1 | -1/+1 |
| | | | | I followed the steps of @mneumann. | ||||
* | Merge pull request #709 from gdamjan/support-utf8-window-title | tomaka | 2016-02-03 | 1 | -7/+20 |
|\ | | | | | support utf8 window titles via _NET_WM_NAME standard | ||||
| * | call set_title() in new() | Damjan Georgievski | 2016-01-17 | 1 | -4/+2 |
| | | | | | | | | …instead of low-level X11 calls that don't work with utf8 | ||||
| * | support utf8 window titles via _NET_WM_NAME standard | Damjan Georgievski | 2016-01-17 | 1 | -3/+18 |
| | | | | | | | | | | | | | | based on this freerdp patch https://github.com/FreeRDP/FreeRDP/commit/9767f7f042a58aae876e0ad3b2e7bde356c8fda9 thanks to emiliocobos on irc | ||||
* | | Allow it to work under Xvfb. | Michael Howell | 2016-01-19 | 1 | -30/+27 |
|/ | | | | Part of servo/servo#8641 | ||||
* | x11: Poll the window until it is really visible | Emilio Cobos Álvarez | 2016-01-16 | 1 | -9/+22 |
| | | | | | | | | | | | | Fixes #697 It seems that `XSync` doesn't really makes the window viewable. This feels hacky, other option to do it could be using `XIfEvent` or similar to listen to `MapNotify` events, but we'll have a loop still. In practice, this lasts between two and thre iterations on my machine, which is something not noticeable. | ||||
* | Merge pull request #700 from ecoal95/querydevice-leak | tomaka | 2016-01-07 | 1 | -2/+6 |
|\ | | | | | x11: Prevent leak on XIQueryDevice | ||||
| * | x11: Prevent leak on XIQueryDevice | Emilio Cobos Álvarez | 2016-01-06 | 1 | -2/+6 |
| | | | | | | | | | | | | | | Per http://linux.die.net/man/3/xiquerydevice: > XIFreeDeviceInfo frees the information returned by > XIQueryDevice. | ||||
* | | Fix wrong screen ID used on GLX | Pierre Krieger | 2016-01-05 | 1 | -1/+1 |
|/ | |||||
* | Add better X error handling | Pierre Krieger | 2015-12-30 | 4 | -5/+83 |
| | |||||
* | Only call XSetInputFocus if the window is visible | Pierre Krieger | 2015-12-24 | 1 | -12/+14 |
| | |||||
* | Call XSync before XSetInputFocus | Pierre Krieger | 2015-12-24 | 1 | -0/+4 |
| | |||||
* | x11: Improve xlib error reporting | Emilio Cobos Álvarez | 2015-12-15 | 1 | -10/+4 |
| | |||||
* | Merge pull request #659 from Aceeri/minmaxwindow | tomaka | 2015-12-05 | 1 | -0/+4 |
|\ | | | | | Minimum/maximum dimensions for windows in win32 API | ||||
| * | Fixed wrong variable binding for WindowAttributes on asserts | Aceeri | 2015-11-09 | 1 | -2/+2 |
| | | |||||
| * | Not implemented asserts to prevent silent fails | Aceeri | 2015-11-09 | 1 | -0/+4 |
| | | |||||
* | | Fix compilation for 32 bit targets | Olaf Buddenhagen | 2015-11-30 | 1 | -1/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Regression introduced in 47df0e9eaa7f1231a07f86fc44426936c7a2589a Casting fullscreen_atom (which is the result from XInternAtom, i.e. c_ulong) as i64 is obviously wrong -- the whole point of types such as c_ulong is that long in C does *not* always have the same bit size... Cast it as c_long instead. While this is the most straightforward fix, I'm not sure it's the best one: perhaps the x11 crate should offer a set_ulong() method along with set_long(), which could be used here instead of the cast? | ||||
* | | Merge pull request #646 from adambadawy/master | tomaka | 2015-11-11 | 1 | -18/+73 |
|\ \ | |/ |/| | Fix fullscreen on X11 | ||||
| * | Update x11-dl | Adam Badawy | 2015-10-27 | 1 | -5/+1 |
| | | |||||
| * | Fix using garbage memory | Adam Badawy | 2015-10-27 | 1 | -3/+3 |
| | | |||||
| * | Remove deprecated comment | Adam Badawy | 2015-10-27 | 1 | -3/+0 |
| | | |||||
| * | Use mode when switching to fullscreen | Adam Badawy | 2015-10-27 | 1 | -10/+16 |
| | | |||||
| * | Allow any mode larger than requested dimensions | Adam Badawy | 2015-10-27 | 1 | -1/+1 |
| | | | | | | | | | | We were previously allowing only fullscreen modes which were exactly as tall as the requested dimensions, perhaps erroneously. | ||||
| * | Comment fullscreen XClientMessage code | Adam Badawy | 2015-10-26 | 1 | -6/+9 |
| | | |||||
| * | Fix misbehaving fullscreen window | Adam Badawy | 2015-10-26 | 1 | -8/+51 |
| | | |||||
| * | Fix issue #509 | Adam Badawy | 2015-10-25 | 1 | -0/+10 |
| | | | | | | | | Focusing the newly created window seems to grab the keyboard. | ||||
| * | Fix issue #582 | Adam Badawy | 2015-10-25 | 1 | -2/+2 |
| | | | | | | | | | | I switched `vsyncstart` and `vdisplay` again, as per the discussion on issue #582. | ||||
* | | Remove public exports of gl_common and libc | Pierre Krieger | 2015-11-09 | 1 | -1/+1 |
| | | |||||
* | | Change some uses of c_void to avoid libc version conflicts. | Daggerbot | 2015-11-04 | 1 | -3/+3 |
|/ | |||||
* | Change X11 events based on `multitouch` option | Matt Brubeck | 2015-10-23 | 2 | -4/+20 |
| | | | | | * If `multitouch` is enabled, touch input generates touch events. * If `multitouch` is disabled, touch input generates emulated mouse events. | ||||
* | Remove the window feature entirely | Pierre Krieger | 2015-10-03 | 1 | -1/+1 |
| | |||||
* | Add an `os` module containing platform-specific traits | Pierre Krieger | 2015-10-03 | 1 | -0/+10 |
| | |||||
* | Rename MonitorID -> MonitorId | Pierre Krieger | 2015-09-24 | 3 | -11/+11 |
| | |||||
* | Add #[inline] attributes | Pierre Krieger | 2015-09-23 | 3 | -1/+23 |
| | |||||
* | Switch X11 and wayland to the new design | Pierre Krieger | 2015-09-21 | 1 | -18/+23 |
| | |||||
* | Convert GLX to the new design | Pierre Krieger | 2015-09-21 | 1 | -4/+5 |
| |