summaryrefslogtreecommitdiff
path: root/fullscreen-shell
Commit message (Collapse)AuthorAgeFilesLines
* fullscreen-shell: Use 'surface-local' to correct grammarYong Bakos2016-04-291-1/+1
| | | | | | | | | Correct the pluralization by simplifying with 'surface-local'. See https://lists.freedesktop.org/archives/wayland-devel/2016-April/028249.html. Signed-off-by: Yong Bakos <ybakos@humanoriented.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* Use fullscreen-shell.xml from wayland-protocolsJonas Ådahl2015-11-191-27/+28
| | | | | | | | | | Use the fullscreen-shell protocol XML from the wayland-protocols installation, and remove the one we provide ourself. Signed-off-by: Jonas Ådahl <jadahl@gmail.com> Reviewed-by: Mariusz Ceier <mceier+wayland@gmail.com> Acked-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* fullscreen-shell: Fix modeset on transformed outputsJason Ekstrand2015-08-071-2/+21
| | | | | | | | | | Previously, we blindly created a mode for the output based on surface size and completely ignoring the output transform. This caused modesets to fail on outputs that were transformed by 90 or 270 degrees. We should be swapping the width and the height in this case. Reviewed-by: Derek Foreman <derekf@osg.samsung.com> Tested-by: Derek Foreman <derekf@osg.samsung.com>
* Use [x]zalloc instead of [x]malloc + memsetRyo Munakata2015-08-071-6/+3
| | | | | Signed-off-by: Ryo Munakata <ryomnktml@gmail.com> Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
* input: Don't test keyboard/pointer/touch pointersDerek Foreman2015-07-311-5/+13
| | | | | | | | | | | | | | Keyboards and pointers aren't freed when devices are removed, so we should really be testing keyboard_device_count and pointer_device_count in most cases, not the actual pointers. Otherwise we end up with different behaviour after removing a device than we had before it was inserted. This commit renames the touch/keyboard/pointer pointers and adds helper functions to get them that hide this complexity and return NULL when *_device_count is 0. Signed-off-by: Derek Foreman <derekf@osg.samsung.com> Reviewed-by: Jonas Ådahl <jadahl@gmail.com>
* fullscreen-shell: Test for device presence properlyDerek Foreman2015-07-311-2/+2
| | | | | | | | | We should be testing device counts, not pointers. The pointers are persistent state that never gets freed, and are an inaccurate indicator of device presence after the last release. Signed-off-by: Derek Foreman <derekf@osg.samsung.com> Reviewed-by: Jonas Ådahl <jadahl@gmail.com>
* Unified multiple definitions of container_of() macro.Jon Cruz2015-06-151-0/+1
| | | | | | | | | Removed duplicate definitions of the container_of() macro and refactored sources to use the single implementation. Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* *-shell: Update boilerplate from MIT X11 license to MIT Expat licensesBryce Harrington2015-06-151-16/+19
|
* compositor: Refactor weston_output_mode_switch()Derek Foreman2014-11-051-9/+4
| | | | | | | | | | | | | | This breaks weston_output_mode_switch() into 3 functions: weston_output_mode_set_native() weston_output_mode_switch_to_temporary() weston_output_mode_switch_to_native() Differences from previous behaviour: SET_NATIVE didn't set current_scale (now it does) SET_TEMPORARY could set mode and scale independently - now it can't. Signed-off-by: Derek Foreman <derekf@osg.samsung.com> Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* shell: fix weston_output_mode_switch() usageDerek Foreman2014-09-221-3/+3
| | | | | | | | | | | | | Calling weston_output_mode_switch() with WESTON_MODE_SWITCH_RESTORE_NATIVE will result in the mode being set "back" to the passed in mode - so the passed mode should be the native mode. Additionally, weston_output_mode_switch() should be called when output->original_mode is non-NULL (which indicates we had a temporary mode set). The comparison to current_mode results in a lot of log chatter. Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* fullscreen-shell: Fix compiler warningsGiulio Camuffo2014-08-081-2/+2
|
* Add a wl_fullscreen_shell implementationJason Ekstrand2014-04-021-0/+830
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>