message queue.
Mwextwm enables an external wm. But it has some problem in
synchronization between X and Windows. Bug fix or redesign is needed.
zakki
--
Kensuke Matsuzaki
mailto:[EMAIL PROTECTED]
http://peppermint.jp
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem
Hi,
(B
(BI received bug report that XWin fail to copy CJK text from X to Windows
(Bin zh_CN.gbk locale. I found XmbTextListToTextProperty and
(BXmbTextPropertyToTextList can't convert GBK text - Compound text.
(BDoes anyone know why?
(B
(B
(BOn a separate note, hw/xwin/Imakefile
(B#if
Imakefile, imake adds -DX_LOCALE.
I can find vi_VN.tcvn and vi_VN.viscii in xc/nls, but not find
vi_VN.UTF-8 though. I don't know about Vietnamese locale well,
but maybe someone have to write vi_VN.UTF-8.
zakki.
--
Kensuke Matsuzaki
mailto:[EMAIL PROTECTED]
http://peppermint.jp
[EMAIL PROTECTED] wrote:
(B I tried setting the LANG environment variable, but I still get the same
(B results. I set it in the startxwin.bat file that I use to start XWin. Is
(B this the correct way to do it?
(B
(B The command I used was:
(B set LANG=C XWin
(B which strips off the so
[EMAIL PROTECTED] wrote:
(B I do have the /usr/X11R6/lib/locale directory, but it's empty. Should it be,
(B or should it have something in it?
(B
(B Also the XLOCALEDIR env variable is not set.
(B
on a different machine, but I now am trying to set
up the Cygwin/X on a new machine. My XWin.log file is below.
What is LANG environment variable?
What happen if you run XWin like this.
$LANG=C XWin
bye
--
Kensuke Matsuzaki
mailto:[EMAIL PROTECTED]
http://peppermint.jp
If you want to know X window system documents, there are links.
http://x.cygwin.com/devel/
--
Kensuke Matsuzaki
mailto:[EMAIL PROTECTED]
http://peppermint.jp
Hi.
In Xserver/Imakefile, you will find following line.
XWINW32 = -lgdi32 -lwsock32 $(XWINGL32) $(PTHREADLIB)
Add -lmsimg32. And make Makefile make Makefiles.
Bye
Kensuke Matsuzaki
2. Another language support.
(B
(BBy the way, languages which need IME to input are only
(Bja_JP, ko_KR, zh_CN, zh_HK, zh_SG and zh_TW?
(BI tested ko_KR and zh_TW, and it seems OK. But I can't
(Bunderstand both languages, so I don't know it's usable
(Bor not.
(B--
(BKensuke Matsuzaki
.
--
Kensuke Matsuzaki
mailto:[EMAIL PROTECTED]
http://peppermint.jp
|
| | |-|
| | | |
I forgot to add IM server to archive.
http://peppermint.jp/products/asis/xime-20050104-1109.tar.bz2
--
Kensuke Matsuzaki
mailto:[EMAIL PROTECTED]
http://peppermint.jp
-0223.tar.bz2
http://peppermint.jp/image/2005_01_01.png
--
Kensuke Matsuzaki
mailto:[EMAIL PROTECTED]
http://peppermint.jp
.
Any idea?
--
Kensuke Matsuzaki
mailto:[EMAIL PROTECTED]
http://peppermint.jp
Also a bug list at https://bugs.freedesktop.org/
zakki
.
*/
winReorderWindowsMultiWindow ();
I can't remember in detail, but someone did that to fix some problem.
zakki
--
Kensuke Matsuzaki
mailto:[EMAIL PROTECTED]
http://peppermint.jp
/X performance.
What do you think?
zakki
--
Kensuke Matsuzaki
mailto:[EMAIL PROTECTED]
http://peppermint.jp
Cygwin does have unix domain sockets. They're probably not very fast,
though.
Sorry, you are right. But cygwin_socket uses inet to emulate.
It always call socket(AF_INET, ...).
I don't know well where are bottlenecks, whether transport
is fast enough or not.
zakki
.
--
Kensuke Matsuzaki
mailto:[EMAIL PROTECTED]
http://peppermint.jp
Hi,
When I'm using -rootless or -internalwm, X's window looks like it is active
even if XWin isn't active. It's confusing. So I'm tring to fix that.
With openbox, metacity and xfwm4, this patch works well.
But don't coorperate with wmaker, twm, fvwm etc.
Any idea?
Kenuke Matsuzaki
--
Kensuke
Hi,
It's very interesting.
I'm testing my patch that replaces cygwin BSD socket functions with
winsock2 API. And that tends to improves x11perf about score 5%-150%.
http://peppermint.jp/temp/winsockx-20041110-0117.diff
But yours seems to be much better. I'll look at it.
--
Kensuke Matsuzaki
that I added defined(__CYGWIN__) to use
miext/rootless.
http://freedesktop.org/cgi-bin/viewcvs.cgi/xc/programs/Xserver/fb/fb.h?r1=1.1.4.1root=xorgsortby=dater2=1.1.4.1.2.1only_with_tag=CYGWIN
Thank you.
--
Kensuke Matsuzaki
mailto:[EMAIL PROTECTED]
http://peppermint.jp
to clean-up, debug and test more. But I want to know direction
of this patch before. How do you think?
1. Add -internalwm option? (more better naming?)
2. Replace -rootless and -multiwindow with this.
or something else.
--
Kensuke Matsuzaki
mailto:[EMAIL PROTECTED]
http://peppermint.jp
internalwm
If you don't need full Cygwin and latest version, coLinux people
create minimum package. I don't use this, and I don't know well.
Maybe it is worth looking at.
http://www.colinux.org/wiki/index.php/XCoLinux
http://www.digitalfire.co.za/index.php?page=18
--
Kensuke Matsuzaki
mailto:[EMAIL
Hi,
-clipboard uses pthread, and that causes many many SEGV too.
(gdb) handle SIGSEGV nostop noprint
doesn't let gdb stop and print SEGV.
But I'm using bit dirty workaround to ignore only IsBadWritePtr.
--
Kensuke Matsuzaki
mailto:[EMAIL PROTECTED]
http://peppermint.jp
segv.diff
Description
Hi,
This patch will fix that problem.
BTW, should I commit to CYGWIN branch or trunk?
Kensuke Matsuzaki
mailto:[EMAIL PROTECTED]
http://peppermint.jp
clipboard.diff
Description: Binary data
Jerry and Jesper,
Is /tmp binmode or textmode?
How about mount -b c:/cygwin/tmp /tmp?
Kensuke Matsuzaki
.dion.ne.jp/~sawanaka/peace/
Screenshot of 'Mine Sweeper' on X
http://www.d1.dion.ne.jp/~sawanaka/peace/winmine.jpg
It has not been update since March 16, 2003.
Kensuke Matsuzaki
Hi,
Because of several reasons, overridden window become active.
This patch fixs that. But this confuses order of top most windows.
zakki
--
Kensuke Matsuzaki
mailto:[EMAIL PROTECTED]
http://peppermint.jp
x.diff
Description: Binary data
error and GDI leaks.
MWExtWM's windows cursor and sizing/moving window improvement may
be able to apply to multiwindow mode.
Kensuke Matsuzaki
--
Kensuke Matsuzaki
mailto:[EMAIL PROTECTED]
http://peppermint.jp
Dave,
New package xwinwm-0.0.5 can understand some MWM hint and EWMH, so it
can hide window manager decorations. But it's experimental and
unstable.
Kensuke Matsuzaki
--
Kensuke Matsuzaki
mailto:[EMAIL PROTECTED]
http://peppermint.jp
Øyvind,
xwinclip and -clipboard don't support INCR. Someone need to write INCR related code.
http://www.cygwin.com/ml/cygwin-xfree/2003-10/msg00065.html
--
Kensuke Matsuzaki
mailto:[EMAIL PROTECTED]
http://peppermint.jp
Hi,
If you are using -rootless, please use -pseudorootless instead of -rootless.
-rootless means new rootless that uses miext/rootless.
--
Kensuke Matsuzaki
mailto:[EMAIL PROTECTED]
http://peppermint.jp
/Xutf8TextPropertyToTextList
convert Compound text to UTF-8.
Could you send Norwegian mail to me? I want to test using evelution.
--
Kensuke Matsuzaki
mailto:[EMAIL PROTECTED]
http://peppermint.jp
Øyvind,
Now I can reproduce your problem.
Maybe you use
$ LANG=C evolution
So run evulution in Norwegian locale, no problem.
$ LANG=no_NO evolution
--
Kensuke Matsuzaki
mailto:[EMAIL PROTECTED]
http://peppermint.jp
Walter and Harold,
FormatMessage translates.
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT)
should be
MAKELANGID(LANG_ENGLISH,SUBLANG_ENGLISH_US)
by the thought of sending log. I thought it is better for user to read.
--
Kensuke Matsuzaki
mailto:[EMAIL PROTECTED]
http://peppermint.jp
How about LANG=no_NO.UTF-8 ?
--
Kensuke Matsuzaki
mailto:[EMAIL PROTECTED]
http://peppermint.jp
).
With -nounicodeclipboard, unicode apps fail. And without it, non-unicode apps
fail.
--
Kensuke Matsuzaki
mailto:[EMAIL PROTECTED]
http://peppermint.jp
, and other version
XWin have same problem.
Maybe no problem with -nounicodeclipboard option.
--
Kensuke Matsuzaki
mailto:[EMAIL PROTECTED]
http://peppermint.jp
going to release the solution to problem #1 in
the mean time. I am not sure that we will ever deem it worth the time
and effort to solve problem #2.
--
Kensuke Matsuzaki
mailto:[EMAIL PROTECTED]
http://peppermint.jp
, Unicode and
locale encoding. lib/X11/lc*.c contain those code. Maybe some part of
those conversion can be done by iconv. But as far as I know, gnu
libiconv doesn't supprot compound text.
--
Kensuke Matsuzaki
mailto:[EMAIL PROTECTED]
http://peppermint.jp
now EWMH
compliance's priority is not high for me.
Test version is here.
http://peppermint.jp/products/x/xwinwm-0.0.1.tar.gz
--
Kensuke Matsuzaki
mailto:[EMAIL PROTECTED]
http://peppermint.jp
Hello,
BTW, do you know good book on X protocol and Xlib?
I have some book on KDE and Qt, but I can't find book about low-level X.
--
Kensuke Matsuzaki
mailto:[EMAIL PROTECTED]
http://peppermint.jp
need to
This is a windows functionality. But you might suppress that by starting xwin
minimized (maybe cygstart does this)
Kensuke Matsuzaki
mailto:[EMAIL PROTECTED]
http://peppermint.jp
x.diff
Description: Binary data
Alexander,
It seems like new rootless code were partly overwritten by old code,
and Neither New and old rootless mode does't work.
Kensuke Matsuzaki
Hi,
How about using xwinclip insted of -clipboard?
This patch is backport that fix crash with large text,
enable non-ascii copy and paste, and add -nounicodeclipboard.
Kensuke Matsuzaki
xwinclip.diff.bz2
Description: Binary data
Harold,
The old rootless mode is replaced new rootless mode which use generic
rootless library.
And a problem that redrawing fails after window resizing is fixed.
Kensuke Matsuzaki
win32rootless-20031022-1414.patch.bz2
Description: Binary data
Harold,
Okay, I got it to build and run. It is very nice.
Good.
What you think about renaming old '-rootless'to '-oldrootless' and
calling the new '-win32rootless' just '-rootess'?
I think that's good, and acutually I wont to do so.
Kensuke Matsuzaki
raise top in Windows but it stay
previous position in X. I don't know how to avoid clicking Windows window raise
window.
Kensuke Matsuzaki
rootless.tar.bz2
Description: Binary data
features. I will read it.
I want someone who is familiar with XDarwin to comment.
By the way, Greg Parker's xroot.c is very useful when I use rootless mode.
http://sealiesoftware.com/
Kensuke Matsuzaki
Imakefile.patch
Description: Binary data
.
char pszCountry[128];
char pszLanguage[128];
int nAcp = GetACP ();
GetLocaleInfo (LOCALE_SYSTEM_DEFAULT, LOCALE_SENGCOUNTRY, pszCountry, 128);
GetLocaleInfo (LOCALE_SYSTEM_DEFAULT, LOCALE_SENGLANGUAGE, pszLanguage, 128);
printf (%s_%s.%d\n, pszLanguage, pszCountry, nAcp);
Kensuke
text to be encoded by
current locale encoding. XmbTextPropertyToTextList's output text is
encoded using current locale encoding.
setlocale set those data, and it look at LC_CTYPE or LANG if second
parameter of setlocale is .
Xutf8* use UTF-8 encoding so they work without LANG/LC_CTYPE.
Kensuke
-0400,
Harold L Hunt II wrote:
Kensuke,
Kensuke Matsuzaki wrote:
And it seems tha libX11 has some CTEXT convertion bug, I attach
patch that based on TAKABE's work.
http://www.ff.iij4u.or.jp/~t-takabe/xf410_xim_fix.diff
Could you send me more information on this? Please describe
characters because of Han Unification.
This patch fix this problem.
For example, I use following command line option on Windows XP.
LANG=ja_JP.eucJP
XWin -clipboard -nounicodeclipboard -winencoding SHIFT_JIS -xencoding EUC-JP
Test on other language environment and 9x platform needed.
Kensuke
that is specified by locale must be same.
So if there were way to get encoding from locale date,it is better.
It seems that nl_langinfo dosen't work. Any other ideas?
Hmm. I will dig deep into this.
Kensuke Matsuzaki
Language German.
If this works on non-Japenese Windows, following code do this
automatically.
LoadKeyboardLayout (0409, KLF_ACTIVATE);
Kensuke Matsuzaki
Harold,
I misunderstod Xutf8TextPropertyToTextList return value and meaning
of iCount. This attached patch will prevent crash.
To transfer large amount of text they use incrementally way called
INCR, so we need to support it to copy/paste large amount of text.
Kensuke Matsuzaki
clipboard.diff
.
I inserted following workaround into end of WM_KEYDOWN handler
if (iScanCode == KEY_CapsLock)
winSendKeyEvent (KEY_CapsLock, FALSE);
then CapsLock work well. But perhaps it is not smart.
Does anyone know good solution?
Kensuke Matsuzaki
I can't reproduce that bug.
Please send /tmp/XWin.log
Kensuke Matsuzaki
vlad,
Run XWin with -multiplemonitors option.
Kensuke Matsuzaki
James,
Please read follow mail.
http://sources.redhat.com/ml/cygwin-xfree/2003-05/msg00197.html
Kensuke Matsuzaki
XWin set window title when that window is shown,
and never update.
So -T option works, PROMPT_COMMAND doesn't work.
Kensuke Matsuzaki
Gerard,
I do indeed use Alt-Tab to switch windows, with mwm I was/am using
ctrl-tab.
Don't start window manager.
Multiwindow mode X server contains window manager.
The log contains hundredths of winOrderWindowsMultiWindow lines.
Sorry, I made a mistake. It must be #ifdef out.
Kensuke
.
Kensuke Matsuzaki
Harold,
Yes, that's correct.
Kensuke Matsuzaki
Hi,
It seems that _Xsetlocale is not re-entrant.
And I think we need to call _Xsetlocale once for each process, not each thread.
Kensuke Matsuzaki
Harold,
It seems that
http://sources.redhat.com/ml/cygwin/2001-12/msg00395.html
is related to the second problem.
Kensuke Matsuzaki
Geert,
Multiwindow mode connects X server as X client.
So XDMCP does'nt work.
Kensuke Matsuzaki
Harold,
My previous patch is for menu problem, not segv.
It sends ConfigureNotify event for clients when window move.
Kensuke Matsuzaki
Harold,
I see.
Sorry, I can't find what makes segv yet.
Kensuke Matsuzaki
In multiwindow mode, don't start window manager.
We must write code that behave as window manager, but I have not
done yet.
By the way, I made X Server move/resize window, instead of window
manager. But changing z-order of window is still in X client side,
that will cause problems.
Kensuke
J S,
It is reply for Yadin.
I am checking code, but I have not understood what cause seg fault.
Please wait.
Kensuke Matsuzaki
J S,
It seems that XWin.exe released by Harold doesn't print messages like
10104218:winCreateWindowMultiWindow.
Did you compile it your self?
Kensuke Matsuzaki
Hi,
This is patch for that problem.
Kensuke Matsuzaki
--- ./winmultiwindowwindow.c2003-01-12 12:36:45.0 +0900
+++ ../old/winmultiwindowwindow.c 2003-01-14 10:59:18.0 +0900
@@ -17,6 +17,9 @@
static XID
winGetWindowID(WindowPtr pWin);
+static void
Harold,
I wraped debug code with #if CYGMULTIWINDOW_DEBUG out, and defined
CYGMULTIWINDOW_DEBUG in winwindow.h.
Kensuke Matsuzaki
multiwindow.tar.bz2
Description: Binary data
, it waits a minutes to ignores continuously message
and only processes move to point B when it receive WM_MOVE.
Kensuke Matsuzaki
multiwindow.tar.bz2
Description: Binary data
and the window manager.
Kensuke Matsuzaki
rootless.patch.bz2
Description: Binary data
to winMapWindowPRootless/winUnmapWindowPRootless.
Kensuke Matsuzaki
77 matches
Mail list logo