aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/x11
Commit message (Collapse)AuthorAgeFilesLines
* Add phases to wheel events.Patrick Walton2016-03-031-2/+3
| | | | Needed for apps to support overscroll on the Mac.
* Fix this_platform_is_not_supported on OpenBSD.Kirill Zdornyy2016-03-011-1/+1
| | | | I followed the steps of @mneumann.
* Merge pull request #709 from gdamjan/support-utf8-window-titletomaka2016-02-031-7/+20
|\ | | | | support utf8 window titles via _NET_WM_NAME standard
| * call set_title() in new()Damjan Georgievski2016-01-171-4/+2
| | | | | | | | …instead of low-level X11 calls that don't work with utf8
| * support utf8 window titles via _NET_WM_NAME standardDamjan Georgievski2016-01-171-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 Howell2016-01-191-30/+27
|/ | | | Part of servo/servo#8641
* x11: Poll the window until it is really visibleEmilio Cobos Álvarez2016-01-161-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-leaktomaka2016-01-071-2/+6
|\ | | | | x11: Prevent leak on XIQueryDevice
| * x11: Prevent leak on XIQueryDeviceEmilio Cobos Álvarez2016-01-061-2/+6
| | | | | | | | | | | | | | Per http://linux.die.net/man/3/xiquerydevice: > XIFreeDeviceInfo frees the information returned by > XIQueryDevice.
* | Fix wrong screen ID used on GLXPierre Krieger2016-01-051-1/+1
|/
* Add better X error handlingPierre Krieger2015-12-304-5/+83
|
* Only call XSetInputFocus if the window is visiblePierre Krieger2015-12-241-12/+14
|
* Call XSync before XSetInputFocusPierre Krieger2015-12-241-0/+4
|
* x11: Improve xlib error reportingEmilio Cobos Álvarez2015-12-151-10/+4
|
* Merge pull request #659 from Aceeri/minmaxwindowtomaka2015-12-051-0/+4
|\ | | | | Minimum/maximum dimensions for windows in win32 API
| * Fixed wrong variable binding for WindowAttributes on assertsAceeri2015-11-091-2/+2
| |
| * Not implemented asserts to prevent silent failsAceeri2015-11-091-0/+4
| |
* | Fix compilation for 32 bit targetsOlaf Buddenhagen2015-11-301-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/mastertomaka2015-11-111-18/+73
|\ \ | |/ |/| Fix fullscreen on X11
| * Update x11-dlAdam Badawy2015-10-271-5/+1
| |
| * Fix using garbage memoryAdam Badawy2015-10-271-3/+3
| |
| * Remove deprecated commentAdam Badawy2015-10-271-3/+0
| |
| * Use mode when switching to fullscreenAdam Badawy2015-10-271-10/+16
| |
| * Allow any mode larger than requested dimensionsAdam Badawy2015-10-271-1/+1
| | | | | | | | | | We were previously allowing only fullscreen modes which were exactly as tall as the requested dimensions, perhaps erroneously.
| * Comment fullscreen XClientMessage codeAdam Badawy2015-10-261-6/+9
| |
| * Fix misbehaving fullscreen windowAdam Badawy2015-10-261-8/+51
| |
| * Fix issue #509Adam Badawy2015-10-251-0/+10
| | | | | | | | Focusing the newly created window seems to grab the keyboard.
| * Fix issue #582Adam Badawy2015-10-251-2/+2
| | | | | | | | | | I switched `vsyncstart` and `vdisplay` again, as per the discussion on issue #582.
* | 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.