aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/x11
Commit message (Collapse)AuthorAgeFilesLines
* Remove public exports of gl_common and libcPierre Krieger2015-11-091-1/+1
|
* Change some uses of c_void to avoid libc version conflicts.Daggerbot2015-11-041-3/+3
|
* Change X11 events based on `multitouch` optionMatt Brubeck2015-10-232-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 entirelyPierre Krieger2015-10-031-1/+1
|
* Add an `os` module containing platform-specific traitsPierre Krieger2015-10-031-0/+10
|
* Rename MonitorID -> MonitorIdPierre Krieger2015-09-243-11/+11
|
* Add #[inline] attributesPierre Krieger2015-09-233-1/+23
|
* Switch X11 and wayland to the new designPierre Krieger2015-09-211-18/+23
|
* Convert GLX to the new designPierre Krieger2015-09-211-4/+5
|
* Switch EGL to use only pf_reqs and openglPierre Krieger2015-09-211-2/+3
|
* Extract WindowAttributes from the BuilderAttribsPierre Krieger2015-09-211-9/+9
|
* Extract GlAttributes from BuilderAttribsPierre Krieger2015-09-211-1/+1
|
* Report the error from x11-rs when failing to open shared librariesPierre Krieger2015-09-202-8/+31
|
* Err when a X connection cannot be created instead of panickingPierre Krieger2015-09-202-5/+19
|
* Merge pull request #580 from mbrubeck/scroll-linestomaka2015-09-011-10/+11
|\ | | | | Fix smooth-scrolling increment on some X11 devices
| * Read scroll axis info from all devicesMatt Brubeck2015-08-271-3/+2
| | | | | | | | | | When multiple scrolling devices are attached, XIAllMasterDevices does not include the scroll axes for all hardware devices.
| * Take XIScrollClassInfo::increment into accountMatt Brubeck2015-08-241-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From the "Smooth Scrolling" section of [XI2Proto.txt][1]: > One unit of scrolling in either direction is considered to be equivalent to > one button event, e.g. for a unit size of 1.0, -2.0 on an valuator type > Vertical sends two button press/release events for button 4. Likewise, a > button press event for button 7 generates an event on the Horizontal > valuator with a value of +1.0. The server may accumulate deltas of less than > one unit of scrolling. From [What's new in XI 2.1 - smooth scrolling][2]: > The increment defines what delta the driver considers to be one scroll > event. For an increment of +5, each delta of 5 should be regarded as one > scroll unit down. For an increment of -3, each delta of 3 should be regarded > as one scroll unit up (i.e. inverted). [1]: http://www.x.org/releases/X11R7.7/doc/inputproto/XI2proto.txt [2]: http://who-t.blogspot.com/2011/09/whats-new-in-xi-21-smooth-scrolling.html This fixes scrolling with my Microsoft mouse in X11 on Debian 8.1.
* | Make it work on DragonFly/FreeBSDMichael Neumann2015-08-301-1/+1
| | | | | | | | Tested on DragonFly BSD. Should work similarily on FreeBSD.
* | Correct event typeMariusz Ceier2015-08-281-1/+1
|/ | | | | KeymapNotify should not be handled by calling XRefreshKeyboardMapping. XRefreshKeyboardMapping expects XMappingEvent.
* Handle touch events on X11Matt Brubeck2015-08-181-2/+20
|
* Enable grave key on X11Colin Sherratt2015-08-171-1/+1
|
* Prefer GLX over EGLZetok Zalbavar2015-08-141-3/+5
| | | | | | | | fixes #314 for me. I've "tested" change by running examples (which prior to change simply crashed), but since I did not run those examples successfuly ever before, I don't know whether they worked as intended.
* Fix a rare crash in some X11 implementations (details below).Glenn Watson2015-08-111-15/+38
|
* Correctly handle eglGetDisplayPierre Krieger2015-08-071-2/+3
|
* Merge pull request #553 from tomaka/egl-defaulttomaka2015-08-021-3/+3
|\ | | | | Use EGL by default with X11
| * Use EGL by default with X11Pierre Krieger2015-07-281-3/+3
| |
* | Try libEGL.so.1 before libEGL.soPierre Krieger2015-07-281-1/+4
|/
* Implement Window.set_inner_size on X11.Daggerbot2015-07-231-3/+3
|
* Add aarch64-unknown-linux-gnu supportAkos Kiss2015-07-231-2/+2
| | | | | | * Adding dependencies * Replacing `i8` with `c_char` ot `_` (since `c_char` can be unsigned on some platforms, aarch64 is one of them)
* Only listen for mouse events from master devicesRobert Knight2015-07-221-1/+1
| | | | | | | | | | | | | | XInput2 has a concept of master and slave devices, where a slave device is the actual physical device, attached to a master device representing the cursor or keyboard focus. See http://who-t.blogspot.co.uk/2009/05/xi2-recipes-part-1.html Mouse events were being received from both the master and slave devices, but we are only interested in events from the master device. Fixes #533
* Correct window creation on X11Pierre Krieger2015-07-192-114/+60
|
* Merge pull request #523 from tomaka/egl-splittomaka2015-07-191-2/+2
|\ | | | | Split creating an EGL context in two parts
| * Split creating an EGL context in two partsPierre Krieger2015-07-181-2/+2
| |
* | Address code review feedbackRobert Knight2015-07-131-31/+24
| | | | | | | | | | | | | | | | * Fix an issue where PollEventsIterator::next() would fail to return keyboard input and mouse events immediately but instead only return them on the next call to next() * Inline process_generic_event() and queue_event()
* | Report focus in/out events under X11Robert Knight2015-06-281-2/+6
| | | | | | | | Fixes #377
* | X11 - Ignore scroll events that happen outside of Glutin windowsRobert Knight2015-06-282-4/+15
| | | | | | | | | | | | | | | | | | | | | | Scroll deltas are calculated in X11 by comparing the current and previous absolute values for the scroll axis when a scroll motion event is received. If the user scrolls whilst the cursor is outside of the window then an incorrect delta is reported when the cursor re-enters the window. Fix this by resetting the last-seen axis values whenever the cursor re-enters the window.
* | Remove XInput2 code for handling keyboard eventsRobert Knight2015-06-282-58/+35
| | | | | | | | | | | | | | * For the moment we're still using plain core X11 events for handling keyboard activity, so remove the XInput2 code for that * Small refactoring of X11 input handling and documentation fixes
* | Use XInput2 for event handlingRobert Knight2015-06-285-86/+416
|/ | | | | This provides smooth scrolling for touchpad devices and will enable support for touch events etc. in future.
* Fix fullscreen mode on X11Pierre Krieger2015-06-261-15/+31
|
* Merge pull request #488 from tomaka/rem-is-closedtomaka2015-06-171-6/+2
|\ | | | | Remove the is_closed function
| * Remove the is_closed functionPierre Krieger2015-06-161-6/+2
| |
* | Handle errors from MakeCurrent and SwapBuffersPierre Krieger2015-06-161-4/+5
|/
* Merge pull request #484 from pinumbernumber/mastertomaka2015-06-161-1/+25
|\ | | | | Implement transparency for X11
| * Implement transparency for X11pinumbernumber2015-06-141-1/+25
| |
* | Express scroll deltas as either line or pixel deltasRobert Knight2015-06-131-2/+5
|/ | | | | | | | | | | | Depending on the platform and device, scroll deltas may either be represented as pixel deltas specifying the amount in pixels to scroll or they may be expressed in 'lines' or 'chunks' for low resolution devices (eg. a traditional mouse wheel). Pixel deltas are currently available on OS X. X11 currently supports only integer line deltas, though pixel deltas are available via XInput2. Windows supports fractional line deltas.
* Fix leaking color map and destruction of IMPierre Krieger2015-06-051-1/+6
|
* Fix set_cursor_state on X11Eduard Bopp2015-05-251-4/+9
| | | | | When the state is not changed, no code must be executed. Such no-ops previously hit the unimplemented cursor hiding.
* Fix the compilation on 32bits linuxPierre Krieger2015-05-211-1/+1
|
* Allow creating EGL contexts on win32 with the AMD DLLsPierre Krieger2015-05-211-2/+2
|
* fixup! Fix handling of numpad keys w.r.t. numlock (derived from fix ↵Avi Weinstock2015-05-181-1/+1
| | | | mentioned at http://www.kaffe.org/pipermail/kaffe/2000-April/175201.html).