1
0
Fork 0
mutter-performance-source/src
Jasper St. Pierre 188e4e1b92 window: Rename get_input_rect to get_buffer_rect
With get_input_region existing, get_input_rect is a misnomer. Really,
it's about the geometry of the output surface, and it's only used that
way in the compositor code.

Way back when in GNOME 3.2, get_input_rect was added when we added
invisible borders. get_outer_rect was always synonymous with server-side
geometry of the toplevel. get_outer_rect was used for both user-side
policy (the "frame rect") and to get the geometry of the window.

Invisible borders were meant to extend the input region of the frame
window silently. Since most users of get_outer_rect cared about the
frame rect, we kept that the same and added a new method, get_input_rect
to get the full rect of the framed window with all invisible borders for
input kept on.

As time went on and CSD and Wayland became a reality, the relationship
between the server-side geometry and the "frame rect" became more
complicated, as can be evidenced by the recent commits. Since clients
don't tend to be framed anymore, they set their own input region.

get_buffer_rect is also sort of a poor name, since X11 doesn't really
have buffers, but we don't really have many other alternatives.

This doesn't change any of the code, nor the meaning. It will always
refer to the rectangle where the toplevel should be placed.
2014-06-17 10:33:52 -04:00
..
backends native: Add a warp_pointer implementation 2014-06-11 16:42:05 -04:00
compositor window: Rename get_input_rect to get_buffer_rect 2014-06-17 10:33:52 -04:00
core window: Rename get_input_rect to get_buffer_rect 2014-06-17 10:33:52 -04:00
meta window: Rename get_input_rect to get_buffer_rect 2014-06-17 10:33:52 -04:00
ui theme: Replace char array element comparisons with strncmp 2014-06-14 14:12:53 -04:00
wayland wayland-touch: Rearrange header slightly 2014-06-11 16:28:45 -04:00
x11 window: Move get_toplevel_xwindow to window-x11 2014-06-16 18:29:38 -04:00
.cvsignore Install desktop files in both .../share/applications and 2008-09-12 04:05:17 +00:00
libmutter.pc.in meta: Add generated meta-version.h 2014-06-05 14:05:16 +02:00
Makefile.am Move all X11 event processing to a new file in x11/ 2014-06-11 16:28:45 -04:00
mutter-enum-types.c.in Add bits missing from last commit 2009-07-04 17:14:48 +01:00
mutter-enum-types.h.in Use a META_ prefix for enum types, not MUTTER_ 2012-02-23 16:39:28 -05:00
org.freedesktop.login1.xml launcher: Replace mutter-launch with logind integration 2014-05-19 15:09:23 -04:00
org.gnome.Mutter.DisplayConfig.xml Rename the DBus interface files 2014-03-31 23:44:46 -04:00
org.gnome.Mutter.IdleMonitor.xml Rename the DBus interface files 2014-03-31 23:44:46 -04:00