aboutsummaryrefslogtreecommitdiffstats
path: root/src/api
Commit message (Collapse)AuthorAgeFilesLines
* Improve X11 cursor symbols handlingest312016-04-171-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.
* glx: Always set CONFIG_CAVEAT to DONT_CAREBoris-Chengbiao Zhou2016-04-131-15/+2
|
* Fix pixel format support detection in glx. #748Pierre Chevalier2016-04-131-1/+5
| | | | | * by accepting GLX_EXT_framebuffer_sRGB as a sRGB capable framebuffer * the new behaviour matches the wgl codel
* Merge pull request #755 from BonsaiDen/glx_multisampling_conformancetomaka2016-04-061-9/+16
|\ | | | | glx: Support non-conformant multisampling fbconfigs.
| * glx: Support non-conformant multisampling fbconfigs.Ivo Wetzel2016-03-301-9/+16
| |
* | Merge branch 'master' of github.com:tomaka/glutin into ↵Ivo Wetzel2016-03-304-6/+6
|\ \ | | | | | | | | | x11_window_size_constraints
| * | Changed MouseMoved((i32, i32)) to MouseMoved(i32, i32), breaking changeRichard Lettich2016-03-274-6/+6
| |/
* | Correctly apply initial size constraints for x11 windows.Ivo Wetzel2016-03-251-2/+18
| |
* | Merge branch 'master' into x11_window_size_constraintsIvo Wetzel2016-03-254-63/+101
|\|
| * Merge pull request #744 from adamncasey/patch-1tomaka2016-03-241-34/+28
| |\ | | | | | | Enable more Windows keys
| | * Enable more Windows keysAdam Casey2016-03-191-34/+28
| | | | | | | | | | | | | | | | | | This should enable most required keys on Windows. Mappings taken from: https://msdn.microsoft.com/en-gb/library/windows/desktop/dd375731%28v=vs.85%29.aspx and applied with some guesswork to the Glutin names.
| * | Merge pull request #746 from Thinkofname/hide-cursor-state-x11tomaka2016-03-241-14/+41
| |\ \ | | | | | | | | Implement CursorState::Hide for x11
| | * | Implement CursorState::Hide for x11Thinkofname2016-03-211-14/+41
| | | |
| * | | Remove a debug print added in 1de66e4efThinkofname2016-03-211-1/+0
| |/ /
| * / Update objc to 0.2.Steven Sheldon2016-03-201-9/+10
| |/
| * Uncomment more keys on win32UK9922016-03-181-6/+6
| |
| * Add support for navigation keysManish Goregaokar2016-03-172-4/+7
| |
| * Merge pull request #733 from fkaa/cocoa-memleakPaul Rouget2016-03-171-1/+13
| |\ | | | | | | Fix memory leak while creating NSEvent and swapping buffers (Fixes #514)
| | * Fix memory leak while creating NSEvent and swapping buffers (Fixes #514)Felix Kaaman2016-03-021-1/+13
| | |
| * | Make Mac borderless windows resizable and draggable.Patrick Walton2016-03-141-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Despite the fact that the style mask contains `NSTitledWindowMask`, the title doesn't show up for two reasons: (a) we draw over it; (b) we make it invisible with a call to `-[NSWindow setTitleVisibility:]`. Addresses servo/servo#9856 and servo/servo#9878. Partially addresses servo/servo#9812.
* | | Implement `min/max_dimensions` for x11 windows.Ivo Wetzel2016-03-061-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 Walton2016-03-034-9/+18
|/ | | | Needed for apps to support overscroll on the Mac.
* Fix this_platform_is_not_supported on OpenBSD.Kirill Zdornyy2016-03-018-8/+8
| | | | I followed the steps of @mneumann.
* cocoa: Post Awakened events at the end of the queue to avoid floods.Patrick Walton2016-02-291-1/+1
| | | | Closes servo/webrender#179.
* TouchpadPressure eventPaul Rouget2016-02-261-4/+7
|
* Unlocks platform-specific attributesPierre Krieger2016-02-104-7/+28
|
* Update the emscripten port of glutinPierre Krieger2016-02-093-10/+33
|
* allow non ascii character in ReceivedCharacterPaul Rouget2016-02-081-3/+1
|
* 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
* | osx: scroll delta should take hidpi factor into accountPaul Rouget2016-02-021-2/+5
| |
* | Use double buffering by default on GLXMatt Brubeck2016-01-281-4/+3
| |
* | Allow it to work under Xvfb.Michael Howell2016-01-191-30/+27
| | | | | | | | Part of servo/servo#8641
* | Merge pull request #703 from FredrikNoren/mastertomaka2016-01-183-129/+106
|\ \ | |/ |/| Fix cocoa headless. Fixes #635
| * Construct cocoa headless context based on argsFredrik Noren2016-01-183-98/+105
| |
| * Fix cocoa headlessFredrik Noren2016-01-081-39/+9
| |
* | Adding os::macos.Johan Sköld2016-01-171-1/+1
| | | | | | | | Also implements platform_window() for cocoa.
* | 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.
* | Prefer double buffer on wgl if unspecifiedDavid Hewson2016-01-141-5/+5
|/ | | | According to https://msdn.microsoft.com/en-us/library/windows/desktop/dd318284(v=vs.85).aspx if double buffer is unavailable then a single buffer will be returned
* 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-052-7/+8
|/
* Fix EGL for wayland.Victor Berger2016-01-031-6/+6
|
* Add better X error handlingPierre Krieger2015-12-304-5/+83
|
* Merge pull request #687 from Aceeri/mastertomaka2015-12-301-0/+18
|\ | | | | Support for side buttons on mouse
| * Support for side buttons on mouseAceeri2015-12-291-0/+18
| |
* | Add a useless call to `glXQueryVersion()` before doing anything in the GLX ↵Patrick Walton2015-12-291-0/+12
|/ | | | port to work around a bug in the VirtualBox OpenGL driver.
* Merge pull request #684 from AnthIste/0.4.4-cocoa-apitomaka2015-12-291-4/+13
|\ | | | | Implement set_cursor_position on OSX with Cocoa
| * Reduce cursor warp delay with CGAssociateMouseAndMouseCursorPositionRuben Bakker2015-12-291-4/+6
| |