diff options
author | Owen W. Taylor <otaylor@fishsoup.net> | 2013-11-15 16:11:20 -0500 |
---|---|---|
committer | Owen W. Taylor <otaylor@fishsoup.net> | 2013-11-19 14:04:16 -0500 |
commit | f36a62733098d8ef416d627c20f50c64bc7f0a4b (patch) | |
tree | 5dffacb055cc986c0ba9b206288b709cb47e280c /doc | |
parent | a1087c3f3058efb99191211260b67f7e9b1e9819 (diff) | |
download | mutter-f36a62733098d8ef416d627c20f50c64bc7f0a4b.tar.gz |
Use utility functions to convert between frame and client rectangles
There are extensive places in the code where we convert between the client
rectangle and the frame rectangle. Instead of manually doing it use
new helper functions on MetaWindow and the existing meta_window_get_outer_rect().
This fixes a number of bugs where the computation was being done incorrectly,
most of these bugs are with the recently added custom frame extents, but
some relate to invisible borders or even simply to confusion between the
window and frame rectangle.
Switch the placement code to place the frame rectangle rather
than the client window - this simplifies things considerably.
https://bugzilla.gnome.org/show_bug.cgi?id=707194
Diffstat (limited to 'doc')
-rw-r--r-- | doc/reference/meta-sections.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/reference/meta-sections.txt b/doc/reference/meta-sections.txt index 08e8f7c16..b87cbfed1 100644 --- a/doc/reference/meta-sections.txt +++ b/doc/reference/meta-sections.txt @@ -542,6 +542,8 @@ meta_window_is_skip_taskbar meta_window_get_rect meta_window_get_input_rect meta_window_get_outer_rect +meta_window_client_rect_to_frame_rect +meta_window_frame_rect_to_client_rect meta_window_get_screen meta_window_get_display meta_window_get_xwindow |