All of lore.kernel.org
 help / color / mirror / Atom feed
* Matchbox keyboard
@ 2013-02-05 18:47 Gary Thomas
  2013-02-05 19:00 ` Tomas Frydrych
  0 siblings, 1 reply; 4+ messages in thread
From: Gary Thomas @ 2013-02-05 18:47 UTC (permalink / raw)
  To: Yocto Project

Sorry if this isn't the best place to ask...

I have a GUI application running on Poky/Yocto with Sato using
only a touch screen.  My application window takes up the whole
display which is *very* small (320x240).  If I try and accept
text input, I can see the matchbox keyboard try to pop up, but
it immediately ends up behind my application window and thus
is of little use :-(

Is there some way to get the keyboard window to sit above my
application window while it is active?  I've experimented a bit
and I can use the terminal window in this environment but its
window gets sized very small - probably too small for my application.
Is that the only way for the matchbox keyboard and the application
that's using it for input to coexist?

Thanks for any ideas or pointers

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Matchbox keyboard
  2013-02-05 18:47 Matchbox keyboard Gary Thomas
@ 2013-02-05 19:00 ` Tomas Frydrych
  2013-02-05 19:19   ` Gary Thomas
  0 siblings, 1 reply; 4+ messages in thread
From: Tomas Frydrych @ 2013-02-05 19:00 UTC (permalink / raw)
  To: yocto

On 05/02/13 18:47, Gary Thomas wrote:
> Sorry if this isn't the best place to ask...
> 
> I have a GUI application running on Poky/Yocto with Sato using
> only a touch screen.  My application window takes up the whole
> display which is *very* small (320x240).  If I try and accept
> text input, I can see the matchbox keyboard try to pop up, but
> it immediately ends up behind my application window and thus
> is of little use :-(

This should not be too small, I am pretty sure I have used it on a
device of that size, but it assumes the GUI application is well behaved
and obeys the window manager -- you have to make it respect the size the
WM allocates.

Tomas

-- 
http://sleepfive.com


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Matchbox keyboard
  2013-02-05 19:00 ` Tomas Frydrych
@ 2013-02-05 19:19   ` Gary Thomas
  2013-02-05 21:12     ` Tomas Frydrych
  0 siblings, 1 reply; 4+ messages in thread
From: Gary Thomas @ 2013-02-05 19:19 UTC (permalink / raw)
  To: yocto

On 2013-02-05 12:00, Tomas Frydrych wrote:
> On 05/02/13 18:47, Gary Thomas wrote:
>> Sorry if this isn't the best place to ask...
>>
>> I have a GUI application running on Poky/Yocto with Sato using
>> only a touch screen.  My application window takes up the whole
>> display which is *very* small (320x240).  If I try and accept
>> text input, I can see the matchbox keyboard try to pop up, but
>> it immediately ends up behind my application window and thus
>> is of little use :-(
>
> This should not be too small, I am pretty sure I have used it on a
> device of that size, but it assumes the GUI application is well behaved
> and obeys the window manager -- you have to make it respect the size the
> WM allocates.

Does the window manager attempt to resize my window when the keyboard
pops up?  I have a simple dialog and I don't see it being resized (if
that's even possible)

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Matchbox keyboard
  2013-02-05 19:19   ` Gary Thomas
@ 2013-02-05 21:12     ` Tomas Frydrych
  0 siblings, 0 replies; 4+ messages in thread
From: Tomas Frydrych @ 2013-02-05 21:12 UTC (permalink / raw)
  To: yocto

On 05/02/13 19:19, Gary Thomas wrote:
> On 2013-02-05 12:00, Tomas Frydrych wrote:
>> On 05/02/13 18:47, Gary Thomas wrote:
>>> Sorry if this isn't the best place to ask...
>>>
>>> I have a GUI application running on Poky/Yocto with Sato using
>>> only a touch screen.  My application window takes up the whole
>>> display which is *very* small (320x240).  If I try and accept
>>> text input, I can see the matchbox keyboard try to pop up, but
>>> it immediately ends up behind my application window and thus
>>> is of little use :-(
>>
>> This should not be too small, I am pretty sure I have used it on a
>> device of that size, but it assumes the GUI application is well behaved
>> and obeys the window manager -- you have to make it respect the size the
>> WM allocates.
> 
> Does the window manager attempt to resize my window when the keyboard
> pops up?  I have a simple dialog and I don't see it being resized (if
> that's even possible)

In the matchbox case it works through the window stack and works out the
size that is taken up by DOCKS and TOOLBARS (the kbd is a toolbar,
iirc); whatever is left is then given to the other windows (applications
and dialogs). Simplest way to verify if the WM is trying to resize the
dialog is to listen for the ConfigureNotify event and see what sizes are
coming through there (how you do that would depend on the toolkit).

Tomas

-- 
http://sleepfive.com


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-02-05 21:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-05 18:47 Matchbox keyboard Gary Thomas
2013-02-05 19:00 ` Tomas Frydrych
2013-02-05 19:19   ` Gary Thomas
2013-02-05 21:12     ` Tomas Frydrych

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.