1
0
Fork 0
mutter-performance-source/doc
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
..
man Drop man pages for removed utilities 2013-09-12 13:26:34 +02:00
reference window: Rename get_input_rect to get_buffer_rect 2014-06-17 10:33:52 -04:00
.cvsignore and you 2002-11-26 12:21:59 +00:00
code-overview.txt Provide more documentation to make it easier for people to contribute to 2005-01-02 21:59:05 +00:00
compositor-control.txt Comprehensively rename to Mutter 2009-06-16 14:17:10 -04:00
dialogs.txt A small writeup on how to use dialogs in metacity. Approved by Havoc. 2003-02-17 05:00:40 +00:00
how-constraints-works.txt Merge of all the changes on the constraints_experiments branch. This is 2005-11-19 14:58:50 +00:00
how-to-get-focus-right.txt workspace: Don't try to use per-workspace MRU lists as a hint for focusing 2012-03-20 17:08:34 -04:00
Makefile.am build: Don't try to distribute removed files 2014-03-19 21:09:02 +01:00
rationales.txt Clean up the source tree 2014-03-18 20:37:35 -04:00
strut-and-related-updating.txt Oops, missed a couple cleanups in this documentation 2005-11-21 18:19:58 +00:00
theme-format.txt theme: Allow using custom colors from the GTK+ theme 2011-07-08 22:40:43 +02:00