mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
SnapToRegion: Add overlay while moving and pressing a modifier
This commit is contained in:
parent
0c31886061
commit
7e99d8ba08
10 changed files with 110 additions and 4 deletions
|
|
@ -1,5 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
#include "labwc.h"
|
||||
#include "regions.h"
|
||||
#include "view.h"
|
||||
|
||||
static int
|
||||
|
|
@ -141,6 +142,7 @@ interactive_finish(struct view *view)
|
|||
{
|
||||
if (view->server->grabbed_view == view) {
|
||||
enum input_mode mode = view->server->input_mode;
|
||||
regions_hide_overlay(view->server, &view->server->seat);
|
||||
view->server->input_mode = LAB_INPUT_STATE_PASSTHROUGH;
|
||||
view->server->grabbed_view = NULL;
|
||||
if (mode == LAB_INPUT_STATE_MOVE) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue