Selection delete button is unclickable when it falls outside the visible canvas
Operating System
Windows
(Linux only) Distribution
Windows 11
(Linux only) Desktop Environment
No response
(Linux Only) Display Server
None
Installation Method
nightly build, installer
Xournal++ Version
1.3.7+dev (git 66f687df, built Sep 23, 2026)
libgtk Version
3.24.52
Bug Description
When a selected object is close to the edge of the page, the selection's delete "x" is drawn outside the page area (over the gray background). It is still fully visible, but clicking it does nothing. It only becomes clickable once I drag the object far enough for the x to be back inside the page area.
Expected Behaviour
The delete button should respond to clicks wherever it is drawn.
Steps to Reproduce
Draw an object near the top-left edge of the page. Select it, so the delete "x" appears outside the page. Click the x: nothing happens, even though it is visible. Drag the object inward until the x is inside the page: now clicking it deletes the selection.
Additional Context
Video showing the issue (unlisted): https://youtu.be/0FQT_BlYiTA Possibly related: #4232 (the x being obscured by the sidebar near the page edge, reported on 1.1.1, still open) and #4257, which tried to keep the delete rectangle inside the page area but was closed by its author without review. In my case the x is visible, but it doesn't receive the click while outside the page area.
Source: xournalpp/xournalpp