mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
action: disable MoveRelative for fullscreen and unmaximize
This commit is contained in:
parent
934bf1c5b3
commit
c0c40e1432
1 changed files with 2 additions and 1 deletions
|
|
@ -629,9 +629,10 @@ actions_run(struct view *activator, struct server *server,
|
|||
}
|
||||
break;
|
||||
case ACTION_TYPE_MOVE_RELATIVE:
|
||||
if (view) {
|
||||
if (view && !view->fullscreen) {
|
||||
int x = get_arg_value_int(action, "x", 0);
|
||||
int y = get_arg_value_int(action, "y", 0);
|
||||
view_maximize(view, false, false);
|
||||
view_move(view, view->pending.x + x, view->pending.y + y);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue