[maemo-developers] [maemo-developers] Creating Home Applet

From: Johan Bilien jobi at via.ecp.fr
Date: Wed Dec 20 21:49:16 EET 2006
On Wed, Dec 20, 2006, andrew gatt wrote:
> OK so it seems that someone else asked this question before and didn't 
> get a reply - is there no way to remotely put an application in 
> fullscreen mode? It can be done with code executed by the application, 
> but i suppose there is no dbus message that can activate it? Is it 
> possible to fake the F6 key and send that to the application, therefore 
> faking the hardware keypress? I only want to start the application in 
> fullscreen mode and after that leave control to the user.

I don't know of any way to remotely set the window to fullscreen, but
you can indeed fake the F6 key using XTest:

#include <X11/extensions/XTest.h>

  XTestFakeKeyEvent (display, keycode, TRUE, CurrentTime);
  XTestFakeKeyEvent (display, keycode, FALSE, CurrentTime);

Johan Bilien
<jobi at via.ecp.fr>

More information about the maemo-developers mailing list