Author: olivier
Date: 2008-09-11 06:17:09 +0000 (Thu, 11 Sep 2008)
New Revision: 27818
Modified:
xfwm4/trunk/src/placement.c
Log:
Add warnings when auto-maximizing a window
Modified: xfwm4/trunk/src/placement.c
===================================================================
--- xfwm4/trunk/src/placement.c 2008-09-11 05:57:32 UTC (rev 27817)
+++ xfwm4/trunk/src/placement.c 2008-09-11 06:17:09 UTC (rev 27818)
@@ -517,12 +517,18 @@
if (!FLAG_TEST (c->flags, CLIENT_FLAG_MAXIMIZED_HORIZ) &&
(frameWidth (c) > full_w))
{
+ g_warning ("The application \"%s\" has requested a window width "
+ "(%u) larger than the actual width available in the
workspace (%u), "
+ "the window will be maximized horizontally.", c->name,
frameWidth (c), full_w);
FLAG_SET (c->flags, CLIENT_FLAG_MAXIMIZED_HORIZ);
}
if (!FLAG_TEST (c->flags, CLIENT_FLAG_MAXIMIZED_VERT) &&
(frameHeight (c) > full_h))
{
+ g_warning ("The application \"%s\" has requested a window height "
+ "(%u) larger than the actual height available in the
workspace (%u), "
+ "the window will be maximized vertically.", c->name,
frameHeight (c), full_h);
FLAG_SET (c->flags, CLIENT_FLAG_MAXIMIZED_VERT);
}
}
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits