Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set surface ID with process id if it is 0 #3

Merged
merged 1 commit into from Nov 2, 2018

Conversation

jkim-julie
Copy link

It sets surface ID with process ID if it has 0 as Window Manager
handles surface ID 0 as an invalid ID.

[SPEC-1889] Chromium is initially hidden when launched.
https://jira.automotivelinux.org/browse/SPEC-1889

@jkim-julie
Copy link
Author

@jdapena, Could you take a look? It's to fix the browser visibility issue. As WebApp sets surface ID explicitly in WAM, it's for the browser.


// The window_manager on AGL handles surface_id 0 as an invalid id.
if (surface_id == 0)
surface_id = (int)getpid();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better use static_cast here.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right! Thanks for the comment.

It sets surface ID with process ID if it has 0 as Window Manager
handles surface ID 0 as an invalid ID.

[SPEC-1889] Chromium is initially hidden when launched.
https://jira.automotivelinux.org/browse/SPEC-1889
@jdapena jdapena merged commit 2011fa6 into webosose:@1.agl.flounder Nov 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants