mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
Prevent cursor based region-snapping when starting a move with A-Left
When wanting to snap to a region when starting the move operation with A-Left (or a similar mousebind which includes a modifier), the modifier - or another one - must be pressed again. Fixes #761
This commit is contained in:
parent
a0b5a80ce1
commit
a4fb5b093b
6 changed files with 40 additions and 28 deletions
|
|
@ -164,6 +164,8 @@ struct seat {
|
|||
/* Private use by regions.c */
|
||||
struct region *region_active;
|
||||
struct region_overlay region_overlay;
|
||||
/* Used to prevent region snapping when starting a move with A-Left */
|
||||
bool region_prevent_snap;
|
||||
|
||||
struct wl_client *active_client_while_inhibited;
|
||||
struct wl_list inputs;
|
||||
|
|
|
|||
|
|
@ -33,8 +33,8 @@ struct region_overlay {
|
|||
};
|
||||
};
|
||||
|
||||
/* Can be used as a cheap check to detect if there are any regions configured */
|
||||
bool regions_available(void);
|
||||
/* Returns true if we should show the region overlay or snap to region */
|
||||
bool regions_should_snap(struct server *server);
|
||||
|
||||
/**
|
||||
* regions_reconfigure*() - re-initializes all regions from struct rc.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue