Shorten GPLv2 licence text in header of each source file
[dockapps/wmnotify.git] / src / dockapp.c
index b50a373..a2ff4a4 100644 (file)
@@ -3,19 +3,7 @@
  *
  * Copyright (C) 2003 Hugo Villeneuve <hugo@hugovil.com>
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+ * This file is released under the GPLv2
  */
 
 /* Define filename_M */
@@ -156,8 +144,7 @@ copyXPMArea(int x, int y, unsigned int sx, unsigned int sy, int dx, int dy)
  * New window creation and initialization for a Dockable Application
  ******************************************************************************/
 void
-InitDockAppWindow(int argc, char *argv[], char *pixmap_data[],
-                 char *display_arg, char *geometry_arg)
+InitDockAppWindow(int argc, char *argv[], char *pixmap_data[])
 {
        XGCValues gcv;
        XSizeHints size_hints;
@@ -169,10 +156,9 @@ InitDockAppWindow(int argc, char *argv[], char *pixmap_data[],
                          */
 
        /* Opening a connection to the X server. */
-       dockapp.display = XOpenDisplay(display_arg);
+       dockapp.display = XOpenDisplay(NULL);
        if (dockapp.display == NULL) {
-               fprintf(stderr, "%s: Can't open display: %s\n", PACKAGE,
-                       XDisplayName(display_arg));
+               fprintf(stderr, "%s: Can't open X display\n", PACKAGE);
                ErrorLocation(__FILE__, __LINE__);
                exit(EXIT_FAILURE);
        }
@@ -191,7 +177,7 @@ InitDockAppWindow(int argc, char *argv[], char *pixmap_data[],
         * XWMGeometry() returns an 'int', but Xlib documentation doesn't
         * explain it's meaning.
         */
-       XWMGeometry(dockapp.display, dockapp.screen, geometry_arg, NULL,
+       XWMGeometry(dockapp.display, dockapp.screen, NULL, NULL,
                    BWIDTH, &size_hints, &size_hints.x, &size_hints.y,
                    &size_hints.width, &size_hints.height, &gravity);