Cygwin/Xfree on second (low res) monitor
Saul Cozens
saul@thecozens.co.uk
Thu Mar 18 23:00:00 GMT 2004
Unfortunately anoncvs.xfree86.org is unreachable at the moment, so I got
an original copy of wincreatewnd.c and did a manual diff:
$ diff wincreatewnd.c wincreatewnd.c.orig
255,256c255,256
< //iWidth = GetSystemMetrics (SM_CXSCREEN);
< //iHeight = GetSystemMetrics (SM_CYSCREEN);
---
> iWidth = GetSystemMetrics (SM_CXSCREEN);
> iHeight = GetSystemMetrics (SM_CYSCREEN);
as you said- I got the line numbers wrong - I've must've been tinkering
elsewhere. Anyway, I can start this up with:
XWin.exe -query <linuxbox> -screen 0 1024 768 -rootless -lesspointer
-clipboard
and I do get a 1024x768 borderless window (on my 1280x1024 monitor-1) ,
which I can then move to monitor-2 using the Matrox PowerDesk hotkey for
'swap Active Window'.
I'm now seeing if I can add an [-offset <left> <top>] command line
option to save me that hotkey press!
any guidance appreciated,
Saul
Harold L Hunt II wrote:
> Saul,
>
> Saul Cozens wrote:
>
>> In the abscense of anyone shouting 'nooooooo - you fool!' I
>> commented out lines 244, 245 of wincreatewnd.c and recompiled.
>
>
> I like people compiling the source themselves and fixing their own
> problems. Thanks for this :)
>
> However, it would be useful if you sent in a diff so that we knew sort
> of what you were talking about and could maybe offer some tips. I
> guess you got the code from CVS, in which case you could:
>
> cd programs/Xserver/hw/xwin
> cvs -z3 diff -u wincreatewnd.c > wincreatewnd.c.diff
>
> If you got it from the src packages via setup.exe, then you would have
> to untar the original source and do something like the following:
>
> cd /usr/src
> diff xc-orig/programs/Xserver/hw/xwin/wincreatewnd.c \
> xc/programs/Xserver/hw/xwin/wincreatewnd.c \
> > wincreatewnd.c.diff
>
>> I was shocked and surprised to find that the hack worked. I'm now
>> going to familiarise myself with the code a bit more before
>> suggesting how this feature could be implemented better. Any hints
>> on why the lines are there in the first place would still be
>> appreciated.
>
>
> I'm not sure why it works since I don't know what you changed. :) I
> looked and saw comments at 244 and 245.
>
> Harold
More information about the Cygwin-xfree
mailing list