*
* 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 */
* 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;
*/
/* 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);
}
* 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);