On Fri, 11 Jul 2003 18:30:52 +0200 (CEST)
Frederic Crozat <[EMAIL PROTECTED]> wrote:

> --=-=-=
> Name        : metacity                     Relocations: (not
> relocateable) Version     : 2.5.2                             Vendor:

forgive my ignorance, but is there any way to get around that topborder
constraint without patching the thing? If yes, please enlighten me. If
no, could that please be patched or at least could a patch be included
in the src.rpm so that people can get rid of that rather unusual
feature? I did patch metacity some months ago and told so on the list,
now people ask /me/ for patches. But I'm not into wm coding, so I'm
rather reluctant to give away patches that I made up in a hurry. I
honestly admit that I have no idea what I'm doing with these patches.

Nevertheless, I attach my own petty attempt at restoring expected wm
behaviour. I'd be glad, if someone would review it and tell me how to
improve it. The patch works okay here, and it enables me to use metacity
on my 800x600 laptop LCD.

Mark


--- metacity-2.5.2/src/constraints.c.sani       2003-05-16 17:52:43.000000000 +0200
+++ metacity-2.5.2/src/constraints.c    2003-07-11 20:24:55.000000000 +0200
@@ -360,7 +360,7 @@
     *rightmost_x = info->se_x - MIN (TITLEBAR_LENGTH_ONSCREEN, orig->width);
 
   if (topmost_y)
-    *topmost_y = info->nw_y + info->fgeom.top_height;
+    *topmost_y = info->nw_y - orig->height + 5 ;
 
   if (bottommost_y)
     {

Reply via email to