summaryrefslogtreecommitdiffstats
path: root/Gui/wm
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-05-23 14:46:08 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-05-23 14:46:08 +0000
commite3f6268be0ab0ea4a4898f72ae0f2aca798d7a1f (patch)
treeb9d4aedeff382a4315c4131b8200bb6fd50dd819 /Gui/wm
parent5c7cdd2197f5b2bafd39c5d54bc0f882ee9977ca (diff)
downloadmpv-e3f6268be0ab0ea4a4898f72ae0f2aca798d7a1f.tar.bz2
mpv-e3f6268be0ab0ea4a4898f72ae0f2aca798d7a1f.tar.xz
applied 64bit patch from Ulrich Hecht <uli@suse.de>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6160 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/wm')
-rw-r--r--Gui/wm/ws.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Gui/wm/ws.c b/Gui/wm/ws.c
index a8c249c6a5..abda544939 100644
--- a/Gui/wm/ws.c
+++ b/Gui/wm/ws.c
@@ -158,7 +158,7 @@ int wsWindowManagerType( void )
// --- gnome
/*
type=XInternAtom( wsDisplay,"_WIN_SUPPORTING_WM_CHECK",False );
- if ( Success == XGetWindowProperty( wsDisplay,wsRootWin,type,0,65536 / sizeof( long ),False,AnyPropertyType,&type,&format,&nitems,&bytesafter,&args ) && nitems > 0 )
+ if ( Success == XGetWindowProperty( wsDisplay,wsRootWin,type,0,65536 / sizeof( int32_t ),False,AnyPropertyType,&type,&format,&nitems,&bytesafter,&args ) && nitems > 0 )
{
mp_dbg( MSGT_GPLAYER,MSGL_STATUS,"[ws] Detected wm is Gnome\n" );
XFree( args );
@@ -167,7 +167,7 @@ int wsWindowManagerType( void )
*/
// --- net wm
type=XInternAtom( wsDisplay,"_NET_SUPPORTED",False );
- if ( Success == XGetWindowProperty( wsDisplay,wsRootWin,type,0,65536 / sizeof( long ),False,AnyPropertyType,&type,&format,&nitems,&bytesafter,&args ) && nitems > 0 )
+ if ( Success == XGetWindowProperty( wsDisplay,wsRootWin,type,0,65536 / sizeof( int32_t ),False,AnyPropertyType,&type,&format,&nitems,&bytesafter,&args ) && nitems > 0 )
{
mp_dbg( MSGT_GPLAYER,MSGL_STATUS,"[ws] Detected wm is NetWM\n" );
XFree( args );
@@ -761,7 +761,7 @@ void wsSetLayer( Display * wsDisplay, Window win, int layer )
}
type=XInternAtom( wsDisplay,"_NET_SUPPORTED",False );
- if ( Success == XGetWindowProperty( wsDisplay,wsRootWin,type,0,65536 / sizeof( long ),False,AnyPropertyType,&type,&format,&nitems,&bytesafter,&args ) && nitems > 0 )
+ if ( Success == XGetWindowProperty( wsDisplay,wsRootWin,type,0,65536 / sizeof( int32_t ),False,AnyPropertyType,&type,&format,&nitems,&bytesafter,&args ) && nitems > 0 )
{
XEvent e;
e.xclient.type=ClientMessage;
@@ -780,7 +780,7 @@ void wsSetLayer( Display * wsDisplay, Window win, int layer )
return;
}
type=XInternAtom( wsDisplay,"_WIN_SUPPORTING_WM_CHECK",False );
- if ( Success == XGetWindowProperty( wsDisplay,wsRootWin,type,0,65536 / sizeof( long ),False,AnyPropertyType,&type,&format,&nitems,&bytesafter,&args ) && nitems > 0 )
+ if ( Success == XGetWindowProperty( wsDisplay,wsRootWin,type,0,65536 / sizeof( int32_t ),False,AnyPropertyType,&type,&format,&nitems,&bytesafter,&args ) && nitems > 0 )
{
XClientMessageEvent xev;