<br><br><div class="gmail_quote">On Fri, Sep 7, 2012 at 7:32 AM, Ander Conselvan de Oliveira <span dir="ltr"><<a href="mailto:conselvan2@gmail.com" target="_blank">conselvan2@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Since commit d523a87d2d8c0099d8ac323375b3d083aafccf9a [1],</blockquote><div><br>I'm not sure where you got this sha from but it's wrong. There is no such commit in weston.<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
window.opaque<br>
would be 1 only in fullscreen mode, causing the opaque region to be set<br>
only when running in fullscreen mode. Having it set properly for the<br>
windowed case is helpful to test the overlay path in compositor-drm.<br>
<br>
This reverts that commit and makes window.opaque independent of the -f<br>
switch. Instead, we set the opaque region if the window is fullscreen<br>
or -o was passed and leave window.opaque alone in the case -f was<br>
passed.<br></blockquote><div><br>Did you read the entire commit message? It seems you have cut it here so I will post it:<br><br><br>commit 6a615d262141de7cf094788203d9c044dfb9f08d<br>Author: Scott Moreau <<a href="mailto:oreaus@gmail.com">oreaus@gmail.com</a>><br>
Date: Thu Aug 30 14:44:16 2012 -0600<br><br> simple-egl: Only set alpha_size=0 when -o is passed.<br> <br> When starting simple-egl with -f for fullscreen and toggling to 'windowed' mode with F11,<br> the surface is opaque instead of semi-trnasparent as it is when starting without -f. We<br>
only want to create the surface with alpha_size=0 when the user explicitly passes -o<br> because otherwise it will never have the ability to use alpha.<br> <br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
[1] commit d523a87d2d8c0099d8ac323375b3d083aafccf9a<br></blockquote><div><br>The correct commit id is 6a615d262141de7cf094788203d9c044dfb9f08d, see above.<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Author: Scott Moreau <<a href="mailto:oreaus@gmail.com">oreaus@gmail.com</a>><br>
Date: Thu Aug 30 14:44:16 2012 -0600<br>
<br>
simple-egl: Only set alpha_size=0 when -o is passed.<br>
---<br>
clients/simple-egl.c | 13 ++++---------<br>
1 file changed, 4 insertions(+), 9 deletions(-)<br>
<br>
diff --git a/clients/simple-egl.c b/clients/simple-egl.c<br>
index 808c2ee..a67ce2f 100644<br>
--- a/clients/simple-egl.c<br>
+++ b/clients/simple-egl.c<br>
@@ -280,12 +280,10 @@ toggle_fullscreen(struct window *window, int fullscreen)<br>
window->configured = 0;<br>
<br>
if (fullscreen) {<br>
- window->opaque = 1;<br>
wl_shell_surface_set_fullscreen(window->shell_surface,<br>
WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT,<br>
0, NULL);<br>
} else {<br>
- window->opaque = 0;<br>
wl_shell_surface_set_toplevel(window->shell_surface);<br>
handle_configure(window, window->shell_surface, 0,<br>
window->window_size.width,<br>
@@ -403,7 +401,7 @@ redraw(void *data, struct wl_callback *callback, uint32_t time)<br>
<br>
eglSwapBuffers(window->display->egl.dpy, window->egl_surface);<br>
<br>
- if (window->opaque) {<br>
+ if (window->opaque || window->fullscreen) {<br>
region = wl_compositor_create_region(window->display->compositor);<br>
wl_region_add(region, 0, 0,<br>
window->window_size.width,<br>
@@ -594,7 +592,7 @@ main(int argc, char **argv)<br>
struct sigaction sigint;<br>
struct display display = { 0 };<br>
struct window window = { 0 };<br>
- int i, opaque = 0;<br>
+ int i;<br>
<br>
window.display = &display;<br>
display.window = &window;<br>
@@ -605,7 +603,7 @@ main(int argc, char **argv)<br>
if (strcmp("-f", argv[i]) == 0)<br>
window.fullscreen = 1;<br>
else if (strcmp("-o", argv[i]) == 0)<br>
- opaque = 1;<br>
+ window.opaque = 1;<br>
else if (strcmp("-h", argv[i]) == 0)<br>
usage(EXIT_SUCCESS);<br>
else<br>
@@ -621,10 +619,7 @@ main(int argc, char **argv)<br>
wl_display_get_fd(display.display, event_mask_update, &display);<br>
wl_display_iterate(display.display, WL_DISPLAY_READABLE);<br>
<br>
- if (window.fullscreen)<br>
- window.opaque = 1;<br>
-<br>
- init_egl(&display, opaque);<br>
+ init_egl(&display, window.opaque);<br>
create_surface(&window);<br>
init_gl(&window);<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
1.7.9.5<br>
<br></font></span></blockquote><div> </div><div>I'm not sure what you're trying to do with your patches here but please note the problem that this commit fixed and do not break it.<br><br><br>Thanks,<br><br>Scott<br>
</div></div><br>