mutter/src/backends
Jonas Ådahl 79c86ae890 Support scaling of cursor sprites given what output they are on
This commits refactors cursor handling code and plugs in logic so that
cursor sprites changes appearance as it moves across the screen.
Renderers are adapted to handle the necessary functionality.

The logic for changing the cursor sprite appearance is done outside of
MetaCursorSprite, and actually where depends on what type of cursor it
is. In mutter we now have two types of cursors that may have their
appearance changed:

 - Themed cursors (aka root cursors)
 - wl_surface cursors

Themed cursors are created by MetaScreen and when created, when
applicable(*), it will extend the cursor via connecting to a signal
which is emitted everytime the cursor is moved. The signal handler will
calculate the expected scale given the monitor it is on and reload the
theme in a correct size when needed.

wl_surface cursors are created when a wl_surface is assigned the
"cursor" role, i.e. when a client calls wl_pointer.set_cursor. A
cursor role object is created which is connected to the cursor object
by the position signal, and will set a correct texture scale given what
monitor the cursor is on and what scale the wl_surface's active buffer
is in. It will also push new buffers to the same to the cursor object
when new ones are committed to the surface.

This commit also makes texture loading lazy, since the renderer doesn't
calculate a rectangle when the cursor position changes.

The native backend is refactored to be triple-buffered; see the comment
in meta-cursor-renderer-native.c for further explanations.

* when we are running as a Wayland compositor

https://bugzilla.gnome.org/show_bug.cgi?id=744932
2015-09-13 21:26:22 +08:00
..
native Support scaling of cursor sprites given what output they are on 2015-09-13 21:26:22 +08:00
x11 Support scaling of cursor sprites given what output they are on 2015-09-13 21:26:22 +08:00
edid-parse.c Remove trailing whitespace 2014-05-02 09:34:48 -04:00
edid.h edid: Remove unused declarations 2014-09-12 11:55:08 -06:00
meta-backend-private.h backend: Add meta_backend_update_last_device() 2015-03-13 21:01:11 +01:00
meta-backend.c backends: Center pointer on primary monitor on startup 2015-03-30 14:00:31 +02:00
meta-barrier-private.h barrier: Fix type cast macros 2015-01-18 13:32:28 -08:00
meta-barrier.c Install enum types 2015-07-05 22:01:59 -07:00
meta-cursor-renderer.c Support scaling of cursor sprites given what output they are on 2015-09-13 21:26:22 +08:00
meta-cursor-renderer.h Support scaling of cursor sprites given what output they are on 2015-09-13 21:26:22 +08:00
meta-cursor-tracker-private.h Rename MetaCursorReference to MetaCursorSprite 2015-08-28 09:52:30 +08:00
meta-cursor-tracker.c Support scaling of cursor sprites given what output they are on 2015-09-13 21:26:22 +08:00
meta-cursor.c Support scaling of cursor sprites given what output they are on 2015-09-13 21:26:22 +08:00
meta-cursor.h Support scaling of cursor sprites given what output they are on 2015-09-13 21:26:22 +08:00
meta-display-config-shared.h Remove trailing whitespace 2014-05-02 09:34:48 -04:00
meta-idle-monitor-dbus.c MetaIdleMonitorDBus: unref the objects after exporting them 2014-05-07 19:04:54 +02:00
meta-idle-monitor-dbus.h Start molding out a new src/backends/ dir 2014-03-31 22:11:00 -04:00
meta-idle-monitor-private.h Remove trailing whitespace 2014-05-02 09:34:48 -04:00
meta-idle-monitor.c backends: Make MetaBackend available to introspection 2014-08-07 11:31:59 +02:00
meta-input-settings-private.h backend: Add set_click_method MetaInputSettings vfunc 2015-03-16 18:05:51 +01:00
meta-input-settings.c backend: Apply the right settings to the right input devices 2015-04-15 13:33:12 +02:00
meta-monitor-config.c Monitor-config: Fix a copy-paste error 2015-07-20 17:33:28 -04:00
meta-monitor-config.h monitor-manager: Expose MetaMonitorManager to introspection 2015-01-30 13:13:49 -05:00
meta-monitor-manager-dummy.c nested: Allow configuration of dummy output configuration 2015-07-15 14:55:55 +08:00
meta-monitor-manager-dummy.h monitor-manager: Expose MetaMonitorManager to introspection 2015-01-30 13:13:49 -05:00
meta-monitor-manager-private.h Support scaling of cursor sprites given what output they are on 2015-09-13 21:26:22 +08:00
meta-monitor-manager.c backends/monitor-manager: Validate EDID strings 2015-07-21 16:42:53 +02:00
meta-stage.c backends: Get rid of meta-cursor-private.h 2015-08-28 09:54:57 +08:00
meta-stage.h wayland: manually activate/deactivate stage when taking/dropping grab 2015-03-28 11:20:48 -04:00