summaryrefslogtreecommitdiff
path: root/fullscreen-shell
AgeCommit message (Collapse)AuthorFilesLines
2016-04-29fullscreen-shell: Use 'surface-local' to correct grammarYong Bakos1-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>
2015-11-19Use fullscreen-shell.xml from wayland-protocolsJonas Ådahl1-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>
2015-08-07fullscreen-shell: Fix modeset on transformed outputsJason Ekstrand1-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>
2015-08-07Use [x]zalloc instead of [x]malloc + memsetRyo Munakata1-6/+3
Signed-off-by: Ryo Munakata <ryomnktml@gmail.com> Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
2015-07-31input: Don't test keyboard/pointer/touch pointersDerek Foreman1-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>
2015-07-31fullscreen-shell: Test for device presence properlyDerek Foreman1-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>
2015-06-15Unified multiple definitions of container_of() macro.Jon Cruz1-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>
2015-06-15*-shell: Update boilerplate from MIT X11 license to MIT Expat licensesBryce Harrington1-16/+19
2014-11-05compositor: Refactor weston_output_mode_switch()Derek Foreman1-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>
2014-09-22shell: fix weston_output_mode_switch() usageDerek Foreman1-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>
2014-08-08fullscreen-shell: Fix compiler warningsGiulio Camuffo1-2/+2
2014-04-02Add a wl_fullscreen_shell implementationJason Ekstrand1-0/+830
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>