cht電腦資訊gcin已解決問題
adm Find login register

[BUG]視窗位置

guest
1subject: [BUG]視窗位置Promote 0 Bookmark 02009-12-16quote  

在雙螢幕時,輸入框不會在次螢幕出現,而是在主視窗出現。

 情況是這樣 

 <a href=http://img136.picfoco.com/img.php?id=1273367247&q=><img src=http://img136.picfoco.com/thumb/1273367247.jpeg></a>

 

eliu

joined: 2007-08-09
posted: 11478
promoted: 617
bookmarked: 187
新竹, 台灣
2subject: Promote 0 Bookmark 02009-12-16quote  

執行 xdpyinfo 出現的 screen size 為何?

screen #0:
  dimensions:    1280x1024 pixels (433x347 millimeters)

guest
3subject: Promote 0 Bookmark 02009-12-16quote  

 

 

screen #0:

  dimensions:    2304x800 pixels (610x212 millimeters) 

eliu

joined: 2007-08-09
posted: 11478
promoted: 617
bookmarked: 187
新竹, 台灣
4subject: Promote 0 Bookmark 02009-12-16quote  

guest
  dimensions:    2304x800 pixels (610x212 millimeters) 

2304 這是兩個 screen的 width 的總和?

guest
5subject: Promote 0 Bookmark 02009-12-16quote  
我設成延伸桌面
eliu

joined: 2007-08-09
posted: 11478
promoted: 617
bookmarked: 187
新竹, 台灣
6subject: Promote 0 Bookmark 02009-12-16quote  
→個 window可以跨兩個 monitor ?
guest
7subject: Promote 0 Bookmark 02009-12-17quote  

可以直接拉過去

只是視窗放大他會自己判斷是在那個monitor

 我是都把視窗分開放啦

 只要在副螢幕上輸入框就只會在主螢幕上出現

 就和以前opera一樣

不會自動跳位置 

  

eliu

joined: 2007-08-09
posted: 11478
promoted: 617
bookmarked: 187
新竹, 台灣
8subject: Promote 0 Bookmark 02009-12-17quote  

guest

這是說 yes ?

guest
9subject: Promote 0 Bookmark 02009-12-17quote  

是啊

所以有簡單的方法可以解決這個問題嗎

還是說真的是bug?

 

eliu

joined: 2007-08-09
posted: 11478
promoted: 617
bookmarked: 187
新竹, 台灣
10subject: Promote 0 Bookmark 02009-12-17quote  
因為 gcin window 的位置是用應用程式回報的位置。scim or ibus 有沒有試過?
guest
11subject: Promote 0 Bookmark 02009-12-17quote  

ibus可以正常運做

 之前用了ibus一陣子

現在因為gcin的倉頡比較好用才回鍋 

eliu

joined: 2007-08-09
posted: 11478
promoted: 617
bookmarked: 187
新竹, 台灣
12subject: Promote 0 Bookmark 02009-12-17quote  

只好請你 compile debug 用的 gcin 了

gcin-1.4.6.pre17.tar.bz2

tar xvfj gcin*.tar.bz
cd gcin-1.4.6.pre17
./configure
make
./tenv     (執行測試環境,免安裝)

麻煩把顯示的訊息 貼出來,底下是關鍵的訊息

 

display width:1280 height:1024

...
...

move_IC_in_win inpxy:32,12 txy:455,212
move_in_win 455 213
move_IC_in_win inpxy:32,12 txy:455,212
move_in_win 455 213
move_IC_in_win inpxy:32,12 txy:455,212

guest
13subject: Promote 0 Bookmark 02009-12-18quote  

Make 的時候出現這個

 

 -lX11 -L/usr/X11R6/lib

/usr/bin/ld: cannot find -lXtst

collect2: ld returned 1 exit status

make: *** [gcin] Error 1

 
不太會make
 
可以教一下嗎? 
eliu

joined: 2007-08-09
posted: 11478
promoted: 617
bookmarked: 187
新竹, 台灣
14subject: Promote 0 Bookmark 02009-12-18quote  

有可能 libXtst.so 沒有 link ?

 

cd /usr/lib

ln -s  libXtst.so.6.1.0 libXtst.so

guest
15subject: Promote 0 Bookmark 02009-12-19quote  

上面那個error解決了

 又來兩個    make[1]: /usr/lib/qt4/bin/moc: Command not found

make[1]: Entering directory `/home/obarisk/gcin-1.4.6.pre17/data'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/obarisk/gcin-1.4.6.pre17/data'
make -C gtk-im
make[1]: Entering directory `/home/obarisk/gcin-1.4.6.pre17/gtk-im'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/obarisk/gcin-1.4.6.pre17/gtk-im'
 
麻煩你了
 
我會再加油Orz 
eliu

joined: 2007-08-09
posted: 11478
promoted: 617
bookmarked: 187
新竹, 台灣
16subject: Promote 0 Bookmark 02009-12-19quote  
guest
上面那個error解決了

 又來兩個    make[1]: /usr/lib/qt4/bin/moc: Command not found

這個不用管,應該可以測了。

guest
17subject: Promote 0 Bookmark 02009-12-21quote  
display width:2304 height:800

eliu

joined: 2007-08-09
posted: 11478
promoted: 617
bookmarked: 187
新竹, 台灣
18subject: Promote 0 Bookmark 02009-12-21quote  

那底下的在輸入時出現的也請回報

move_IC_in_win inpxy:32,12 txy:455,212

guest
19subject: Promote 0 Bookmark 02009-12-21quote  

可以再說一次嗎

看不太懂怎麼用出上面那行 

eliu

joined: 2007-08-09
posted: 11478
promoted: 617
bookmarked: 187
新竹, 台灣
20subject: Promote 0 Bookmark 02009-12-21quote  

./tenv 應該會開啟 gedit

開啟詞音的 window或其他輸入法,輸入一些字到 gedit 後應該會出現類似的訊息。

guest
21subject: Promote 0 Bookmark 02009-12-22quote  
im_sockfd:4
connection via TCP is disabled
sh: /usr/local/share/gcin/script/gcin-user-setup: not found
before gtk_main
hide_in_win: ic is null
(gcin.test:12217): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_width: assertion `GDK_IS_PIXBUF (pixbuf)' failed

(gcin.test:12217): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_height: assertion `GDK_IS_PIXBUF (pixbuf)' failed
gcin:cannot load file /usr/local/share/icons/gcin/gcin-tray.png
gcin_im_client_set_cursor_location error: 中斷的 pipe
 
 
我在a.txt中無法改變輸入法 
eliu

joined: 2007-08-09
posted: 11478
promoted: 617
bookmarked: 187
新竹, 台灣
22subject: Promote 0 Bookmark 02009-12-22quote  

guest
gcin:cannot load file /usr/local/share/icons/gcin/gcin-tray.png

mkdir -p  /usr/local/share/icons
cd /usr/local/share/icons
cp -a  /usr/local/share/icons/gcin .

guest
23subject: Promote 0 Bookmark 02009-12-22quote  

我發現正常運作了

開機以後要重新啟動gcin

就可以正常輸入了

 

不好意思浪費你的時間

感謝您的幫助

 

我猜問題是出在ubuntu是在登入以後才改變解析度

應該是9.10以後改變登入機制所造成的 

cht電腦資訊gcin已解決問題
adm Find login register
views:50936