Separate widget close clicks from right-button desktop dragging (by Codex)
Prepare verified release / draft (push) Canceled after 0s

This commit is contained in:
Codex committed 2026-10-31 09:06:12 +01:00
1 parent 12e3e52537
commit b2a6300aad
6 files changed
+86 -10

No files matched your search

+2
View File
@@ -71,6 +71,8 @@ private:
mutable std::vector<uint8_t> sound_ids_;
struct LayoutDrag { int item=-1, grab_x=0, grab_y=0, start_x=0, start_y=0, folder=-1; bool moved=false, folder_child=false, drawer_handle=false, right_button=false; };
std::optional<LayoutDrag> layout_drag_;
bool drawer_close_release_pending_ = false;
DeskRequest close_drawer(const DeskItem& item);
std::optional<DeskState> layout_preview_;
void text(Image&, int x, int baseline, std::string_view, uint8_t color, int right = -1) const;
void sprite_text(Image&, int x, int baseline, std::string_view, int font) const;