Re: Notification: incoming/1403

2004-08-20 Thread Dominik Vogt
On Wed, Aug 18, 2004 at 10:03:54PM -0500, fvwm-bug wrote:
 FVWM Bug Tracking notification
 
 new message incoming/1403
 
 Subject: Process crashes
 
 Full_Name: Dave Roberts
 Version: 2.5.10-r3
 CVS_Date: 
 OS: Gentoo 2.6.6 kernel
 X_Server: xfree-4.3.0-r6
 Submission from: (NULL) (68.233.161.27)
 
 
 When using Mozilla Firefox, sometimes when I close the extensions window
 all of Firefox will close (crash).  Sometimes when I close an IM window
 using gaim, the entire program will close (crash).  This leads me to
 believe that FVWM is crashing these applications in the same way.  Their is
 no clear way to reproduce it, but it happens fairly often.  Please let me
 know what I can do to help.

Most likely you are using the Close or Destroy fvwm command
to close your windows.  What you describe is the normal behaviour
for these functions:  if an application does not close its window
on request, the application is killed forcefully.  If you don't
want that, use the Delete command.

Ciao

Dominik ^_^  ^_^

 --
Dominik Vogt, [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]


pgpkHAoF2xiD5.pgp
Description: PGP signature


CVS domivogt: * New menu option TearOffImmediately.

2004-08-20 Thread FVWM CVS
CVSROOT:/home/cvs/fvwm
Module name:fvwm
Changes by: domivogt04/08/20 04:31:18

Modified files:
.  : ChangeLog NEWS 
fvwm   : fvwm.1.in menus.c menus.h 

Log message:
* New menu option TearOffImmediately.

--
Visit the official FVWM web page at URL:http://www.fvwm.org/.
To unsubscribe from the list, send unsubscribe fvwm-workers in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]


Re: Solaris Xinerama support

2004-08-20 Thread Chris Ross

Dan Espen wrote:

If the #define'd stuff is only used on Solaris, when the header
isn't there, and the library support is there,  I'd say that was
OK.


  Yup.  That's how it's done.  Only if the libXinerama stuff
isn't found will it look for Solaris' calls, and only if those
are found will it look for the header.  If the header is found,
the few lines (to replace the header) I added don't get used.

  The following should be the full diff against CVS HEAD for
this patch.  Thanks for all your help!

 - Chris


Index: configure.in
===
RCS file: /home/cvs/fvwm/fvwm/configure.in,v
retrieving revision 1.294
diff -u -u -r1.294 configure.in
--- configure.in23 May 2004 16:20:23 -  1.294
+++ configure.in20 Aug 2004 13:26:58 -
@@ -298,8 +298,18 @@
   $UNSET ac_cv_lib_Xinerama_XineramaIsActive
   AC_CHECK_LIB(Xinerama, XineramaIsActive,
 with_xinerama=yes; Xinerama_LIBS=-lXinerama; AC_DEFINE(HAVE_XINERAMA),
+AC_CHECK_LIB(Xext, XineramaGetState,
+  [ AC_DEFINE(HAVE_XINERAMA) AC_DEFINE(HAVE_SOLARIS_XINERAMA)
+  with_xinerama=yes; Xinerama_LIBS=-lXext
+  my_CPPFLAGS=$CPPFLAGS; CPPFLAGS=$X_CPPFLAGS $CPPFLAGS
+  my_hdr=X11/extensions/xinerama.h
+  AC_CHECK_HEADER($my_hdr, AC_DEFINE(HAVE_SOLARIS_XINERAMA_H)
+   problem_xinerama= (Using Solaris Xinerama calls),
+   problem_xinerama= (Failed to find Sun's $my_hdr))
+  CPPFLAGS=$my_CPPFLAGS],
 with_xinerama=no; Xinerama_LIBS=
 problem_xinerama=: Failed to detect libXinerama,
+[$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS]),
 [$X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS])
 fi
 AC_SUBST(Xinerama_LIBS)
Index: acconfig.h
===
RCS file: /home/cvs/fvwm/fvwm/acconfig.h,v
retrieving revision 1.72
diff -u -u -r1.72 acconfig.h
--- acconfig.h  8 Jul 2004 10:08:09 -   1.72
+++ acconfig.h  20 Aug 2004 13:26:58 -
@@ -32,6 +32,14 @@
 /* Define if Xinerama library is used. */
 #undef HAVE_XINERAMA
 
+/* Define if Solaris' Xinerama calls are being used. */
+/* (Solaris 7 11/99 and later) */
+#undef HAVE_SOLARIS_XINERAMA
+
+/* Define if Solaris' X11/extensions/xinerama.h header is provided. */
+/* (Solaris 9 and later) */
+#undef HAVE_SOLARIS_XINERAMA_H
+
 /* Define if Xrender library is used. */
 #undef HAVE_XRENDER
 
Index: fvwm/fvwm.c
===
RCS file: /home/cvs/fvwm/fvwm/fvwm/fvwm.c,v
retrieving revision 1.368
diff -u -u -r1.368 fvwm.c
--- fvwm/fvwm.c 15 Jul 2004 13:12:28 -  1.368
+++ fvwm/fvwm.c 20 Aug 2004 13:26:59 -
@@ -1312,6 +1312,9 @@
strcat(support_str,  Bidi text,);
 #endif
 #ifdef HAVE_XINERAMA
+# ifdef HAVE_SOLARIS_XINERAMA
+   strcat(support_str,  [Solaris' odd-ball]);
+# endif
strcat(support_str,  Xinerama,);
 #endif
 #ifdef HAVE_XRENDER
Index: libs/FScreen.c
===
RCS file: /home/cvs/fvwm/fvwm/libs/FScreen.c,v
retrieving revision 1.22
diff -u -u -r1.22 FScreen.c
--- libs/FScreen.c  17 Mar 2004 14:42:54 -  1.22
+++ libs/FScreen.c  20 Aug 2004 13:26:59 -
@@ -69,8 +69,62 @@
 #include PictureBase.h
 
 #ifdef HAVE_XINERAMA
-#define FScreenHaveXinerama 1
-#include X11/extensions/Xinerama.h
+# define FScreenHaveXinerama 1
+# ifdef HAVE_SOLARIS_XINERAMA
+#  ifdef HAVE_SOLARIS_XINERAMA_H
+#   include X11/extensions/xinerama.h
+#  else
+/* Copied from Solaris 9's X11/extensions/xinerama.h */
+#defineMAXFRAMEBUFFERS 16
+Bool XineramaGetState(Display*, int);
+Status XineramaGetInfo(Display*, int, XRectangle*, unsigned char*, int*);
+Status XineramaGetCenterHint(Display*, int, int*, int*);
+#  endif /* HAVE_SOLARIS_XINERAMA_H */
+typedef struct
+{
+   int   screen_number;
+   short x_org;
+   short y_org;
+   short width;
+   short height;
+} XineramaScreenInfo;
+#  define XineramaIsActive(d)  XineramaGetState((d),0)
+#  define XineramaQueryScreens(d,b)solaris_XineramaQueryScreens((d),(b))
+#  define XineramaQueryExtension(d,b,c)1   /* Lie, for now */
+static XineramaScreenInfo *
+solaris_XineramaQueryScreens(Display *d, int *xin_nscreens)
+{
+   XineramaScreenInfo *screens = NULL;
+   XRectangle monitors[MAXFRAMEBUFFERS];
+   unsigned char hints[16];
+
+   int result = XineramaGetInfo(d, DefaultScreen(d), monitors, hints,
+xin_nscreens);
+   if (result)
+   {
+   int m;
+
+   screens = (XineramaScreenInfo 
*)malloc(sizeof(XineramaScreenInfo) * (*xin_nscreens));
+   for (m = 0; m  *xin_nscreens; ++m)
+   {
+   screens[m].screen_number = m;
+   screens[m].x_org = monitors[m].x;
+   screens[m].y_org = monitors[m].y;
+   

Re: Flocale text width problem [Was: Notification: incoming/1397]

2004-08-20 Thread Marcus Lundblad



On Mon, 16 Aug 2004, Dominik Vogt wrote:


On Sun, Aug 15, 2004 at 10:48:13AM -0500, fvwm-bug wrote:

 my MenuStyle is

 MenuStyle   Black grey SlateGrey
 -*-helvetica-medium-o-*-*-12-*-*-*-*-*-*-* mwm

 if the last character of a menu entry is for example an l or an
 R, the upper right part of the glyph is not displayed, as if the
 width of the text would be measured at the base line and the slant
 causes the characters to go outside this box, the outside parts are
 not displayed.  When i highlight the entry with the mouse, the
 missing part is drawn and stays this way (until the menu vanishes).


I pinned down the problem, but have no fix.  In Flocale.c, the
function XmbTextEscapement is used to get the width of a string.
It returns the offset from the start of the string where the next
character would be printed, but for slanted fonts that is not the
width of the bounding box:

normal font:

 |
 |
 |
 |
 |
   ^
   |
 start of next character, width = 1

slanted font:

 /
/ ^
   /  |___ width of bounding box = 5
  /
 /
   ^
   |
 start of next character, width = 1

Any idea what we can do about it?



Is there some property of the font telling how much slated it is? (in 
radians, or so... :-) )


And then, there's also xft to take care of. Or perhaps the corresponding 
xft functions compensate for this? It was a while since I messed with that 
code. But I could do some research in the matter...


//Marcus


Ciao

Dominik ^_^  ^_^

--
Dominik Vogt, [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]


--
Visit the official FVWM web page at URL:http://www.fvwm.org/.
To unsubscribe from the list, send unsubscribe fvwm-workers in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]


Notification: incoming/1405

2004-08-20 Thread fvwm-bug
FVWM Bug Tracking notification

new message incoming/1405

Message summary for PR#1405
From: [EMAIL PROTECTED]
Subject: tear of menu bug
Date: Fri, 20 Aug 2004 12:58:21 -0500
0 replies   0 followups

 ORIGINAL MESSAGE FOLLOWS 

From [EMAIL PROTECTED] Fri Aug 20 12:58:23 2004
Received: from util7.math.uh.edu ([129.7.128.5])
by util2.math.uh.edu with esmtp (Exim 4.30)
id 1ByDeh-0006bB-HU
for [EMAIL PROTECTED]; Fri, 20 Aug 2004 12:58:23 -0500
Received: from localhost (util7.math.uh.edu [127.0.0.1])
by util7.math.uh.edu (8.12.11/8.12.5) with ESMTP id i7KHwL7A000650
for [EMAIL PROTECTED]; Fri, 20 Aug 2004 12:58:22 -0500
Date: Fri, 20 Aug 2004 12:58:21 -0500
Message-Id: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: tear of menu bug

Full_Name: Norbert Pil
Version: 2.5.10
CVS_Date: 
OS: gentoo 2004.2
X_Server: 
Submission from: (NULL) (80.126.236.113)


I used backspace to tear of a menu, if i click a application in this menu
it doesn't get launched, moving the mouse pointer away from the menu, it
get's launched.



--
Visit the official FVWM web page at URL:http://www.fvwm.org/.
To unsubscribe from the list, send unsubscribe fvwm-workers in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]