mirror of
https://github.com/brl/mutter.git
synced 2025-06-26 15:07:05 +00:00
core: Move edge-resistance handling to src/compositor
This is now something that is mainly handled from the compositor side, so it makes sense to move it there. Following commits will cut all ties with src/core. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2683>
This commit is contained in:

committed by
Marge Bot

parent
e88891a1d5
commit
36bda45888
File diff suppressed because it is too large
Load Diff
@ -1,38 +0,0 @@
|
||||
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
||||
|
||||
/* Edge resistance for move/resize operations */
|
||||
|
||||
/*
|
||||
* Copyright (C) 2005 Elijah Newren
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef META_EDGE_RESISTANCE_H
|
||||
#define META_EDGE_RESISTANCE_H
|
||||
|
||||
#include "core/window-private.h"
|
||||
|
||||
void meta_window_edge_resistance_for_move (MetaWindow *window,
|
||||
int *new_x,
|
||||
int *new_y,
|
||||
MetaEdgeResistanceFlags flags);
|
||||
void meta_window_edge_resistance_for_resize (MetaWindow *window,
|
||||
int *new_width,
|
||||
int *new_height,
|
||||
MetaGravity gravity,
|
||||
MetaEdgeResistanceFlags flags);
|
||||
|
||||
#endif /* META_EDGE_RESISTANCE_H */
|
||||
|
@ -36,7 +36,6 @@
|
||||
#include "backends/x11/meta-backend-x11.h"
|
||||
#include "backends/x11/meta-input-device-x11.h"
|
||||
#include "compositor/compositor-private.h"
|
||||
#include "core/edge-resistance.h"
|
||||
#include "core/frame.h"
|
||||
#include "core/keybindings-private.h"
|
||||
#include "core/meta-accel-parse.h"
|
||||
|
@ -71,7 +71,6 @@
|
||||
#include "compositor/compositor-private.h"
|
||||
#include "core/boxes-private.h"
|
||||
#include "core/constraints.h"
|
||||
#include "core/edge-resistance.h"
|
||||
#include "core/frame.h"
|
||||
#include "core/keybindings-private.h"
|
||||
#include "core/meta-workspace-manager-private.h"
|
||||
|
Reference in New Issue
Block a user