aboutsummaryrefslogtreecommitdiffhomepage
path: root/Gui/wm
diff options
context:
space:
mode:
authorGravatar pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-02 15:01:56 +0000
committerGravatar pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-02 15:01:56 +0000
commit218548d50c2839eb03955a351e740e7b6dbcfafd (patch)
tree9742d46d6459c71a0bf391355b0298a2c4b13b03 /Gui/wm
parentd65a7da22183da0bb47eeea99da9cd44087cf395 (diff)
fix other bugs
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2046 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/wm')
-rw-r--r--Gui/wm/ws.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/Gui/wm/ws.c b/Gui/wm/ws.c
index b8d278383a..afaf6dd3ed 100644
--- a/Gui/wm/ws.c
+++ b/Gui/wm/ws.c
@@ -613,8 +613,10 @@ buttonreleased:
break;
case PropertyNotify:
- break;
- fprintf(stderr,"[ws] PropertyNotify %s\n",XGetAtomName( wsDisplay,Event->xproperty.atom ) );
+// break;
+// #ifdef DEBUG
+// fprintf(stderr,"[ws] PropertyNotify ( 0x%x ) %s ( 0x%x )\n",wsWindowList[l]->WindowID,XGetAtomName( wsDisplay,Event->xproperty.atom ),Event->xproperty.atom );
+// #endif
if ( Event->xproperty.atom == wsWindowList[l]->AtomRemote )
{
Atom type;
@@ -634,6 +636,9 @@ buttonreleased:
{
args[strlen( args ) - 1]=0;
wsWindowList[l]->RemoteHandler( args );
+ #ifdef DEBUG
+ fprintf( stderr,"[ws] args: '%s'\n",args );
+ #endif
args[strlen( args ) - 1]=1;
XFree( args );
}
@@ -856,8 +861,10 @@ void wsIconify( wsTWindow win )
// Move top the window.
// ----------------------------------------------------------------------------------------------
void wsMoveTopWindow( wsTWindow * win )
-{ XRaiseWindow( wsDisplay,win->WindowID ); }
-//{ XUnmapWindow( wsDisplay,win->WindowID ); XMapWindow( wsDisplay,win->WindowID ); }
+{
+// XUnmapWindow( wsDisplay,win->WindowID ); XMapWindow( wsDisplay,win->WindowID );
+ XRaiseWindow( wsDisplay,win->WindowID );
+}
// ----------------------------------------------------------------------------------------------
// Set window background to 'color'.
@@ -897,7 +904,6 @@ void wsSetForegroundRGB( wsTWindow * win,int r,int g,int b )
case wsBGR15: PACK_RGB15( b,g,r,color ); break;
}
XSetForeground( wsDisplay,win->wGC,color );
-// XSetWindowBackground( wsDisplay,win->WindowID,color );
}
// ----------------------------------------------------------------------------------------------