diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-01-16 15:08:11 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-01-16 15:08:11 +0100 |
| commit | 266bf1d3c0c5ff2131e3c52b8994083eccb27da4 (patch) | |
| tree | 1caa42339bad3489628729f1575397708b2d37f9 /libdecor/src/plugins/cairo/libdecor-cairo.c | |
| parent | e5abb3bc868e16f18abd6a3a432cbb201d76f847 (diff) | |
Update libdecor to commit 7807ae34 dated 15-Jan-2024
Diffstat (limited to 'libdecor/src/plugins/cairo/libdecor-cairo.c')
| -rw-r--r-- | libdecor/src/plugins/cairo/libdecor-cairo.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libdecor/src/plugins/cairo/libdecor-cairo.c b/libdecor/src/plugins/cairo/libdecor-cairo.c index f8beb7aa1..765800df6 100644 --- a/libdecor/src/plugins/cairo/libdecor-cairo.c +++ b/libdecor/src/plugins/cairo/libdecor-cairo.c @@ -2074,10 +2074,10 @@ component_edge(const struct border_component *cmpnt, const int pointer_y, const int margin) { - const bool top = pointer_y < margin; - const bool bottom = pointer_y > (cmpnt->server.buffer->height - margin); - const bool left = pointer_x < margin; - const bool right = pointer_x > (cmpnt->server.buffer->width - margin); + const bool top = pointer_y < margin * 2; + const bool bottom = pointer_y > (cmpnt->server.buffer->height - margin * 2); + const bool left = pointer_x < margin * 2; + const bool right = pointer_x > (cmpnt->server.buffer->width - margin * 2); if (top) if (left) |
