diff Gui/mplayer/menu.h @ 6221:4b2459557340

add XShape support for gui's submenu
author pontscho
date Tue, 28 May 2002 14:12:33 +0000
parents dcf195b784bf
children
line wrap: on
line diff
--- a/Gui/mplayer/menu.h	Tue May 28 13:21:29 2002 +0000
+++ b/Gui/mplayer/menu.h	Tue May 28 14:12:33 2002 +0000
@@ -80,6 +80,7 @@
 
  wsMoveWindow( &appMPlayer.menuWindow,False,x,y );
  wsMoveTopWindow( wsDisplay,appMPlayer.menuWindow.WindowID );
+ wsSetLayer( wsDisplay,appMPlayer.menuWindow.WindowID,1 );
  mplMenuRender=1;
  wsVisibleWindow( &appMPlayer.menuWindow,wsShowWindow );
  wsPostRedisplay( &appMPlayer.menuWindow );
@@ -132,6 +133,8 @@
  appMPlayer.menuBase.x,appMPlayer.menuBase.y,appMPlayer.menuBase.width,appMPlayer.menuBase.height,
  wsNoBorder,wsShowMouseCursor|wsHandleMouseButton|wsHandleMouseMove,wsOverredirect|wsHideFrame|wsMaxSize|wsMinSize|wsHideWindow,"MPlayer menu" );
 
+ wsSetShape( &appMPlayer.menuWindow,appMPlayer.menuBase.Mask.Image );
+
  #ifdef DEBUG
   mp_msg( MSGT_GPLAYER,MSGL_DBG2,"[menu.h] menu: 0x%x\n",(int)appMPlayer.menuWindow.WindowID );
  #endif