Enerccio / ewlc

Wayland compositor library - extended
MIT License
20 stars 3 forks source link

New created views has strange geometry #105

Open galczo5 opened 6 years ago

galczo5 commented 6 years ago

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 commented 6 years ago

Any idea?