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

New created views has strange geometry #105

Open
galczo5 opened this issue Oct 13, 2017 · 1 comment
Open

New created views has strange geometry #105

galczo5 opened this issue Oct 13, 2017 · 1 comment

Comments

@galczo5
Copy link

galczo5 commented Oct 13, 2017

Hi,
I'm trying to create some views and I cannot set geometry in wlc_set_view_created_cb.
Here is my callback function:

static bool view_created(wlc_handle view) {
  wlc_view_set_mask(view, wlc_output_get_mask(wlc_view_get_output(view)));
  wlc_view_bring_to_front(view);
 
  struct wlc_geometry g = {
    .origin = {
      .x = 0,
      .y = 0
    },
    .size = {
      .w = 1920,
      .h = 1080
    }
  };

  wlc_view_set_geometry(view, 1, &g);
  return true;
}

2017-10-13-230427_1920x1080_scrot

As you see urxvt is not full screen as I set in callback. What is missing?

@galczo5
Copy link
Author

galczo5 commented Oct 24, 2017

Any idea?

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

No branches or pull requests

1 participant