win: fix borderless_set behavior
authorGwanglim Lee <gl77.lee@samsung.com>
Tue, 10 Jun 2014 19:28:20 +0000 (15:28 -0400)
committerChris Michael <devilhorns@comcast.net>
Tue, 10 Jun 2014 19:28:20 +0000 (15:28 -0400)
commitdccab720a79e0bb5b983e999fbf88af7c2e7358b
tree27e1769f9baa166c77ab8da2903f2f7dd484c15d
parentbdb51ddd45887140d4ba78c704ca26754671899a
win: fix borderless_set behavior

Summary:
According to the current elm_win code, client side border should be removed
when window is fullscreen mode. And border couldn't be shown on window
during fullscreen mode. When window is going into normal mode from fullscreen,
then display of border should be determined by its borderless state.

1. client border should be shown when window is going into normal mode from fullscreen with borderless state.
2. client border shouldn't be shown when window is going into normal mode from fullscreen with border state.
3. and also client border shouldn't be shown when window is fullscreen mode.

@fix

Test Plan:
1. run elementary_test in wayland server
2. run window states
3. select borderless
4. select fullscreen
5. unselect fullscreen
6. unselect borderless

Reviewers: raster, devilhorns, seoz

Differential Revision: https://phab.enlightenment.org/D988
legacy/elementary/src/lib/elm_win.c