Re: x-windows opening up too large

2002-08-08 Thread J S

Thanks Thomas,

I'll try your ideas out tomorrow when I goto work but I just wanted to say 
that the geometry flag is fine for the main application window running, it's 
the windows that pop up from that which I don't seem to have any control 
over.

But running the window manager on the remote machine sounds like a good idea 
- I'll give that a go, but surely that will be slower won't it?

>
>Usage of the -geometry flag looks like the following:
>
>xterm -geometry 80x35+100+100
>
>This creates an xterm which is 80 columns wide and 35 rows tall positioned 
>100 pixels down from the top edge and 100 in from the left edge of the 
>screen.
>
>One thing you can do is manually size and position the client window the 
>way you like it, then run "xwininfo".  It will give you the corresponding 
>-geometry value to use in the future.
>
>>From: Staf Verhaegen <[EMAIL PROTECTED]>
>>Reply-To: [EMAIL PROTECTED]
>>To: [EMAIL PROTECTED]
>>Subject: Re: x-windows opening up too large
>>Date: Thu, 08 Aug 2002 13:33:10 +0200
>>
>>J S wrote:
>> >
>> > Are there any options I can put in the .Xresources file which will 
>>constrain
>> > the windows within the screen?
>>
>>X programs that conform to the X standard calling convention support a
>>-geometry option that allows to define the size and the placement of the 
>>top
>>level window to create. The format should be available when typing 'man X' 
>>and
>>look for GEOMETRY SPECIFICATION.
>>
>>Staf.
>
>
>
>
>_
>Join the world’s largest e-mail service with MSN Hotmail. 
>http://www.hotmail.com




_
Send and receive Hotmail on your mobile device: http://mobile.msn.com




How to disable mouse wheel (buttons)

2002-08-08 Thread Konstantin N. Kudin

 Hi everybody

 I am trying to disable a mouse wheel under cygwin/xfree and can't find
anything anywhere on how to do that. Basically, the wheel acts like
buttons 2, 4, and 5. Scrolling the wheel is translated into buttons 4 and
5, and that crashes one of my applications. I would like to simply disable
that under cygwin/xfree and keep it elsewhere (under Windows).  However,
there seem to be no file XF86config anywhere which could be used to set
the number of buttons to 3.

 Any help is appreciated.

 Thanks!

 Regards,
 Konstantin Kudin





Re: Easy command to launch remote desktop on cygwin-xfree?

2002-08-08 Thread ratmice

CRAIG SETERA wrote:
> I've already tried all of the different HOWTO's to try and get XDM going 
> without any success.  That was why I was hoping someone could give me a 
> command or two to get it going via SSH forwarding.
> 
> Thanks,
> Craig
> 

just hacked this out... it isn't ideal and requires... modification of 
the source...
it's based off an old x example xxterm.c, which was in the kdevelop examples

modify the machines at the beginning to your network
gcc -I/usr/X11R6/include -L/usr/X11R6/lib -o sxterm sxterm.c -lX11

./xsterm

it has 2 arguments, username and remote_command
if you want to run things w/ 2 different usernames you might fix it..
or run xsterm twice :)

oh my
command line parsing is badness, and if you want to use option 2, you 
should also provide option 1
ie this works for me
xsterm matt /usr/X11R6/bin/xeyes


/***
 * Purpose: To provide a tool that allows people to login to machines.
 *
 * Compile: Edit BUTTONS- Number of machines.
 *  Edit XTERM  - Location of the xterm command.
 *  Edit 'machines' - Names of the machines.
 *
 *  Compile command for Linux and Sun
 *
 *  gcc xxterm.c -o xxterm -lX11
 * User notes:
 *  This is only of use to people running UNIX boxes on a LAN.
 *
 * History: 
 *
 * Rev Date  Author Comments.
 * ---   -- -
 * 1.0 30-May-95 MJLInital Release.
 */
/** Includes /
/* These are in /usr/X386   */
#include 
#include 
#include 
#include 
#include 
#include  /* setuid   */

/** Defines */

#define  BUTTONS  7 /* <--- number of machines. */

/* V--- Location of the xterm comnd */
#define  XTERM  "xterm -sb -e ssh"

/* window background colour */
#define  BACKGROUND_COLOUR  "light grey"
#define  BUTTON_COLOUR  "blue"  

#define  DOWN   "down"
#define  ACTIVE "active"
/** Global Variables /
int has_user_name = 0;
int has_remote_command = 0;
char *user_name = "matt";
char *remote_command = "";
Display *display;
int  screen;
Colormap colormap;

/* < Machines you want to access */
char * machines[] = {
"foo",
"bar",
"baz",
"blah",
"bah",
"humbug",
"boo"
};
char * commands[] = 
{
   "xterm -sb -e ssh" 
};
/** Structures **/
/* Hold the co-ordinates of the buttons */
struct {
XPoint topleft;
XPoint topright;
XPoint botleft;
XPoint botright;
   } buttons[BUTTONS+1];


struct window_info
  {
  Window win;
  GC gc;
  };

/** Functions ***/

void init_buttons(char *button_caps[]);

void draw_image (Window, GC *, char *button_caps[]);

int  draw_button 
(Window,
 GC *gc, 
 char *text,/* Text to put on screen button cap */
 int x, int y,  /* Position of button in window */
 int width, int height, 
 int,
 char button_caps[]);
/* Change the colour in the graphics
 * context. 
 */ 
void set_colour (GC *gc, char *, Colormap);

int  where_am_i (Window, GC *gc);

/* Take an action based on the 
 * button ID.
 */
int process_button
(Window win, 
 GC *gc, 
 char *button_caps[], 
 int button);   /* Button ID.   */

void press_button 
(Window, 
 GC *gc, 
 char *button_caps[], 
 char *text );

struct window_info create_window
(int x, /* Window size  */
 int y);

/* Execute system commands  */
void execute_command
(int root,  /* 1 == must be run by root
 * 0 == Can be run by anyone*/
 char *command, /* Command  */
 char *machine);

//

int main(int argc, char **argv)
   {

  unsigned int width;
  unsigned int height;  /* Size of the window.  */
   int  x=0, y=0;   /* x is across, y is down!  */
   unsigned int border_width=4; /* Window border.  */

/* Array of pointers, one for each screen
 * button, they point to a string constant
 * describing their status, active, down,
 * inactive
 */
   char *button_caps[BUTTONS+1];

   struct window_info window;

   Window   win;
   GC   gc;
   XEvent   report;
   XFontStruct *font_info;
   XColor   colour;

   char *   display_name=NULL;

   /*

Re: Easy command to launch remote desktop on cygwin-xfree?

2002-08-08 Thread ratmice

CRAIG SETERA wrote:
> I've already tried all of the different HOWTO's to try and get XDM going 
> without any success.  That was why I was hoping someone could give me a 
> command or two to get it going via SSH forwarding.
> 
> Thanks,
> Craig
> 

just hacked this out... it isn't ideal and requires... modification of 
the source...
it's based off an old x example xxterm.c, which was in the kdevelop 
examples

modify the machines at the beginning to your network
gcc -I/usr/X11R6/include -L/usr/X11R6/lib -o xsterm xsterm.c

./xsterm

it has 2 optional arguments, username and remote_command
if you want to run things w/ 2 different usernames you might fix it..
or run xsterm twice :)






/***
 * Purpose: To provide a tool that allows people to login to machines.
 *
 * Compile: Edit BUTTONS- Number of machines.
 *  Edit XTERM  - Location of the xterm command.
 *  Edit 'machines' - Names of the machines.
 *
 *  Compile command for Linux and Sun
 *
 *  gcc xxterm.c -o xxterm -lX11
 * User notes:
 *  This is only of use to people running UNIX boxes on a LAN.
 *
 * History: 
 *
 * Rev Date  Author Comments.
 * ---   -- -
 * 1.0 30-May-95 MJLInital Release.
 */
/** Includes /
/* These are in /usr/X386   */
#include 
#include 
#include 
#include 
#include 
#include  /* setuid   */

/** Defines */

#define  BUTTONS  7 /* <--- number of machines. */

/* V--- Location of the xterm comnd */
#define  XTERM  "xterm -sb -e ssh"

/* window background colour */
#define  BACKGROUND_COLOUR  "light grey"
#define  BUTTON_COLOUR  "blue"  

#define  DOWN   "down"
#define  ACTIVE "active"
/** Global Variables /
int has_user_name = 0;
int has_remote_command = 0;
char *user_name = "matt";
char *remote_command = "";
Display *display;
int  screen;
Colormap colormap;

/* < Machines you want to access */
char * machines[] = {
"foo",
"bar",
"baz",
"blah",
"bah",
"humbug",
"boo"
};
char * commands[] = 
{
   "xterm -sb -e ssh" 
};
/** Structures **/
/* Hold the co-ordinates of the buttons */
struct {
XPoint topleft;
XPoint topright;
XPoint botleft;
XPoint botright;
   } buttons[BUTTONS+1];


struct window_info
  {
  Window win;
  GC gc;
  };

/** Functions ***/

void init_buttons(char *button_caps[]);

void draw_image (Window, GC *, char *button_caps[]);

int  draw_button 
(Window,
 GC *gc, 
 char *text,/* Text to put on screen button cap */
 int x, int y,  /* Position of button in window */
 int width, int height, 
 int,
 char button_caps[]);
/* Change the colour in the graphics
 * context. 
 */ 
void set_colour (GC *gc, char *, Colormap);

int  where_am_i (Window, GC *gc);

/* Take an action based on the 
 * button ID.
 */
int process_button
(Window win, 
 GC *gc, 
 char *button_caps[], 
 int button);   /* Button ID.   */

void press_button 
(Window, 
 GC *gc, 
 char *button_caps[], 
 char *text );

struct window_info create_window
(int x, /* Window size  */
 int y);

/* Execute system commands  */
void execute_command
(int root,  /* 1 == must be run by root
 * 0 == Can be run by anyone*/
 char *command, /* Command  */
 char *machine);

//

int main(int argc, char **argv)
   {

  unsigned int width;
  unsigned int height;  /* Size of the window.  */
   int  x=0, y=0;   /* x is across, y is down!  */
   unsigned int border_width=4; /* Window border.  */

/* Array of pointers, one for each screen
 * button, they point to a string constant
 * describing their status, active, down,
 * inactive
 */
   char *button_caps[BUTTONS+1];

   struct window_info window;

   Window   win;
   GC   gc;
   XEvent   report;
   XFontStruct *font_info;
   XColor   colour;

   char *   display_name=NULL;

   /*
*
*   Setup the window environment 
*
*/
if (argc >=2) {
  if (strcmp

some question

2002-08-08 Thread pantao

hi, all

I am trying to use cygwin/xfree and have some question:

1) It seems that xhost doesn't persist save the result. While I set  up some
access control, It seems the setting is not effective when X server start up
next time. Is it so?

2) While I use xwin -broadcast to start a broadcast XDMCP session, there is
no server list pop up, xwin dirrectly connect to a sco unixware server, why
is
it so? If I use other X server, there are a list of servers.

thanks,
PanTao










Re: How to disable mouse wheel (buttons)

2002-08-08 Thread Harold L Hunt II

Konstantin,

Congratulations, you are the first person to ever request that the mouse 
wheel support be turned off.  :)

We have not yet had a request for such a feature.  I will add this to 
the to-do list.

Jehan, you want to work on this one?

Harold

Konstantin N. Kudin wrote:

> Hi everybody
>
> I am trying to disable a mouse wheel under cygwin/xfree and can't find
>anything anywhere on how to do that. Basically, the wheel acts like
>buttons 2, 4, and 5. Scrolling the wheel is translated into buttons 4 and
>5, and that crashes one of my applications. I would like to simply disable
>that under cygwin/xfree and keep it elsewhere (under Windows).  However,
>there seem to be no file XF86config anywhere which could be used to set
>the number of buttons to 3.
>
> Any help is appreciated.
>
> Thanks!
>
> Regards,
> Konstantin Kudin
>
>
>  
>




Re: mozilla/netscape die when on a shockwave enabled web site

2002-08-08 Thread Tom Bozack

Dean

I have the same problem.  It occurs using both cygwin/XFree86 and 
Linux/XFree86 to access the server.  This indicates that it's either a 
problem inherent to XFree86 (not just the cygwin port) or more likely is 
a Mozilla/Netscape/Shockwave problem.  Either way, it's really anoying 
and I hope someone tracks it down and fixes it.

Tom

Bishop, Dean wrote:
> Good morning,
> 
>   i have been running into a bit of a problem in that whenever i visit a web
> site that has shockwave content, the browser just dies a quiet death.  This
> same site works fine when i use the machine locally.
>   this occurs in both mozilla and netscape (various versions).
>   i tried removing the shockwave plugin and the browsers didn't die anymore,
> but i also, obviously, did not get the full content of the web sites.
> 
>   Any thoughts on how to rectify this?
> 
> thanks in advance,
> dean
> 






startxwin.bat and PATH

2002-08-08 Thread Sylvain Petreolle

Hi list,

I want to launch X at startup on my WIN NT station at work because I
use many unix machines.

This way I set a windows shortcut to startxwin.bat and the server
starts.

But PATH isn't set correct, as startxwin.bat only defines
/usr/X11R6/bin and /bin (and normal windows %PATH%)

I suggest this (changed this on my machine whithout problems):
 add "-i -l" to the xterm line to set the shell interactive and login
shell.

REM Startup an xterm, using bash as the shell.
run xterm -sl 1000 -sb -rightbar -ms red -fg yellow -bg black -e
/usr/bin/bash -i -l



___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com



Problem with XFree86-xserv-4.2.0-12

2002-08-08 Thread gilles civario


Hello.
I've download and install the "Experimental" version XFree86-xserv-4.2.0-12.
And wen I sart XWin with my usual command line :
start /B XWin +kb -xkbmap fr -query mimosa -once -nodecoration -lesspointer
It removes my file /tmp/fr.xkm, and start with us keyboard.
Is it normal ?
I've reinstall the "Current" version 4.2.0-10 and everything is ok.

Gilles