summaryrefslogtreecommitdiff
path: root/libmate-desktop/mate-rr-output-info.c
diff options
context:
space:
mode:
authorClement Lefebvre <[email protected]>2015-09-04 12:35:56 +0100
committerClement Lefebvre <[email protected]>2015-09-04 12:35:56 +0100
commit6181c4357bf1882e3833feffb6160fd535a26df3 (patch)
tree3c7d6debb18e2dd38b9531b97f5f81c12d3e45c7 /libmate-desktop/mate-rr-output-info.c
parent4b9d81364c6fa61373cc03b554c18db5277c070e (diff)
parent5cda9e602cfa18739423a3ede10eaee9ec36b87f (diff)
downloadmate-desktop-6181c4357bf1882e3833feffb6160fd535a26df3.tar.bz2
mate-desktop-6181c4357bf1882e3833feffb6160fd535a26df3.tar.xz
Merge pull request #196 from monsta/randr
xrandr fixes and cleanup
Diffstat (limited to 'libmate-desktop/mate-rr-output-info.c')
-rw-r--r--libmate-desktop/mate-rr-output-info.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libmate-desktop/mate-rr-output-info.c b/libmate-desktop/mate-rr-output-info.c
index 7e5a8ee..02ea16a 100644
--- a/libmate-desktop/mate-rr-output-info.c
+++ b/libmate-desktop/mate-rr-output-info.c
@@ -116,6 +116,16 @@ void mate_rr_output_info_get_geometry (MateRROutputInfo *self, int *x, int *y, i
*height = self->priv->height;
}
+/**
+ * mate_rr_output_info_set_geometry:
+ * @self: a #MateRROutputInfo
+ * @x: x offset for monitor
+ * @y: y offset for monitor
+ * @width: monitor width
+ * @height: monitor height
+ *
+ * Set the geometry for the monitor connected to the specified output.
+ */
void mate_rr_output_info_set_geometry (MateRROutputInfo *self, int x, int y, int width, int height)
{
g_return_if_fail (MATE_IS_RR_OUTPUT_INFO (self));