libwnck r1596 - in trunk: . libwnck
- From: vuntz svn gnome org
- To: svn-commits-list gnome org
- Subject: libwnck r1596 - in trunk: . libwnck
- Date: Mon, 3 Mar 2008 20:52:14 +0000 (GMT)
Author: vuntz
Date: Mon Mar 3 20:52:14 2008
New Revision: 1596
URL: http://svn.gnome.org/viewvc/libwnck?rev=1596&view=rev
Log:
2008-03-03 Vincent Untz <vuntz gnome org>
* libwnck/window.c: (wnck_window_set_geometry): fix
wnck_window_set_geometry() to really work as intended, ie including
decorations. The _NET_MOVERESIZE_WINDOW message do not include
decorations.
Fix part of bug #518606, patch by Mikkel Kamstrup Erlandsen
<mikkel kamstrup gmail com>, with feedback from Elijah & Vincent.
Modified:
trunk/ChangeLog
trunk/libwnck/window.c
Modified: trunk/libwnck/window.c
==============================================================================
--- trunk/libwnck/window.c (original)
+++ trunk/libwnck/window.c Mon Mar 3 20:52:14 2008
@@ -2300,6 +2300,11 @@
gravity_and_flags = gravity;
gravity_and_flags |= geometry_mask << 8;
gravity_and_flags |= source << 12;
+
+ x += window->priv->left_frame;
+ y -= window->priv->top_frame;
+ width -= window->priv->left_frame + window->priv->right_frame;
+ height -= window->priv->top_frame + window->priv->bottom_frame;
_wnck_set_window_geometry (WNCK_SCREEN_XSCREEN (window->priv->screen),
window->priv->xwindow,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]