e_policy: fix bug for uniconify window by wm 55/265055/2
authorDoyoun Kang <doyoun.kang@samsung.com>
Fri, 8 Oct 2021 03:32:38 +0000 (12:32 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Fri, 8 Oct 2021 04:31:11 +0000 (04:31 +0000)
commitd282e79be96c4ad9577466e7d809d77d0a5229bf
tree7bc5e7fb756766b251fdc13f1d6d67e93ae8fa1a
parentfc21092308871c014eae8dcae11bd30c9d51ac32
e_policy: fix bug for uniconify window by wm

There was a bug that the fully-obscured partial window run uniconify_window by wm
when the new alpha opaque window was launched.

Suppose that the window stack is as below.
[top] WinA (full size - 0,0,1920x1080) - WinB (partial - 1,1,1920x1280) [bottom]
If we launch new WinC which set an alpha opaque, window stack should be as below.
[top] WinC (full size, 32bit, alpha opaque) - WinA - WinB [bottom]
In this case, WinB must not change visibility and iconic state.

But, e changed WinB's iconic state to uniconic and sent a pre-unobscured event.
This was because we didn't clip the geometry of the window by e_zone's geometry.

So, we add code to clip the window's geometry by the zone's geometry.

Change-Id: Ie3de71ae4c6c1b35e15f5ca478b3c2cac94dd08a
src/bin/e_policy.c