On 03/07/12 14:41, Ezequiel García wrote:
> Hi,
> 
> After some research we found out that DirectFB has a built-in windows
> manager that responds to the following keys:
> 
> Press Meta+C to close the focused window.
> Press Meta+A to lower the focused window to the bottom.
> Press Meta+X to cycle the focus through the windows.
> Press Meta+S to raise the lowest window to the top.
> ..etc
> 
> (Information taken from 
> http://directfb.org/downloads/Core/DirectFB-1.4/README)
> 
> Is there any way to make the WM ignore those key combinations?
> 
> I do not want to let the user be able to modify the appearance
> of my application from the keyboard,
> however because the user needs to use
> the keyboard to interact with my app I can not just disable it completely.
> 
> Maybe someone can just point out a way to disable this behavior.
> 


diff --git a/wm/default/default.c b/wm/default/default.c
index 9c2bf41..689efa6 100644
--- a/wm/default/default.c
+++ b/wm/default/default.c
@@ -2550,6 +2550,8 @@ handle_wm_key( CoreWindowStack     *stack,
      D_ASSERT( event != NULL );
      D_ASSERT( event->type == DIET_KEYPRESS );

+     return false;
+
      entered = data->entered_window;
      focused = data->focused_window;



:D

-- 
Best regards,
  Denis Oliver Kropp

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"
_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to