Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 12-14-2012, 04:50 AM   #196
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
wmctrl -r "xterm" -b toggle fullscreen

(or is it called "kterm"?) whatever it is called use that.

try above, below, etc...

this isn't a total solution but might at least get you started.

EDIT: ah the link https://www.mobileread.com/forums/sho...d.php?t=194270

Quote:
-r <WIN> -e <MVARG> Resize and move the window around the desktop.
The format of the <MVARG> argument is described below.
-r <WIN> -b <STARG> Change the state of the window. Using this option it's
possible for example to make the window maximized,
minimized or fullscreen. The format of the <STARG>
Quote:
<STARG> Specifies a change to the state of the window
by the means of _NET_WM_STATE request.
This option allows two properties to be changed
simultaneously, specifically to allow both
horizontal and vertical maximization to be
altered together.

The format of the argument is:

(remove|add|toggle),<PROP1>[,<PROP2>]

The EWMH specification defines the
following properties:

modal, sticky, maximized_vert, maximized_horz,
shaded, skip_taskbar, skip_pager, hidden,
fullscreen, above, below
twobob is offline   Reply With Quote
Old 12-14-2012, 05:47 AM   #197
baf
Evangelist
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 404
Karma: 2200000
Join Date: May 2012
Device: kt
Quote:
Originally Posted by R0nd View Post
Thanks, I poked around a bit, and here's what I found: I can launch matchbox-keyboard alone and it's visible on the home screen. But here's the problem: when I run xterm.sh, matchbox-keyboard is obscured by xterm window, which is fullscreen
Well, xterm window should be fullscreen. And matchbox keyboard should be placed on top of it. I don't know why it is placed under xterm.
What does whole windows stack look like?
Code:
xwininfo -root -children
baf is offline   Reply With Quote
Advert
Old 12-14-2012, 05:59 AM   #198
baf
Evangelist
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 404
Karma: 2200000
Join Date: May 2012
Device: kt
Try also with previous version of xterm, before I added rotation support. I remember it was causing some problems, like keyboard hiding under terminal window.
It is here.
Check with both the old matchbox-keyboard binary and the new one I posted above.
baf is offline   Reply With Quote
Old 12-14-2012, 01:35 PM   #199
R0nd
Junior Member
R0nd has become a pillar of the MobileRead communityR0nd has become a pillar of the MobileRead communityR0nd has become a pillar of the MobileRead communityR0nd has become a pillar of the MobileRead communityR0nd has become a pillar of the MobileRead communityR0nd has become a pillar of the MobileRead communityR0nd has become a pillar of the MobileRead communityR0nd has become a pillar of the MobileRead communityR0nd has become a pillar of the MobileRead communityR0nd has become a pillar of the MobileRead communityR0nd has become a pillar of the MobileRead community
 
Posts: 8
Karma: 15842
Join Date: Dec 2012
Device: Kindle Paperwhite
Okay, here we go:

Quote:
Originally Posted by twobob View Post
wmctrl -r "xterm" -b toggle fullscreen
It kinda worked. Both terminal and keyboard are visible, but terminal doesn't get any input.

Quote:
Originally Posted by baf View Post
Try also with previous version of xterm, before I added rotation support. I remember it was causing some problems, like keyboard hiding under terminal window.
It is here.
Check with both the old matchbox-keyboard binary and the new one I posted above.
I tried it (with both new and old matchbox-keyboard) and it didn't make any difference.

Posting the whole window stack (using current version of xterm, not 0.6):
Code:
[root@kindle bin]# xwininfo -root -children

xwininfo: Window id: 0x51 (the root window) (has no name)

  Root window id: 0x51 (the root window) (has no name)
  Parent window id: 0x0 (none)
     26 children:
     0x180000d "L:A_N:application_ID:XTerm_PC:N_O:URL": ("kterm" "XTerm")  758x1024+0+0  +0+0  MapState=IsViewable
     0x1600257 "L:D_N:application_ID:matchbox-keyboard": ()  758x341+0+683  +0+683  MapState=IsViewable
     0x120001a "L:A_N:application_ID:com.lab126.booklet.home_M:false_PC:TS_RC:true_O:U": ()  758x899+0+125  +0+125  MapState=IsViewable
     0xe00003 "L:A_N:application_ID:blankBackground_WS:true": ("pillowd" "Pillowd")  758x1024+0+0  +0+0  MapState=IsViewable
     0xe0005b "L:C_N:titleBar_ID:system": ("pillowd" "Pillowd")  758x37+0+0  +0+0  MapState=IsViewable
     0xe00045 "L:C_N:searchBar_ID:system_SBTH:88_SBPH:88_TAP:search-bar_CMS~E:ss,cr": ("pillowd" "Pillowd")  758x88+0+37  +0+37  MapState=IsViewable
     0x1000003 "L:KB_N:keyboard_DMINSETRIGHT:5_DM:KB_DMINSETLEFT:5_KBS:H_DMINSETTOP:54_LanH:352_PorH:352_DMINSETBOTTOM:5": ("kb" "Kb")  758x352+0+672  +0+672  MapState=IsViewable
     0x120037f "L:D_N:non-centered_ID:com.lab126.booklet.home_M:dismissible_RD:false_FH:F_CD:true_TAC:search-bar_TAB:menu_RC:false_HIDE:background_BS:true": ()  393x538+355+122  +355+122  MapState=IsViewable
     0xe00042 "L:D_N:lightDialog_ID:system_PILLOW:light-dialog_M:dismissible_CD:true_TAC:search-bar_TAB:light_HIDE:background": ("pillowd" "Pillowd")  473x632+250+122  +250+122  MapState=IsViewable
     0xe0003f "L:D_N:pillowAlert_ID:system_PILLOW:simple-alert_M:true_BW:4_HIDE:background": ("pillowd" "Pillowd")  569x311+90+350  +90+350  MapState=IsViewable
     0x140000d "xterm": ("xterm" "XTerm")  484x316+0+0  +0+0  MapState=IsViewable
     0xc0003c "webreader": ("webreader" "Webreader")  1024x1024+0+0  +0+0  MapState=IsViewable
     0xc00021 "webreader": ("webreader" "Webreader")  200x200+0+0  +0+0  MapState=IsViewable
     0xe00048 "L:D_N:searchResults_ID:system_PILLOW:search-results_RC:custom_RCTL:0_RCTR:0_RCBL:16_RCBR:16_BW:2_FH:S_FS:S_CD:true_HIDE:background": ("pillowd" "Pillowd")  200x493+0+0  +0+0  MapState=IsViewable
     0xe00033 "L:D_N:systemMenu_ID:system_PILLOW:system-menu_BW:0_M:dismissible_CD:true_HIDE:background_TAC:search-bar_TAB:menu": ("pillowd" "Pillowd")  323x126+0+0  +0+0  MapState=IsViewable
     0x40001c "L:SS_N:screenSaver_FH:F_ID:blanket-screensaver_FS:F_O:U": ()  758x1024+0+0  +0+0  MapState=IsUnMapped
     0x120007b "L:A_N:application_ID:com.lab126.booklet.reader_M:false_PC:N_RC:true_O:URL_DM:N_S:-2": ()  758x1024+0+0  +0+0  MapState=IsUnMapped
     0x12000a6 "L:A_N:application_ID:com.lab126.booklet.settings_M:false_PC:TS_RC:true_O:U": ()  758x899+0+125  +0+125  MapState=IsUnMapped
     0xc00004 "webreader": ("webreader" "Webreader")  200x200+0+0  +0+0  MapState=IsUnMapped
     0xc00001 "webreader": ("webreader" "Webreader")  10x10+10+10  +10+10  MapState=IsUnMapped
     0xe00070 "pillowd": ()  10x10+-100+-100  +-100+-100  MapState=IsUnMapped
     0xe00016 "pillowd": ("pillowd" "Pillowd")  200x200+0+0  +0+0  MapState=IsUnMapped
     0x1000001 "kb": ("kb" "Kb")  10x10+10+10  +10+10  MapState=IsUnMapped
     0xe00001 "pillowd": ("pillowd" "Pillowd")  10x10+10+10  +10+10  MapState=IsUnMapped
     0x600001 (has no name): ()  1x1+-1+-1  +-1+-1  MapState=IsUnMapped
     0x600000 (has no name): ()  1x1+-1+-1  +-1+-1  MapState=IsUnMapped
R0nd is offline   Reply With Quote
Old 12-15-2012, 12:46 AM   #200
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
would be more help as...

xwininfo -tree -root -children

or even just

xwininfo -tree -root

IIRC there was some issue with focus that baf had handled via the inbuilt layer logic.
I had to fiddle around initially to get the input I expected when not using bafs methods.

Good luck

Last edited by twobob; 12-15-2012 at 12:49 AM.
twobob is offline   Reply With Quote
Advert
Old 12-15-2012, 01:58 AM   #201
R0nd
Junior Member
R0nd has become a pillar of the MobileRead communityR0nd has become a pillar of the MobileRead communityR0nd has become a pillar of the MobileRead communityR0nd has become a pillar of the MobileRead communityR0nd has become a pillar of the MobileRead communityR0nd has become a pillar of the MobileRead communityR0nd has become a pillar of the MobileRead communityR0nd has become a pillar of the MobileRead communityR0nd has become a pillar of the MobileRead communityR0nd has become a pillar of the MobileRead communityR0nd has become a pillar of the MobileRead community
 
Posts: 8
Karma: 15842
Join Date: Dec 2012
Device: Kindle Paperwhite
Quote:
Originally Posted by twobob View Post
would be more help as...

xwininfo -tree -root -children

or even just

xwininfo -tree -root

IIRC there was some issue with focus that baf had handled via the inbuilt layer logic.
I had to fiddle around initially to get the input I expected when not using bafs methods.

Good luck
Frankly I don't have any slightest idea about X layers. Well, here's xwininfo output:
Code:
[root@kindle bin]# xwininfo -root -tree

xwininfo: Window id: 0x51 (the root window) (has no name)

  Root window id: 0x51 (the root window) (has no name)
  Parent window id: 0x0 (none)
     26 children:
     0x180000d "L:A_N:application_ID:XTerm_PC:N_O:URL": ("kterm" "XTerm")  758x1024+0+0  +0+0  MapState=IsViewable
        1 child:
        0x1800011 (has no name): ()  758x1024+0+0  +0+0  MapState=IsViewable
     0x1600257 "L:D_N:application_ID:matchbox-keyboard": ()  758x341+0+683  +0+683  MapState=IsViewable
     0x120001a "L:A_N:application_ID:com.lab126.booklet.home_M:false_PC:TS_RC:true_O:U": ()  758x899+0+125  +0+125  MapState=IsViewable
     0xe00003 "L:A_N:application_ID:blankBackground_WS:true": ("pillowd" "Pillowd")  758x1024+0+0  +0+0  MapState=IsViewable
        1 child:
        0xe00004 (has no name): ()  1x1+-1+-1  +-1+-1  MapState=IsViewable
     0xe0005b "L:C_N:titleBar_ID:system": ("pillowd" "Pillowd")  758x37+0+0  +0+0  MapState=IsViewable
        1 child:
        0xe0005c (has no name): ()  1x1+-1+-1  +-1+-1  MapState=IsViewable
     0xe00045 "L:C_N:searchBar_ID:system_SBTH:88_SBPH:88_TAP:search-bar_CMS~E:ss,cr": ("pillowd" "Pillowd")  758x88+0+37  +0+37  MapState=IsViewable
        1 child:
        0xe00046 (has no name): ()  1x1+-1+-1  +-1+36  MapState=IsViewable
     0x1000003 "L:KB_N:keyboard_DMINSETRIGHT:5_DM:KB_DMINSETLEFT:5_KBS:H_DMINSETTOP:54_LanH:352_PorH:352_DMINSETBOTTOM:5": ("kb" "Kb")  758x352+0+672  +0+672  MapState=IsViewable
        1 child:
        0x1000004 (has no name): ()  1x1+-1+-1  +-1+671  MapState=IsViewable
     0x120037f "L:D_N:non-centered_ID:com.lab126.booklet.home_M:dismissible_RD:false_FH:F_CD:true_TAC:search-bar_TAB:menu_RC:false_HIDE:background_BS:true": ()  393x538+355+122  +355+122  MapState=IsViewable
     0xe00042 "L:D_N:lightDialog_ID:system_PILLOW:light-dialog_M:dismissible_CD:true_TAC:search-bar_TAB:light_HIDE:background": ("pillowd" "Pillowd")  473x632+250+122  +250+122  MapState=IsViewable
        1 child:
        0xe00043 (has no name): ()  1x1+-1+-1  +249+121  MapState=IsViewable
     0xe0003f "L:D_N:pillowAlert_ID:system_PILLOW:simple-alert_M:true_BW:4_HIDE:background": ("pillowd" "Pillowd")  569x311+90+350  +90+350  MapState=IsViewable
        1 child:
        0xe00040 (has no name): ()  1x1+-1+-1  +93+353  MapState=IsViewable
     0x140000d "xterm": ("xterm" "XTerm")  484x316+0+0  +0+0  MapState=IsViewable
        1 child:
        0x1400012 (has no name): ()  484x316+0+0  +1+1  MapState=IsViewable
     0xc0003c "webreader": ("webreader" "Webreader")  1024x1024+0+0  +0+0  MapState=IsViewable
        1 child:
        0xc0003d (has no name): ()  1x1+-1+-1  +-1+-1  MapState=IsViewable
     0xc00021 "webreader": ("webreader" "Webreader")  200x200+0+0  +0+0  MapState=IsViewable
        1 child:
        0xc00022 (has no name): ()  1x1+-1+-1  +-1+-1  MapState=IsViewable
     0xe00048 "L:D_N:searchResults_ID:system_PILLOW:search-results_RC:custom_RCTL:0_RCTR:0_RCBL:16_RCBR:16_BW:2_FH:S_FS:S_CD:true_HIDE:background": ("pillowd" "Pillowd")  200x493+0+0  +0+0  MapState=IsViewable
        1 child:
        0xe00049 (has no name): ()  1x1+-1+-1  +1+1  MapState=IsViewable
     0xe00033 "L:D_N:systemMenu_ID:system_PILLOW:system-menu_BW:0_M:dismissible_CD:true_HIDE:background_TAC:search-bar_TAB:menu": ("pillowd" "Pillowd")  323x126+0+0  +0+0  MapState=IsViewable
        1 child:
        0xe00034 (has no name): ()  1x1+-1+-1  +-1+-1  MapState=IsViewable
     0x40001c "L:SS_N:screenSaver_FH:F_ID:blanket-screensaver_FS:F_O:U": ()  758x1024+0+0  +0+0  MapState=IsUnMapped
     0x120007b "L:A_N:application_ID:com.lab126.booklet.reader_M:false_PC:N_RC:true_O:URL_DM:N_S:-2": ()  758x1024+0+0  +0+0  MapState=IsUnMapped
     0x12000a6 "L:A_N:application_ID:com.lab126.booklet.settings_M:false_PC:TS_RC:true_O:U": ()  758x899+0+125  +0+125  MapState=IsUnMapped
     0xc00004 "webreader": ("webreader" "Webreader")  200x200+0+0  +0+0  MapState=IsUnMapped
        1 child:
        0xc00005 (has no name): ()  1x1+-1+-1  +-1+-1  MapState=IsUnviewable
     0xc00001 "webreader": ("webreader" "Webreader")  10x10+10+10  +10+10  MapState=IsUnMapped
        1 child:
        0xc00002 (has no name): ()  1x1+-1+-1  +9+9  MapState=IsUnviewable
     0xe00070 "pillowd": ()  10x10+-100+-100  +-100+-100  MapState=IsUnMapped
     0xe00016 "pillowd": ("pillowd" "Pillowd")  200x200+0+0  +0+0  MapState=IsUnMapped
        1 child:
        0xe00017 (has no name): ()  1x1+-1+-1  +-1+-1  MapState=IsUnviewable
     0x1000001 "kb": ("kb" "Kb")  10x10+10+10  +10+10  MapState=IsUnMapped
        1 child:
        0x1000002 (has no name): ()  1x1+-1+-1  +9+9  MapState=IsUnviewable
     0xe00001 "pillowd": ("pillowd" "Pillowd")  10x10+10+10  +10+10  MapState=IsUnMapped
        1 child:
        0xe00002 (has no name): ()  1x1+-1+-1  +9+9  MapState=IsUnviewable
     0x600001 (has no name): ()  1x1+-1+-1  +-1+-1  MapState=IsUnMapped
     0x600000 (has no name): ()  1x1+-1+-1  +-1+-1  MapState=IsUnMapped
R0nd is offline   Reply With Quote
Old 12-15-2012, 07:11 AM   #202
baf
Evangelist
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 404
Karma: 2200000
Join Date: May 2012
Device: kt
Quote:
Originally Posted by R0nd View Post
Okay, here we go:
Code:
wmctrl -r "xterm" -b toggle fullscreen
It kinda worked. Both terminal and keyboard are visible, but terminal doesn't get any input.
I am surprised. Why does setting xterm to fullscreen make keyboard visible?
And why doesn't xterm grab all input?

I see a lot of new arguments in window title scheme. I will have to study it.
baf is offline   Reply With Quote
Old 12-16-2012, 09:47 PM   #203
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
I set what now?

You know. its funny but I just managed to do exactly the same thing on the touch.

for some reason a window named
xwininfo: Window id: 0x1400002 "L:A_N:application_ID:xgnuboy_PC:N"
Does not display topmost without forcing via wmctrl.

and it also does not receive input from the keyboard.
odd. perhaps there is some element that is not being set in code correctly.

I currently have this:

Code:
void vid_settitle(char *title)
{
//	XStoreName(x_display, x_win, title);
	XStoreName(x_display, x_win, "L:A_N:application_ID:xgnuboy_PC:N");
	XSetIconName(x_display, x_win, "L:A_N:application_ID:xgnuboy_PC:N");
}
which looks okay to me.

any thoughts : )

EDIT: I shoved it in a tidy

Code:
snprintf(buf, sizeof buf, "%s%s", "L:D_N:application_ID:", rom.name);
Am i setting the property correctly?

http://h30097.www3.hp.com/docs/base_...UP/XWINSYS.PDF Section 9_9
Spoiler:

Quote:
9.1.4 Setting and Reading the WM_NAME Property
Xlib provides convenience functions that you can use to set and read the WM_NAME
property for a given window.
To set a window’s WM_NAME property with the supplied convenience function, use
XSetWMName.
Code:
void XSetWMName(display, w, text_prop)
Display *display;
Window w;
XTextProperty *text_prop;
display Specifies the connection to the X server.
w Specifies the window.
text_prop Specifies the XTextProperty structure to be used.

The XSetWMName convenience function performs a XSetTextProperty on the
WM_NAME property (see section 9.1.3).

To read a window’s WM_NAME property with the supplied convenience function, use
XGetWMName.

Code:
Status XGetWMName(display, w, text_prop_return)
Display *display;
Window w;
XTextProperty *text_prop_return;
display Specifies the connection to the X server.
w Specifies the window.
text_prop_return Returns the XTextProperty structure.

The XGetWMName convenience function performs an XGetTextProperty on the
WM_NAME property (see section 9.1.3).

The following two functions have been superseded by XSetWMName and XGetWMName, respectively. You can use these additional convenience functions for window names that are encoded as STRING properties.
To assign a name to a window, use XStoreName.

Code:
XStoreName(display, w, window_name)
Display *display;
Window w;
char *window_name;
display Specifies the connection to the X server.
w Specifies the window.
window_name Specifies the window name, which should be a null-terminated string.

The XStoreName function assigns the name passed to window_name to the specified window. A window manager can display the window name in some prominent place, such as the title bar, to allow users to identify windows easily. Some window managers may display a window’s name in the window’s icon, although they are encouraged to use the window’s icon name if one is provided by the application.

XStoreName can generate BadAlloc and BadWindow errors...
Snip.


Looks right to me. Erm. Any clues?

Last edited by twobob; 12-16-2012 at 10:50 PM. Reason: full explanation
twobob is offline   Reply With Quote
Old 12-17-2012, 11:32 AM   #204
baf
Evangelist
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 404
Karma: 2200000
Join Date: May 2012
Device: kt
Quote:
Originally Posted by twobob View Post
Looks right to me. Erm. Any clues?
Your function is ok, but it is important WHEN you call it. You should call it while creating new window. If you call it too late, after window has been put to a proper layer by wm, nothing will happen. Unless you notify wm of the change of title, with wmctrl for example.
baf is offline   Reply With Quote
Old 12-17-2012, 11:56 AM   #205
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
okay. I will see about shifting it from the loader phase then maybe.

That said I have noticed that many of the sound issues appear to go away when running via Xephyr... perhaps I will just stick to that road. Thanks mate!

At least I didn't screw up the code.
twobob is offline   Reply With Quote
Old 12-23-2012, 09:03 AM   #206
ppoo
Connoisseur
ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.
 
Posts: 56
Karma: 40393
Join Date: May 2012
Device: Kindle Touch
I've tried to compile xterm but it got:
Code:
[SB2 simple arm] test@test-test xterm-279 $ make
gcc -I. -I. -DHAVE_CONFIG_H  -D_GNU_SOURCE  -DNARROWPROTO=1 -DFUNCPROTO=15 -DOSMAJORVERSION=3 -DOSMINORVERSION=2  -g -O2  -c ./button.c
In file included from ./button.c:62:0:
./xterm.h:66:21: fatal error: X11/Xos.h: No such file or directory
compilation terminated.
make: *** [button.o] Error 1
ppoo is offline   Reply With Quote
Old 12-24-2012, 01:22 AM   #207
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
and do you have that file?

i.e is it the referencing or do you just not have it...
twobob is offline   Reply With Quote
Old 12-24-2012, 06:49 AM   #208
ppoo
Connoisseur
ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.
 
Posts: 56
Karma: 40393
Join Date: May 2012
Device: Kindle Touch
I don't have it. I use KT /{lib,etc,usr} as root filesystem then sb2 ./configure, but it seems KT missing library to compile xterm. But KT still can run Xterm
ppoo is offline   Reply With Quote
Old 12-24-2012, 07:49 AM   #209
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by ppoo View Post
I don't have it. I use KT /{lib,etc,usr} as root filesystem then sb2 ./configure, but it seems KT missing library to compile xterm. But KT still can run Xterm
Most likely correct.

Ah, the beauty of the posix dynamic library naming.
Hint: You might look that up - a little new knowledge wouldn't hurt.

There are two naming systems, one for the build-time library name(s) and one for the run-time library name.
They often end up at the same library binary - it is the naming systems that differ for those two different purposes.

The build-time name(s) is used by the linker and the names include version information in the name string itself.
This name chain starts with the base name and leads to the most specific version of the library present. (at least it does when it is present.)

The run-time name is used by the loader and the version information is in the symbol table, per symbol.

Embedded Operating Systems are supposed to be small and light.
Embedded Linux is.
Kindles run embedded Linux.
Small, run-time, OS installations are not intended to be program creation environments.

Are you really surprised that the Kindles do not ship with the build-time name chains?

Knowledge is power, back up and create a complete build environment based on the library files that do ship with the Kindles.
Only then try to build something.
knc1 is offline   Reply With Quote
Old 12-25-2012, 08:19 PM   #210
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
right. I use the buildroot pkg config stuff for my libs (the ones I cant/dont build myself) its referenced in the soundkloud thread in the last few posts how I do it.

thats for gtk but I imagine the principle is broadly similar. use the right headers / libs for the right tool chains. I have noted how I do mine. (whether that is right? I dont know - it works) good luck.
twobob is offline   Reply With Quote
Reply

Tags
launcher add-ons

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Progress] Jailbreaking Kindle 4.0 (Touch/No Keyboard) yifanlu Kindle Developer's Corner 434 04-22-2016 10:29 AM
Battery life in kindle keyboard an kindle non touch. ersott Amazon Kindle 24 10-30-2013 04:33 AM
[Kindle Touch] Touch-screen keyboard demo JoppyFurr Kindle Developer's Corner 6 05-19-2012 11:04 AM
Kindle Touch add new keyboard Novas Kindle Developer's Corner 2 01-12-2012 08:29 AM
Matchbox Keyboard Update Grimulkan iRex 17 05-13-2009 04:24 PM


All times are GMT -4. The time now is 05:34 PM.


MobileRead.com is a privately owned, operated and funded community.