rootless: Remove option to disable ROOTLESS_RESIZE_GRAVITY
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
This commit is contained in:
parent
20f5b270d3
commit
f71ef2f02f
|
@ -88,14 +88,6 @@ rootlessConfig.h:
|
|||
the underlying window server. Most operations will be buffered until
|
||||
this time has expired.
|
||||
|
||||
o ROOTLESS_RESIZE_GRAVITY: If the underlying window system supports it,
|
||||
some frame resizes can be optimized by relying on the frame contents
|
||||
maintaining a particular gravity during the resize. In this way less
|
||||
of the frame contents need to be preserved by the generic rootless
|
||||
layer. If true, the generic rootless layer will pass gravity hints
|
||||
during resizing and rely on the frame contents being preserved
|
||||
accordingly.
|
||||
|
||||
The following runtime options are defined in rootless.h:
|
||||
|
||||
o rootlessGlobalOffsetX, rootlessGlobalOffsetY: These specify the global
|
||||
|
|
|
@ -140,8 +140,7 @@ typedef void (*RootlessMoveFrameProc)
|
|||
* pScreen Screen to move the new frame to
|
||||
* newX, newY New position of the frame
|
||||
* newW, newH New size of the frame
|
||||
* gravity Gravity for window contents (rl_gravity_enum). This is always
|
||||
* RL_GRAVITY_NONE unless ROOTLESS_RESIZE_GRAVITY is set.
|
||||
* gravity Gravity for window contents (rl_gravity_enum).
|
||||
*/
|
||||
typedef void (*RootlessResizeFrameProc)
|
||||
(RootlessFrameID wid, ScreenPtr pScreen,
|
||||
|
|
|
@ -34,10 +34,6 @@
|
|||
#ifndef _ROOTLESSCONFIG_H
|
||||
#define _ROOTLESSCONFIG_H
|
||||
|
||||
#ifdef __APPLE__
|
||||
#define ROOTLESS_RESIZE_GRAVITY TRUE
|
||||
#endif
|
||||
|
||||
/*# define ROOTLESSDEBUG*/
|
||||
|
||||
#define ROOTLESS_PROTECT_ALPHA TRUE
|
||||
|
|
|
@ -833,7 +833,6 @@ static inline unsigned int
|
|||
ResizeWeighting(int oldX1, int oldY1, int oldX2, int oldY2, int oldBW,
|
||||
int newX1, int newY1, int newX2, int newY2, int newBW)
|
||||
{
|
||||
#ifdef ROOTLESS_RESIZE_GRAVITY
|
||||
if (newBW != oldBW)
|
||||
return RL_GRAVITY_NONE;
|
||||
|
||||
|
@ -847,9 +846,6 @@ ResizeWeighting(int oldX1, int oldY1, int oldX2, int oldY2, int oldBW,
|
|||
return RL_GRAVITY_NORTH_EAST;
|
||||
else
|
||||
return RL_GRAVITY_NONE;
|
||||
#else
|
||||
return RL_GRAVITY_NONE;
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue