changeset 33990:3a93b9227b01

Cosmetic: Rename wsMoveTopWindow() wsRaiseWindowTop(). Additionally, rename parameter wsDisplay dsp and remove commented code.
author ib
date Thu, 08 Sep 2011 10:34:17 +0000
parents 5b3605aee33b
children 58b5bca840a8
files gui/ui/menu.c gui/ui/sub.c gui/ui/widgets.c gui/wm/ws.c gui/wm/ws.h
diffstat 5 files changed, 8 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/gui/ui/menu.c	Wed Sep 07 19:17:00 2011 +0000
+++ b/gui/ui/menu.c	Thu Sep 08 10:34:17 2011 +0000
@@ -108,7 +108,7 @@
  menuItem = 0;
 
  wsMoveWindow( &guiApp.menuWindow,False,x,y );
- wsMoveTopWindow( wsDisplay,guiApp.menuWindow.WindowID );
+ wsRaiseWindowTop( wsDisplay,guiApp.menuWindow.WindowID );
  wsSetLayer( wsDisplay,guiApp.menuWindow.WindowID,1 );
  menuRender=1;
  wsVisibleWindow( &guiApp.menuWindow,wsShowWindow );
--- a/gui/ui/sub.c	Wed Sep 07 19:17:00 2011 +0000
+++ b/gui/ui/sub.c	Thu Sep 08 10:34:17 2011 +0000
@@ -102,8 +102,8 @@
    case wsRLMouseButton:
           if ( ( !mplSubMoved )&&( guiApp.subWindow.isFullScreen ) )
            {
-            if( subVisible++%2 ) wsMoveTopWindow( wsDisplay,guiApp.mainWindow.WindowID );
-             else wsMoveTopWindow( wsDisplay,guiApp.subWindow.WindowID );
+            if( subVisible++%2 ) wsRaiseWindowTop( wsDisplay,guiApp.mainWindow.WindowID );
+             else wsRaiseWindowTop( wsDisplay,guiApp.subWindow.WindowID );
 	   }
           msButton=0;
           mplSubMoved=0;
--- a/gui/ui/widgets.c	Wed Sep 07 19:17:00 2011 +0000
+++ b/gui/ui/widgets.c	Thu Sep 08 10:34:17 2011 +0000
@@ -223,7 +223,7 @@
 
 void gtkActive(GtkWidget *wdg)
 {
-    wsMoveTopWindow(gdk_display, GDK_WINDOW_XWINDOW(wdg->window));
+    wsRaiseWindowTop(gdk_display, GDK_WINDOW_XWINDOW(wdg->window));
 }
 
 void gtkShow(int type, char *param)
--- a/gui/wm/ws.c	Wed Sep 07 19:17:00 2011 +0000
+++ b/gui/wm/ws.c	Thu Sep 08 10:34:17 2011 +0000
@@ -1141,12 +1141,10 @@
 // ----------------------------------------------------------------------------------------------
 //    Move top the window.
 // ----------------------------------------------------------------------------------------------
-void wsMoveTopWindow(Display *wsDisplay, Window win)
+void wsRaiseWindowTop(Display *dsp, Window win)
 {
-// XUnmapWindow( wsDisplay,win );
-// XMapWindow( wsDisplay,win );
-    XMapRaised(wsDisplay, win);
-    XRaiseWindow(wsDisplay, win);
+    XMapRaised(dsp, win);
+    XRaiseWindow(dsp, win);
 }
 
 // ----------------------------------------------------------------------------------------------
--- a/gui/wm/ws.h	Wed Sep 07 19:17:00 2011 +0000
+++ b/gui/wm/ws.h	Thu Sep 08 10:34:17 2011 +0000
@@ -232,7 +232,7 @@
 void wsMoveWindow(wsTWindow *win, int b, int x, int y);
 void wsResizeWindow(wsTWindow *win, int sx, int sy);
 void wsIconify(wsTWindow win);
-void wsMoveTopWindow(Display *wsDisplay, Window win);
+void wsRaiseWindowTop(Display *dsp, Window win);
 void wsSetBackground(wsTWindow *win, int color);
 void wsSetForegroundRGB(wsTWindow *win, int r, int g, int b);
 void wsSetBackgroundRGB(wsTWindow *win, int r, int g, int b);