diff options
author | 2015-08-18 23:52:42 -0700 | |
---|---|---|
committer | 2015-08-18 23:52:42 -0700 | |
commit | 1bf02144e558630f36b1efca45d6074be456c0b4 (patch) | |
tree | 4efdf2bddfc4b141bd34e453da2e2e1abdfa2a69 /sway/container.c | |
parent | focus to only child (diff) | |
download | sway-1bf02144e558630f36b1efca45d6074be456c0b4.tar.gz sway-1bf02144e558630f36b1efca45d6074be456c0b4.tar.zst sway-1bf02144e558630f36b1efca45d6074be456c0b4.zip |
fixed floating_modifier related things
Diffstat (limited to 'sway/container.c')
-rw-r--r-- | sway/container.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sway/container.c b/sway/container.c index ec4d48b8..9763f381 100644 --- a/sway/container.c +++ b/sway/container.c | |||
@@ -200,8 +200,9 @@ swayc_t *new_floating_view(wlc_handle handle) { | |||
200 | // Set the geometry of the floating view | 200 | // Set the geometry of the floating view |
201 | const struct wlc_geometry* geometry = wlc_view_get_geometry(handle); | 201 | const struct wlc_geometry* geometry = wlc_view_get_geometry(handle); |
202 | 202 | ||
203 | view->x = geometry->origin.x; | 203 | //give it requested geometry, but place in center |
204 | view->y = geometry->origin.y; | 204 | view->x = (active_workspace->width - geometry->size.w) / 2; |
205 | view->y = (active_workspace->height- geometry->size.h) / 2; | ||
205 | view->width = geometry->size.w; | 206 | view->width = geometry->size.w; |
206 | view->height = geometry->size.h; | 207 | view->height = geometry->size.h; |
207 | 208 | ||