Enerccio/ewlc

New created views has strange geometry

galczo5 opened this issue · 1 comments

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?

Any idea?