Esc to close region selection

This commit is contained in:
dec05eba
2025-03-15 09:31:06 +01:00
parent d8a0b49bc2
commit d45897164a
3 changed files with 25 additions and 4 deletions

View File

@@ -28,6 +28,7 @@ namespace gsr {
bool poll_events();
bool is_selected() const;
bool take_selection();
bool take_canceled();
Region get_selection() const;
private:
void on_button_press(const void *de);
@@ -45,6 +46,7 @@ namespace gsr {
Region region;
bool selecting_region = false;
bool selected = false;
bool canceled = false;
bool is_wayland = false;
std::vector<Monitor> monitors;
mgl::vec2i cursor_pos;