Harikrishnan potty N wrote: > Hi, > > I think its better to specify that in the directfbrc file.
Depends on whether the cursor should still be active, e.g. using a touchscreen. In that case "no-cursor" would make it unusable, while "no-cursor-update" would still allow events to go through, but only input, not output on screen. I think I did not integrate this one, yet: Index: DirectFB-1.0.1/src/core/wm.c =================================================================== --- DirectFB-1.0.1.orig/src/core/wm.c +++ DirectFB-1.0.1/src/core/wm.c @@ -843,6 +843,9 @@ dfb_wm_update_cursor( CoreWindowStack D_ASSERT( stack != NULL ); D_FLAGS_ASSERT( flags, CCUF_ALL ); + if (dfb_config->no_cursor_updates) + return; + return wm_local->funcs->UpdateCursor( stack, wm_local->data, stack->stack_data, flags ); } Index: DirectFB-1.0.1/src/misc/conf.c =================================================================== --- DirectFB-1.0.1.orig/src/misc/conf.c +++ DirectFB-1.0.1/src/misc/conf.c @@ -114,7 +114,8 @@ static const char *config_usage = " [no-]lefty Swap left and right mouse buttons\n" " [no-]capslock-meta Map the CapsLock key to Meta\n" " linux-input-ir-only Ignore all non-IR Linux Input devices\n" - " [no-]cursor Never create a cursor\n" + " [no-]cursor Never create a cursor or handle it\n" + " [no-]cursor-updates Never show a cursor, but still handle it\n" " wm=<wm> Window manager module ('default' or 'unique')\n" " bg-none Disable background clear\n" " bg-color=AARRGGBB Use background color (hex)\n" @@ -841,6 +842,12 @@ DFBResult dfb_config_set( const char *na if (strcmp (name, "no-cursor" ) == 0) { dfb_config->no_cursor = true; } else + if (strcmp (name, "cursor-updates" ) == 0) { + dfb_config->no_cursor_updates = false; + } else + if (strcmp (name, "no-cursor-updates" ) == 0) { + dfb_config->no_cursor_updates = true; + } else if (strcmp (name, "linux-input-ir-only" ) == 0) { dfb_config->linux_input_ir_only = true; } else Index: DirectFB-1.0.1/src/misc/conf.h =================================================================== --- DirectFB-1.0.1.orig/src/misc/conf.h +++ DirectFB-1.0.1/src/misc/conf.h @@ -168,6 +168,8 @@ typedef struct unsigned long mmio_phys; /* Physical base address of MMIO area */ unsigned int mmio_length; /* Size of MMIO area */ int accelerator; /* Accelerator ID */ + + bool no_cursor_updates; /* Never show the cursor etc. */ } DFBConfig; extern DFBConfig *dfb_config; -- 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