View Single Post
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#5
Greetings again OSEmuTech!

Okay, first response.

Have you thought about having the function keys being displayed like that in a home computer? I was thinking of possibly launching a 2nd Xkbd that would cover the top, unused portion of the screen as well, covering up the toolbar applets and such. I'm not sure of this, but I think there's enough room to have all 12 function keys to fit in that area.

I haven't tried this myself, so it's not really a suggestion. I mean, it might look good. It might not. Just thought I'd throw out that idea and hear your opinions on it.

Well, here's ArnimS's post earlier in regards about the whole xkbd -geometry -1 -1 weirdness:

Problem is the "minimize" button (>>) shifts the keyboard position by a relative to "minimize" it - needs to use an absolute.

from xkbd.c

if(iMode==1)
{
XResizeWindow(display, win, xkbd_get_width(kb), xkbd_get_height(kb));
XMoveWindow(display,win,xorgpos+worg-xkbd_get_width(kb), yorgpos+horg-xkbd_get_height(kb));
}
else
{
xkbd_resize(kb, an_event.xconfigure.width*0.52*wkbscale, an_event.xconfigure.height*1.2*hkbscale );
worg=xkbd_get_width(kb);
horg=xkbd_get_height(kb);
XResizeWindow(display, win, xkbd_get_width(kb), xkbd_get_height(kb));
if(xorgpos==0 || yorgpos==0)
{
xorgpos=wscr-worg+1;
yorgpos=hscr-horg+1;
}
XMoveWindow(display,win,xorgpos, yorgpos);
xkbd_repaint(kb);
}

Not sure how that'd be fixed - maybe cme can look at it?
I'm no programmer, but it seems, mathematically at least, that if you removed the highlighted green "+1"s that Xkbd could be launched properly without the need for negative values and breaking the Minimize/Maximize feature.

If that doesn't work. Would it be possible to "roll" over these values?

Something to the effect of
xkbd - geometery +801+481 or
xkbd - geometery +32769+32769

I don't have Xkbd installed now, but do you kind of understand this concept? It would still be an absolute value and perhaps it wouldn't crash the program using a method such as this.

Anyway, I like the new layout much better than your first post. You nailed the Number keys and it looks much more functional.

Good job dude!