staging/windowmanager.git
7 years agowm-request: enable the use of pygments if available
Marcus Fritzsch [Wed, 13 Sep 2017 12:39:30 +0000 (14:39 +0200)]
wm-request: enable the use of pygments if available

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agobinding/afbclient: use the correct binding names
Marcus Fritzsch [Wed, 13 Sep 2017 11:59:23 +0000 (13:59 +0200)]
binding/afbclient: use the correct binding names

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp/afbclient: use the correct names for active/inactive events
Marcus Fritzsch [Wed, 13 Sep 2017 11:58:42 +0000 (13:58 +0200)]
app/afbclient: use the correct names for active/inactive events

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agolayers: remove priority from split layout definition
Marcus Fritzsch [Wed, 13 Sep 2017 10:48:07 +0000 (12:48 +0200)]
layers: remove priority from split layout definition

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoredraw_fixer: a couple of style fixes
Marcus Fritzsch [Wed, 13 Sep 2017 10:13:40 +0000 (12:13 +0200)]
redraw_fixer: a couple of style fixes

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp: a couple of style fixes + format
Marcus Fritzsch [Wed, 13 Sep 2017 10:13:22 +0000 (12:13 +0200)]
app: a couple of style fixes + format

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agocmake: enable c++14 for redraw_fixer
Marcus Fritzsch [Wed, 13 Sep 2017 10:13:07 +0000 (12:13 +0200)]
cmake: enable c++14 for redraw_fixer

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoRemove remnants of obsolete surface management by their IDs
Marcus Fritzsch [Wed, 13 Sep 2017 10:02:42 +0000 (12:02 +0200)]
Remove remnants of obsolete surface management by their IDs

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoclient-lib: link against libafbwsc
Marcus Fritzsch [Tue, 12 Sep 2017 13:20:04 +0000 (15:20 +0200)]
client-lib: link against libafbwsc

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoremove obsolete TODO
Marcus Fritzsch [Tue, 12 Sep 2017 11:40:06 +0000 (13:40 +0200)]
remove obsolete TODO

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoremove unused layouts.json
Marcus Fritzsch [Tue, 12 Sep 2017 11:39:23 +0000 (13:39 +0200)]
remove unused layouts.json

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agocmake: rename the project to WindowManagerTMC
Marcus Fritzsch [Tue, 12 Sep 2017 11:34:47 +0000 (13:34 +0200)]
cmake: rename the project to WindowManagerTMC

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agocmake/config: use /etc/layers.json, install it to there too.
Marcus Fritzsch [Tue, 12 Sep 2017 11:34:36 +0000 (13:34 +0200)]
cmake/config: use /etc/layers.json, install it to there too.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoclient-lib: add documentation
Marcus Fritzsch [Tue, 12 Sep 2017 11:09:39 +0000 (13:09 +0200)]
client-lib: add documentation

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agowinman: add install targets
Marcus Fritzsch [Tue, 12 Sep 2017 11:08:48 +0000 (13:08 +0200)]
winman: add install targets

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agocmake: include GNUInstallDirs
Marcus Fritzsch [Tue, 12 Sep 2017 11:08:27 +0000 (13:08 +0200)]
cmake: include GNUInstallDirs

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoAFBClient: add license headers
Marcus Fritzsch [Tue, 12 Sep 2017 10:46:04 +0000 (12:46 +0200)]
AFBClient: add license headers

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoAFBClient: impl ptr is const
Marcus Fritzsch [Tue, 12 Sep 2017 10:29:09 +0000 (12:29 +0200)]
AFBClient: impl ptr is const

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoclient-lib: add cmakelists
Marcus Fritzsch [Tue, 12 Sep 2017 10:17:11 +0000 (12:17 +0200)]
client-lib: add cmakelists

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoMove AFBClient to client-lib/
Marcus Fritzsch [Tue, 12 Sep 2017 10:06:20 +0000 (12:06 +0200)]
Move AFBClient to client-lib/

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoAFBClient: fix port sanity check
Marcus Fritzsch [Tue, 5 Sep 2017 14:45:49 +0000 (16:45 +0200)]
AFBClient: fix port sanity check

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoAFBClient: move dispatch_internal() to Impl ...
Marcus Fritzsch [Tue, 5 Sep 2017 07:54:58 +0000 (09:54 +0200)]
AFBClient: move dispatch_internal() to Impl ...

* ... move json argument helper to anon namespace
* call api_call() with this->

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoAFBClient: move api_call() to Impl as it's now private anyway.
Marcus Fritzsch [Tue, 5 Sep 2017 07:50:25 +0000 (09:50 +0200)]
AFBClient: move api_call() to Impl as it's now private anyway.

* Also put json argument creation to helper function

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoAFBClient: use fputs where sensible, more this-> name qualification
Marcus Fritzsch [Tue, 5 Sep 2017 07:49:45 +0000 (09:49 +0200)]
AFBClient: use fputs where sensible, more this-> name qualification

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoAFBClient: prevent init if already initialized
Marcus Fritzsch [Tue, 5 Sep 2017 07:48:46 +0000 (09:48 +0200)]
AFBClient: prevent init if already initialized

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoAFBClient: fix some clang-tidy issues
Marcus Fritzsch [Mon, 4 Sep 2017 14:25:35 +0000 (16:25 +0200)]
AFBClient: fix some clang-tidy issues

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoCall event handler only if event-label matches
Marcus Fritzsch [Mon, 4 Sep 2017 14:05:06 +0000 (16:05 +0200)]
Call event handler only if event-label matches

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoAdd doc/
Marcus Fritzsch [Mon, 4 Sep 2017 13:20:56 +0000 (15:20 +0200)]
Add doc/

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoAFBClient: remove obsolete UNUSED() usages
Marcus Fritzsch [Mon, 4 Sep 2017 12:58:08 +0000 (14:58 +0200)]
AFBClient: remove obsolete UNUSED() usages

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoImpl: use handler_fun instead of its full type
Marcus Fritzsch [Mon, 4 Sep 2017 12:53:35 +0000 (14:53 +0200)]
Impl: use handler_fun instead of its full type

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoAFBClient: implement event handler dispatch
Marcus Fritzsch [Mon, 4 Sep 2017 12:47:44 +0000 (14:47 +0200)]
AFBClient: implement event handler dispatch

* requestSurface will store label if successful.
* onEvent calls AFBClient::Impl::event to dispatch the event.
* stripped down onCall and onEvent implementations.
* event names from onEvent are matched on-the-fly to
  AFBClient::EventType.
* requestSurface with a name that is already known will fail
  immediately.
* Removal of event handler not supported.
* Removal of surfaces not supported - assume the application
  lives only as long as it's surface.
* Add minimal Event_Active event handler to main.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoImpl: made wsj1_itf const
Marcus Fritzsch [Mon, 4 Sep 2017 11:43:29 +0000 (13:43 +0200)]
Impl: made wsj1_itf const

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoImpl: made 'returned' boolean atomic
Marcus Fritzsch [Mon, 4 Sep 2017 11:41:35 +0000 (13:41 +0200)]
Impl: made 'returned' boolean atomic

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoAFBClient: Pimpl'ed to hide impl details
Marcus Fritzsch [Mon, 4 Sep 2017 11:27:43 +0000 (13:27 +0200)]
AFBClient: Pimpl'ed to hide impl details

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoremove json_object fwd decl
Marcus Fritzsch [Mon, 4 Sep 2017 09:52:52 +0000 (11:52 +0200)]
remove json_object fwd decl

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoGuard dispatch using a mutex, remove dipatch() timeout parameter
Marcus Fritzsch [Fri, 1 Sep 2017 12:39:28 +0000 (14:39 +0200)]
Guard dispatch using a mutex, remove dipatch() timeout parameter

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoAFBClient: remove call() method
Marcus Fritzsch [Fri, 1 Sep 2017 11:18:35 +0000 (13:18 +0200)]
AFBClient: remove call() method

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoAFBClient: TRACE() onReply too!
Marcus Fritzsch [Fri, 1 Sep 2017 11:07:55 +0000 (13:07 +0200)]
AFBClient: TRACE() onReply too!

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoAFBClient: trace dispatch_internal(), header hygiene
Marcus Fritzsch [Fri, 1 Sep 2017 10:55:56 +0000 (12:55 +0200)]
AFBClient: trace dispatch_internal(), header hygiene

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoAFBClient: make all call through call()
Marcus Fritzsch [Fri, 1 Sep 2017 10:06:09 +0000 (12:06 +0200)]
AFBClient: make all call through call()

* Make all calls through call().
* dispatch() aggressively to ensure we actually dispatch our call
  reply too.
* Extend scope tracing, guarded by NDEBUG.
* Remove onReply, always use the locally supplied callable.
* Simplify method implementations making API calls.
* Propagate API call result through call() method return value.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoAFBClient:: clang-format
Marcus Fritzsch [Thu, 31 Aug 2017 12:49:43 +0000 (14:49 +0200)]
AFBClient:: clang-format

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoAFBClient: fix NDEBUG usage
Marcus Fritzsch [Thu, 31 Aug 2017 12:49:15 +0000 (14:49 +0200)]
AFBClient: fix NDEBUG usage

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoMake all non-public things private (move to impl)
Marcus Fritzsch [Thu, 31 Aug 2017 12:42:55 +0000 (14:42 +0200)]
Make all non-public things private (move to impl)

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoAdd set_event_handler, added int returns for all API methods.
Marcus Fritzsch [Thu, 31 Aug 2017 12:15:53 +0000 (14:15 +0200)]
Add set_event_handler, added int returns for all API methods.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoApplication code clean-up
Marcus Fritzsch [Thu, 14 Sep 2017 12:04:49 +0000 (14:04 +0200)]
Application code clean-up

original author is Aurelian.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoRemoving some test calls
Marcus Fritzsch [Thu, 14 Sep 2017 12:04:43 +0000 (14:04 +0200)]
Removing some test calls

There were some test calls left that don't make any sense to be
kept in the main().
Removed the extern C definitions of the functions used by the
application from the AFB.
Added some more debugging information

original author is Aurelian.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoWIP: add enddraw() and deacrivate_surface() implementations.
Marcus Fritzsch [Tue, 29 Aug 2017 11:48:10 +0000 (13:48 +0200)]
WIP: add enddraw() and deacrivate_surface() implementations.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoWIP: make requestSurface/activateSurace() syncronous
Marcus Fritzsch [Tue, 29 Aug 2017 08:05:41 +0000 (10:05 +0200)]
WIP: make requestSurface/activateSurace() syncronous

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoReading and exporting the surfaceID from WM
Marcus Fritzsch [Thu, 14 Sep 2017 12:04:41 +0000 (14:04 +0200)]
Reading and exporting the surfaceID from WM

original author is Aurelian.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoRemove the AFB definition
Marcus Fritzsch [Thu, 14 Sep 2017 12:04:40 +0000 (14:04 +0200)]
Remove the AFB definition

original author is Aurelian.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoWIP: dispatch sd_events, but break qt event handling
Marcus Fritzsch [Mon, 28 Aug 2017 11:14:56 +0000 (13:14 +0200)]
WIP: dispatch sd_events, but break qt event handling

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoTrying to fix the link with wsj1
Marcus Fritzsch [Thu, 14 Sep 2017 12:04:38 +0000 (14:04 +0200)]
Trying to fix the link with wsj1

original author is Aurelian.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoAdding some extra application parameters
Marcus Fritzsch [Thu, 14 Sep 2017 12:04:36 +0000 (14:04 +0200)]
Adding some extra application parameters

original author is Aurelian.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoMoved the AFBClient to singleton
Marcus Fritzsch [Thu, 14 Sep 2017 12:04:35 +0000 (14:04 +0200)]
Moved the AFBClient to singleton

original author is Aurelian.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoFix compilation for target
Marcus Fritzsch [Thu, 14 Sep 2017 12:04:31 +0000 (14:04 +0200)]
Fix compilation for target

original author is Aurelian.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoFix compilation on host
Marcus Fritzsch [Thu, 14 Sep 2017 12:04:27 +0000 (14:04 +0200)]
Fix compilation on host

original author is Aurelian.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoadd AFBClient
Marcus Fritzsch [Tue, 12 Sep 2017 10:02:38 +0000 (12:02 +0200)]
add AFBClient

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agocmake: add file license header
Marcus Fritzsch [Tue, 12 Sep 2017 09:37:09 +0000 (11:37 +0200)]
cmake: add file license header

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agowm-request: add file license header
Marcus Fritzsch [Tue, 12 Sep 2017 09:36:02 +0000 (11:36 +0200)]
wm-request: add file license header

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agocmake: add file license header
Marcus Fritzsch [Tue, 12 Sep 2017 09:35:37 +0000 (11:35 +0200)]
cmake: add file license header

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agopolicy: add file license header
Marcus Fritzsch [Tue, 12 Sep 2017 09:35:08 +0000 (11:35 +0200)]
policy: add file license header

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoredraw_fixer: add file license header
Marcus Fritzsch [Tue, 12 Sep 2017 09:34:55 +0000 (11:34 +0200)]
redraw_fixer: add file license header

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoredraw_fixer: fix a couple of unneeded extra redundant stuff
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:42 +0000 (11:29 +0200)]
redraw_fixer: fix a couple of unneeded extra redundant stuff

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoadd redraw_fixer, separate controller tool
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:41 +0000 (11:29 +0200)]
add redraw_fixer, separate controller tool

* Use the existing wayland.hpp/cpp implementation
* Listen for visibility and destination_rectangle events
* Apply changing values to opacity to "fix" redraw

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoutil: add ability to disable afb logging macro usage
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:41 +0000 (11:29 +0200)]
util: add ability to disable afb logging macro usage

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoApp: controller hooks impl
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:40 +0000 (11:29 +0200)]
App: controller hooks impl

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agopolicy: debuglog everytime-positive result
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:40 +0000 (11:29 +0200)]
policy: debuglog everytime-positive result

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoAdd visibility dst-rect controller hooks
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:40 +0000 (11:29 +0200)]
Add visibility dst-rect controller hooks

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoApp: be more thorough on (de)activate()
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:39 +0000 (11:29 +0200)]
App: be more thorough on (de)activate()

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoApp: correctly deactivate sub surfaces
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:39 +0000 (11:29 +0200)]
App: correctly deactivate sub surfaces

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoApp: remove unused field layouts
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:39 +0000 (11:29 +0200)]
App: remove unused field layouts

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoApp: fix missing layout_commit() on single-surface deactivate
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:39 +0000 (11:29 +0200)]
App: fix missing layout_commit() on single-surface deactivate

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agopolicy: add a simple policy stub, broke some layouting tho
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:38 +0000 (11:29 +0200)]
policy: add a simple policy stub, broke some layouting tho

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp: emit_syncdraw() only after layout commit to compositor
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:38 +0000 (11:29 +0200)]
app: emit_syncdraw() only after layout commit to compositor

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agolayers/app: properly remove surfs, deactivate main_surface
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:38 +0000 (11:29 +0200)]
layers/app: properly remove surfs, deactivate main_surface

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoApp: add layout_commit()
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:37 +0000 (11:29 +0200)]
App: add layout_commit()

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoApp: single-method layout setup
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:37 +0000 (11:29 +0200)]
App: single-method layout setup

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoApp: make a couple of methods private to signal internal use
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:37 +0000 (11:29 +0200)]
App: make a couple of methods private to signal internal use

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoApp: add enqueue_flushdraw() and check_flushdraw()
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:36 +0000 (11:29 +0200)]
App: add enqueue_flushdraw() and check_flushdraw()

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoApp: do some clang-format
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:36 +0000 (11:29 +0200)]
App: do some clang-format

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoApp: rename api call implementations to api_*
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:36 +0000 (11:29 +0200)]
App: rename api call implementations to api_*

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp/binding: implement crude syndraw/enddraw/flushdraw sequence
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:35 +0000 (11:29 +0200)]
app/binding: implement crude syndraw/enddraw/flushdraw sequence

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoApp: std::move() optional wrapped values out of there
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:35 +0000 (11:29 +0200)]
App: std::move() optional wrapped values out of there

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoApp: thoroughly check LayoutState availability in activate too
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:35 +0000 (11:29 +0200)]
App: thoroughly check LayoutState availability in activate too

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoApp: be more thorough when checking surface-associated LayoutState
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:35 +0000 (11:29 +0200)]
App: be more thorough when checking surface-associated LayoutState

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoApp: take local copies of some optional<> wrapped values.
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:34 +0000 (11:29 +0200)]
App: take local copies of some optional<> wrapped values.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoApp: emit_flushdraw() should actually emit a flushdraw event.
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:34 +0000 (11:29 +0200)]
App: emit_flushdraw() should actually emit a flushdraw event.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoApp: remove some superflous debuglog()
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:33 +0000 (11:29 +0200)]
App: remove some superflous debuglog()

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agolayers.json: set OnScreen area to non-center non-full
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:33 +0000 (11:29 +0200)]
layers.json: set OnScreen area to non-center non-full

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp: check layer <-> surface assoc more thoroughly
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:33 +0000 (11:29 +0200)]
app: check layer <-> surface assoc more thoroughly

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agowm-request: use a preset UUID if uuidgen cannot be found
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:32 +0000 (11:29 +0200)]
wm-request: use a preset UUID if uuidgen cannot be found

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoApp/layers: deactivate surfaces on layers above.
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:32 +0000 (11:29 +0200)]
App/layers: deactivate surfaces on layers above.

* When activating a surface on layer x, all surfaces on all layers above
  this will be deactivated.
* Remove main_surface special case (we get the same result by putting
  the main_surface on the bottom layer).
* Track LayoutState per layer, make can_split() accept this layer-local
  LayoutState for its decision.
* Sort layers on load according to their ID. That is, do not make use
  Of the layer's z-order attribute, also there is no need to.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agowm-request: fix unset-var error
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:32 +0000 (11:29 +0200)]
wm-request: fix unset-var error

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoApp: special-case (de)activation for main_surface
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:32 +0000 (11:29 +0200)]
App: special-case (de)activation for main_surface

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agomisc: fix some minor style issues, fix SCOPE_TRACING compilation
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:31 +0000 (11:29 +0200)]
misc: fix some minor style issues, fix SCOPE_TRACING compilation

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp: emit syncdraw and flushdraw events
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:31 +0000 (11:29 +0200)]
app: emit syncdraw and flushdraw events

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp: remove unsused surface ref in activate_surface()
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:30 +0000 (11:29 +0200)]
app: remove unsused surface ref in activate_surface()

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agowayland: fix two instances of logdebug format breakage
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:30 +0000 (11:29 +0200)]
wayland: fix two instances of logdebug format breakage

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoutil/cmake: enable ScopeTracing through cmake variable option
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:30 +0000 (11:29 +0200)]
util/cmake: enable ScopeTracing through cmake variable option

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoscripts: wm-request uses afb-client-demo
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:30 +0000 (11:29 +0200)]
scripts: wm-request uses afb-client-demo

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>