summaryrefslogtreecommitdiff
path: root/mcwm.c
diff options
context:
space:
mode:
authorMC <mc@hack.org>2010-06-21 10:37:13 +0200
committerMC <mc@hack.org>2010-06-21 10:37:13 +0200
commit280eecac584fbe9e4ea4506fb676d1dc8fecf9eb (patch)
tree4fec649389facee1b1497cbc924f9618c0a2f34f /mcwm.c
parent1fe8aac594a0c90caef995535ef5e771c9cdd5d3 (diff)
downloadmcwm-280eecac584fbe9e4ea4506fb676d1dc8fecf9eb.zip
Removed comment about xterm. It seems it sends a Configure Request to
reconfigure its own geometry! Added debug printouts in Configure Request.
Diffstat (limited to 'mcwm.c')
-rw-r--r--mcwm.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/mcwm.c b/mcwm.c
index 31f7371..17075e2 100644
--- a/mcwm.c
+++ b/mcwm.c
@@ -182,8 +182,7 @@ void newwin(xcb_window_t win)
/*
* If the hints don't agree with the window geometry, resize
- * the window to what the hints say. Needed for xterm, for
- * example.
+ * the window to what the hints say.
*/
if (width != geom->width || height != geom->height)
{
@@ -1301,6 +1300,7 @@ void events(void)
if (e->value_mask & XCB_CONFIG_WINDOW_X)
{
+ PDEBUG("Changing X coordinate.\n");
mask |= XCB_CONFIG_WINDOW_X;
i ++;
values[i] = e->x;
@@ -1309,6 +1309,7 @@ void events(void)
if (e->value_mask & XCB_CONFIG_WINDOW_Y)
{
+ PDEBUG("Changing Y coordinate.\n");
mask |= XCB_CONFIG_WINDOW_Y;
i ++;
values[i] = e->y;
@@ -1317,7 +1318,7 @@ void events(void)
if (e->value_mask & XCB_CONFIG_WINDOW_WIDTH)
{
- PDEBUG("Changing width\n");
+ PDEBUG("Changing width.\n");
mask |= XCB_CONFIG_WINDOW_WIDTH;
i ++;
values[i] = e->width;
@@ -1325,6 +1326,7 @@ void events(void)
if (e->value_mask & XCB_CONFIG_WINDOW_HEIGHT)
{
+ PDEBUG("Changing height.\n");
mask |= XCB_CONFIG_WINDOW_HEIGHT;
i ++;
values[i] = e->width;