diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-12-03 18:58:33 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-12-03 18:58:33 +0000 |
| commit | 3c713899932f10a61fa9584c498396a2aaad0d4d (patch) | |
| tree | c1271c7cdc897294aee159484265d91f516701b4 /render.c | |
| parent | search: map ctrl+shift+w to match to end of word, spaces only (diff) | |
render: don't allow negative coordinates of the search surface
While the protocol allows this, it appears Sway offsets (moves) the
parent surface when this happens, resulting in a window half without
content.
Diffstat (limited to 'render.c')
| -rw-r--r-- | render.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -795,7 +795,8 @@ render_search_box(struct terminal *term) wl_subsurface_set_position( term->window->search_sub_surface, - term->width - width - margin, term->height - height - margin); + max(0, term->width - width - margin), + max(0, term->height - height - margin)); wl_surface_damage_buffer(term->window->search_surface, 0, 0, width, height); wl_surface_attach(term->window->search_surface, buf->wl_buf, 0, 0); |
