staging/windowmanager.git
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 years agoapp: do not inline assignments
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:29 +0000 (11:29 +0200)]
app: do not inline assignments

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoapp/layers: consolidate signed/unsigned usage
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:29 +0000 (11:29 +0200)]
app/layers: consolidate signed/unsigned usage

* Also make use of optional's operator* where appropriate.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoapp/layout: fix split layout from and to transitions
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:29 +0000 (11:29 +0200)]
app/layout: fix split layout from and to transitions

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agobinding: protect raise(SIGKILL) by getenv
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:28 +0000 (11:29 +0200)]
binding: protect raise(SIGKILL) by getenv

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agobinding: make the pending_events functionality nicer[tm]
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:28 +0000 (11:29 +0200)]
binding: make the pending_events functionality nicer[tm]

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agobinding: ping() dispatches only pending events
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:28 +0000 (11:29 +0200)]
binding: ping() dispatches only pending events

* Also, move binding_m mutex to the binding glue.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agobinding: manual lock on API call, do not use noconcurrent bit
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:27 +0000 (11:29 +0200)]
binding: manual lock on API call, do not use noconcurrent bit

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoapp/main: dispatch wayland events using ping(), WIP on split layout
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:27 +0000 (11:29 +0200)]
app/main: dispatch wayland events using ping(), WIP on split layout

* Dispatch ayland events with ping() API call, after having read events
  from wayland fd - in order to prevent indefinite-poll on wrongly read+
  dispatch from multiple threads (dispatcher and API call).
* Add scope trace to all API call thunks.
* Split layout advancements, still broken AF though.
* Add App1 example split layout to App layer.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agobinding: add ping() API call
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:27 +0000 (11:29 +0200)]
binding: add ping() API call

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoapp: remove last remnants of obsolete layout config
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:26 +0000 (11:29 +0200)]
app: remove last remnants of obsolete layout config

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agolayers: fix layers parsing, do not sort by prio
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:26 +0000 (11:29 +0200)]
layers: fix layers parsing, do not sort by prio

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoutil: add scope tracer utility (hack, but more or less useful)
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:26 +0000 (11:29 +0200)]
util: add scope tracer utility (hack, but more or less useful)

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: extend wl::display for finer grained dispatch control
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:26 +0000 (11:29 +0200)]
wayland: extend wl::display for finer grained dispatch control

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoWIP split layouts, reading config, defining data layout.
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:20 +0000 (11:29 +0200)]
WIP split layouts, reading config, defining data layout.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoApp/binding: move binding_api impl to its own source file.
Marcus Fritzsch [Tue, 5 Sep 2017 13:51:20 +0000 (15:51 +0200)]
App/binding: move binding_api impl to its own source file.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomain: only exit on hangup if WINMAN_EXIT_ON_HANGUP env var is present
Marcus Fritzsch [Tue, 5 Sep 2017 13:50:19 +0000 (15:50 +0200)]
main: only exit on hangup if WINMAN_EXIT_ON_HANGUP env var is present

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoApp: emit visibility events
Marcus Fritzsch [Tue, 5 Sep 2017 13:04:59 +0000 (15:04 +0200)]
App: emit visibility events

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agolayers: prefer using instead of typedef
Marcus Fritzsch [Tue, 5 Sep 2017 11:56:17 +0000 (13:56 +0200)]
layers: prefer using instead of typedef

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agolayers.json: remove unused layers description.
Marcus Fritzsch [Tue, 5 Sep 2017 11:56:03 +0000 (13:56 +0200)]
layers.json: remove unused layers description.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoREADME: update
Marcus Fritzsch [Tue, 5 Sep 2017 11:40:47 +0000 (13:40 +0200)]
README: update

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoApp: be a little more thorough when activating a surface
Marcus Fritzsch [Tue, 5 Sep 2017 10:12:51 +0000 (12:12 +0200)]
App: be a little more thorough when activating a surface

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoApp: only activate/deactivate if necessary
Marcus Fritzsch [Tue, 5 Sep 2017 10:10:40 +0000 (12:10 +0200)]
App: only activate/deactivate if necessary

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoApp: remove unimplemented (stubbed) binding API methods
Marcus Fritzsch [Tue, 5 Sep 2017 10:10:12 +0000 (12:10 +0200)]
App: remove unimplemented (stubbed) binding API methods

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: debug log prints IDs instead of controller ptr
Marcus Fritzsch [Tue, 5 Sep 2017 10:09:26 +0000 (12:09 +0200)]
wayland: debug log prints IDs instead of controller ptr

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoApp: some quality improvements, add activate/deactivate helper
Marcus Fritzsch [Tue, 5 Sep 2017 09:53:17 +0000 (11:53 +0200)]
App: some quality improvements, add activate/deactivate helper

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoApp: remove last_active logic
Marcus Fritzsch [Tue, 5 Sep 2017 09:52:37 +0000 (11:52 +0200)]
App: remove last_active logic

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomain: exit on compositor hangup
Marcus Fritzsch [Tue, 5 Sep 2017 09:51:27 +0000 (11:51 +0200)]
main: exit on compositor hangup

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoApp: cleanup requestSurface API method.
Marcus Fritzsch [Mon, 4 Sep 2017 16:00:24 +0000 (18:00 +0200)]
App: cleanup requestSurface API method.

* Use lookup_id().
* Do not call activate_surface() as the surface does not yet exist.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoApp: emit activated and deactivated events
Marcus Fritzsch [Mon, 4 Sep 2017 15:56:38 +0000 (17:56 +0200)]
App: emit activated and deactivated events

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoApp: cleanup name/id mapping and its reverse
Marcus Fritzsch [Mon, 4 Sep 2017 15:56:18 +0000 (17:56 +0200)]
App: cleanup name/id mapping and its reverse

* Single name/id mapping in id_alloc.
* Add Proxy methods to App.
* Disable old API functions to activate surfaces by ID.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoApp/API: fix event emission methods
Marcus Fritzsch [Mon, 4 Sep 2017 15:54:09 +0000 (17:54 +0200)]
App/API: fix event emission methods

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomain: simplify event broadcasting
Marcus Fritzsch [Fri, 1 Sep 2017 10:30:03 +0000 (12:30 +0200)]
main: simplify event broadcasting

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoapp: remove previous work around experiments, add one that fixes HomeScreen
Marcus Fritzsch [Thu, 31 Aug 2017 15:27:02 +0000 (17:27 +0200)]
app: remove previous work around experiments, add one that fixes HomeScreen

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoapp: remove add_task/execute_pending support
Marcus Fritzsch [Thu, 31 Aug 2017 15:23:32 +0000 (17:23 +0200)]
app: remove add_task/execute_pending support

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomain/binding: do not allow concurrent threads in App
Marcus Fritzsch [Thu, 31 Aug 2017 15:17:42 +0000 (17:17 +0200)]
main/binding: do not allow concurrent threads in App

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoapp: workaround for visibility setting; use system()
Marcus Fritzsch [Wed, 30 Aug 2017 14:51:57 +0000 (16:51 +0200)]
app: workaround for visibility setting; use system()

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoapp: visibility setting work around... peak software enfineering right here!!1
Marcus Fritzsch [Wed, 30 Aug 2017 14:04:54 +0000 (16:04 +0200)]
app: visibility setting work around... peak software enfineering right here!!1

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoapp: do not use the Qt surface ID shift hack
Marcus Fritzsch [Wed, 30 Aug 2017 12:47:10 +0000 (14:47 +0200)]
app: do not use the Qt surface ID shift hack

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoapp: use activate_surface() in surface_set_layout()
Marcus Fritzsch [Wed, 30 Aug 2017 12:46:29 +0000 (14:46 +0200)]
app: use activate_surface() in surface_set_layout()

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: only create layers and surfaces when necessary
Marcus Fritzsch [Wed, 30 Aug 2017 12:46:01 +0000 (14:46 +0200)]
wayland: only create layers and surfaces when necessary

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: honor output transformations
Marcus Fritzsch [Wed, 30 Aug 2017 12:45:28 +0000 (14:45 +0200)]
wayland: honor output transformations

At least rotations by 90 and 270 degrees.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoapp: do not apply left id_shift to generated ID!
Marcus Fritzsch [Tue, 29 Aug 2017 13:06:18 +0000 (15:06 +0200)]
app: do not apply left id_shift to generated ID!

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoapp: use id_shift of 22, just like in Qt
Marcus Fritzsch [Tue, 29 Aug 2017 13:01:08 +0000 (15:01 +0200)]
app: use id_shift of 22, just like in Qt

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoapp/main: add send_event() to binding_api
Marcus Fritzsch [Tue, 29 Aug 2017 12:55:35 +0000 (14:55 +0200)]
app/main: add send_event() to binding_api

* Preliminary event support - wrong names, likely wrong implementation

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoapp: added enddraw() and deactivate_surface()
Marcus Fritzsch [Tue, 29 Aug 2017 11:23:43 +0000 (13:23 +0200)]
app: added enddraw() and deactivate_surface()

Implementation untested, not sure if this is even sensible...

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoapp/id_alloc: remove destroyed surfaces
Marcus Fritzsch [Fri, 25 Aug 2017 08:08:22 +0000 (10:08 +0200)]
app/id_alloc: remove destroyed surfaces

Also, make away with those overloaded operators for generation
and lookup.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoclarify some things
Marcus Fritzsch [Thu, 24 Aug 2017 14:37:43 +0000 (16:37 +0200)]
clarify some things

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoadd role to layer::to_json()
Marcus Fritzsch [Fri, 18 Aug 2017 13:44:19 +0000 (15:44 +0200)]
add role to layer::to_json()

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoclang-tidy
Marcus Fritzsch [Thu, 17 Aug 2017 15:09:24 +0000 (17:09 +0200)]
clang-tidy

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoclang-format
Marcus Fritzsch [Thu, 17 Aug 2017 15:03:00 +0000 (17:03 +0200)]
clang-format

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoImplement surface names
Marcus Fritzsch [Thu, 17 Aug 2017 14:45:56 +0000 (16:45 +0200)]
Implement surface names

* request_surface(name: string) -> id: int.
* activate_surface(name: string).
* names will be mapped to their respective layers by use of the layers'
  surface rola match, a regex.
* the generated IDs are global and not reused.
* allow wp-request to use -p, disable use of pygments even if found.

Things missing:
* surface removal does not remove already established mappings/names.
* Mostly untested.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoapp: some more constructor security
Marcus Fritzsch [Wed, 16 Aug 2017 12:52:40 +0000 (14:52 +0200)]
app: some more constructor security

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agolayers: remove last remnants of get<T> to read ints from json
Marcus Fritzsch [Tue, 15 Aug 2017 14:00:51 +0000 (16:00 +0200)]
layers: remove last remnants of get<T> to read ints from json

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agolayout.json: fix number strings into actual numbers.
Marcus Fritzsch [Wed, 9 Aug 2017 14:16:38 +0000 (16:16 +0200)]
layout.json: fix number strings into actual numbers.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoRemove the DB() makro, replace with logdebug() where sensible
Marcus Fritzsch [Wed, 9 Aug 2017 14:16:06 +0000 (16:16 +0200)]
Remove the DB() makro, replace with logdebug() where sensible

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agolayers: fix json to actually include numbers
Marcus Fritzsch [Wed, 9 Aug 2017 13:57:18 +0000 (15:57 +0200)]
layers: fix json to actually include numbers

Actually use numbers where we had number-strings. This simplifies the
json parsing quite a bit.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowm-request: fix mode and shebang
Marcus Fritzsch [Wed, 9 Aug 2017 13:24:24 +0000 (15:24 +0200)]
wm-request: fix mode and shebang

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoadd script wm-request
Marcus Fritzsch [Wed, 9 Aug 2017 10:42:26 +0000 (12:42 +0200)]
add script wm-request

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoclang formatting
Marcus Fritzsch [Tue, 8 Aug 2017 10:04:28 +0000 (12:04 +0200)]
clang formatting

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoremove Poller
Marcus Fritzsch [Tue, 8 Aug 2017 10:03:45 +0000 (12:03 +0200)]
remove Poller

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoremove some unnuecessary comments
Marcus Fritzsch [Tue, 8 Aug 2017 10:03:35 +0000 (12:03 +0200)]
remove some unnuecessary comments

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