Commit graph

12 commits

Author SHA1 Message Date
Doug Torrance 1891366919 libdockapp: Add DAMakeShapeFromData() and DAMakeShapeFromFile() functions.
libdockapp supports shaped dockapps with the DASetShape() function, but this
function requires as input a bitmap.  Previously, there was no support for
creating such a bitmap from XBM data without using Xlib directly.

We add two functions, DAMakeShapeFromData(), which is a wrapper around
XCreateBitmapFromData and allows developers to #include XBM data, and
DAMakeShapeFromFile(), which is a wrapper around XReadBitmapfile and
lets developers specify the path to an XBM file.
2017-08-31 08:32:04 +02:00
Doug Torrance ebae7f641b libdockapp: Make DAParseArguments() optional.
Some dockapps may want to handle command line options themselves, so we
make this function optional.

Previously, if this function was skipped, then a segfault would result when
trying to access the _daContext global while first creating the dockapp
window.

Now we check if _daContext has been initialized first, and if not, we
initialize it.
2017-08-30 09:49:11 +02:00
Doug Torrance 24c0e4e4f2 libdockapp: Don't withdraw dockapps in windowed mode.
In Window Maker, windows with application class "DockApp" are automatically
withdrawn.  We don't want this in windowed mode. We use the application
name instead, with the usual convention of capitalizing the initial letter.
2017-04-27 11:29:10 +01:00
Doug Torrance fa7743bc58 libdockapp: Do not include pathnames in Window Name and Class Properties
Patch by Corin-EU from GitHub [1].

In libdockapps file wmgeneral.c, wname is set from argv[0] and is then used
to set the window name and class resource. Often applications are called with
their full path which then means that the window name has a path in it,
thereby requiring an unwieldy path specific string for "Name" in WMState if
the applet is to be captured in the WM dock.

The simple solution is that wname should be the basename of argv[0] to
ensure that the window name for the applet is the simple and obvious one.
Thus the inclusion of header file libgen.h is required.

Just say "no" to path slashes "/" in window name/class resources ....

[1] https://github.com/d-torrance/dockapps/issues/5
2017-04-26 23:27:19 +01:00
Doug Torrance ee44bd28c4 libdockapp: Remove AC_PATH_XTRA macro from configure.ac
We already check for libraries with the PKG_CHECK_MODULES macros.  This also
allows the Debian package to drop the Build-Depend on libice-dev.

Based on the Debian patch [1].

[1] https://sources.debian.net/src/libdockapp/1:0.7.1-1/debian/patches/remove_AC_PATH_XTRA.diff/
2015-10-21 09:07:01 -04:00
Rodolfo García Peñas (kix) faae8b4f2f Include libwmgeneral in libdockapp
This patch includes the libwmgeneral library in the libdockapp
library.

The new library is now version 3 (previous was version 2) and it
includes the new include folder in $libdir/libdockapp.

The wmgeneral files were moved from the previous folder (libwmgeneral)
and the folder is now removed.

Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
2015-08-15 09:52:19 +01:00
Doug Torrance 423d103fb3 libdockapp: Merge ChangeLog into NEWS (they were largely the same). 2014-11-28 16:39:20 +00:00
Doug Torrance 19bf1f277f libdockapp: Use consistent code formatting.
Used uncrustify to minimize warnings and errors from checkpatch.pl in the
Window Maker source tree.
2014-11-28 16:39:20 +00:00
Doug Torrance b002ed2e01 libdockapp: Remove CVS cruft. 2014-11-28 16:39:20 +00:00
Doug Torrance d02f58d26d libdockapp: Remove trailing whitespace. 2014-11-28 16:30:06 +00:00
Doug Torrance 3c0684b235 libdockapp: Remove autotools-generated files. 2014-11-28 16:30:06 +00:00
Doug Torrance 2dd42394ac libdockapp: Add version 0.6.3 to repository.
Obtained from:
http://sourceforge.net/projects/libdockapp/files/libdockapp-0.6.3.tar.gz/download
2014-11-28 16:30:06 +00:00