Camille d'Alméras [Mon, 7 Feb 2011 19:34:57 +0000 (7 19:34 +0000)]
wmgenmenu: Add French and Spanish translations
[crm: edits in configure.ac and Makefile.am]
Signed-off-by: Camille d'Alméras <camilledalmeras@yahoo.com>
Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
Carlos R. Mafra [Mon, 31 Jan 2011 10:10:20 +0000 (31 11:10 +0100)]
WPrefs: Update ballon text for "Window Focus Preferences"
Thanks to Camille d'Alméras for pointing it out.
Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
Carlos R. Mafra [Mon, 31 Jan 2011 10:30:51 +0000 (31 11:30 +0100)]
WPrefs: Update po/Makefile.am to reflect file deletion
Otherwise 'make WPrefs.pot' inside WPrefs.app/po fails.
Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
Carlos R. Mafra [Sat, 1 Jan 2011 21:34:20 +0000 (1 22:34 +0100)]
wmgenmenu: Add more apps
Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
Andrea Gelmini [Thu, 25 Nov 2010 20:57:16 +0000 (25 21:57 +0100)]
Remove duplicated #includes
Brad Jorsch [Wed, 17 Nov 2010 01:42:04 +0000 (16 20:42 -0500)]
Display modifiers in window menu
The window menu displays the shortcut key for operations with a
shortcut, but does not display the modifiers. This reduces the utility
of the display as it's hard to know whether "h" means "Mod4+h" or
"Ctrl+Mod4+h" or something else.
This patch prefixes those shortcut displays with the modifier names,
e.g. Ctrl+Mod4+h, and adds a preference ModifierKeyLabels to allow
overriding this, e.g. to "⌃◇h". It doesn't add this preference to
WPrefs, if someone else wants to do that feel free.
Signed-off-by: Brad Jorsch <anomie@users.sourceforge.net>
Andreas Metzler [Sun, 31 Oct 2010 14:06:44 +0000 (31 15:06 +0100)]
Update documentation of ABI/API changes again.
Update documentation of ABI/API changes in NEWS files (up to date GIT
next as of 2010-10-30).
Brad Jorsch [Sun, 17 Oct 2010 21:33:39 +0000 (17 17:33 -0400)]
Fix pkgdatadir
The previous patch "Fix path substitutions" accidentally caused autoconf
to overwrite automake's pkgdatadir. Since configure.ac does absolutely
nothing interesting with pkgdatadir anyway, just remove it completely.
Signed-off-by: Brad Jorsch <anomie@users.sourceforge.net>
Andreas Metzler [Sat, 16 Oct 2010 14:32:23 +0000 (16 16:32 +0200)]
pkgconfig - minimize direct linking
Use Libs.private to avoid unnecesary direct linking.
Signed-off-by: Andreas Metzler <ametzler@downhill.at.eu.org>
Andreas Metzler [Sat, 16 Oct 2010 13:59:41 +0000 (16 15:59 +0200)]
Simplify/fix pkgconfig installation
Patch "Fix path substitutions" moved generation of pkgconfig files from
./configure to Makefiles. However the generation is not triggered since
the pkgconfig files are not listed as dependency. Fix by conversion to a
straightforward automake rule.
Acked-by: Brad Jorsch <anomie@users.sourceforge.net>
Signed-off-by: Andreas Metzler <ametzler@downhill.at.eu.org>
Brad Jorsch [Tue, 12 Oct 2010 21:29:21 +0000 (12 17:29 -0400)]
Don't save app settings proplist when nothing changed
Signed-off-by: Brad Jorsch <anomie@users.sourceforge.net>
Tamas TEVESZ [Tue, 12 Oct 2010 16:38:45 +0000 (12 18:38 +0200)]
WINGs: Add wshellquote()
Transforms its argument so that the result is safe to pass to the shell
as an argument.
With very heavy inspirations from NetBSD's shquote(3),
http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/gen/shquote.c?annotate
http://man.netbsd.org/cgi-bin/man-cgi?shquote
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Brad Jorsch [Tue, 12 Oct 2010 12:31:41 +0000 (12 08:31 -0400)]
Reset bouncing app icon position when bounce ends
If the app is destroyed before the bounce finishes, the icon may be left
out of position. Fix that by explicitly resetting the position when the
bounce is complete for whatever reason, not just when the bounce ends
normally.
Signed-off-by: Brad Jorsch <anomie@users.sourceforge.net>
Tamas TEVESZ [Sun, 10 Oct 2010 16:55:06 +0000 (10 18:55 +0200)]
wmmenugen: Finish the XDG parser
Recognize the freedesktop.org-mandated Main Categories in .desktop files
and put menu entries in the appropriate categories.
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Sat, 9 Oct 2010 07:23:40 +0000 (9 09:23 +0200)]
wmmenugen: Add file name validator function
Add optional interface parsers may choose to implement that, when
a directory is being scanned for files to parse, may, based on
the file name, decide whether or not said file should be parsed.
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Fri, 8 Oct 2010 23:52:14 +0000 (9 01:52 +0200)]
wmmenugen: Add executable detection, make Wmconfig use it
Add fileInPath, which determines whether or not a given file exists
in $PATH (some heuristics apply).
Make the Wconfig parser use it.
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Fri, 8 Oct 2010 21:22:25 +0000 (8 23:22 +0200)]
wmmenugen: Finish Wmconfig parser, touch up PropList writer
As far as i can tell this finishes the Wmconfig parser (all bits we are
interested in/can use are parsed and converted).
The PropList writer gained ability to properly react to and handle various
flags passed by parsers.
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Brad Jorsch [Fri, 8 Oct 2010 19:08:34 +0000 (8 15:08 -0400)]
Only cache pixmaps for docked icons
There is little point caching a pixmap for an app that isn't in the
dock. This patch creates a function wAppIconSave that saves only if the
app icon is docked, and adds calls to that function in all the places
where an appicon can transition from undocked to docked.
It also "adds" a function wApplicationSaveIconPathFor that saves an icon
path to the configuration plist; the function already existed, it was
just static before.
Signed-off-by: Brad Jorsch <anomie@users.sourceforge.net>
Brad Jorsch [Fri, 8 Oct 2010 19:08:33 +0000 (8 15:08 -0400)]
Paint app icons when updated
Add calls to wAppIconPaint when wIconUpdate is called on the app icon.
Signed-off-by: Brad Jorsch <anomie@users.sourceforge.net>
Brad Jorsch [Fri, 8 Oct 2010 19:08:32 +0000 (8 15:08 -0400)]
Fix wIconUpdate logic
This patch changes the logic for choosing the icon, and gets rid of
wIconChangeImage in favor of wIconChangeImageFile.
Old logic:
* On create, load either NET_WM_ICON or the file from disk.
* On update, choose (in order):
1. WM_HINTS icon_window
2. WM_HINTS icon_pixmap
3. Whatever was loaded on creation, unless wIconChangeImage or
wIconChangeImageFile was called.
4. Default icon.
New logic:
* On update, choose (in order):
1. WM_HINTS icon_window
2. NET_WM_ICON
3. WM_HINTS icon_pixmap
4. Icon file from disk.
5. Default icon.
Signed-off-by: Brad Jorsch <anomie@users.sourceforge.net>
Brad Jorsch [Fri, 8 Oct 2010 19:08:31 +0000 (8 15:08 -0400)]
Fix handling of NET_WM_ICON
NET_WM_ICON is a property change, not a message.
updateIconImage doesn't use scr, remove it.
updateIconImage should clear out the net_icon_image if there isn't one
anymore (i.e. XGetWindowProperty fails or the icon cannot be extracted).
When the icon is changed, we need to call wIconUpdate.
Signed-off-by: Brad Jorsch <anomie@users.sourceforge.net>
Brad Jorsch [Fri, 8 Oct 2010 19:08:30 +0000 (8 15:08 -0400)]
Fix some warnings
Non-obvious fixes:
WINGs/wfilepanel.c: Cast to void to avoid an unused calculated value
warning.
WINGs/wtabview.c: Test tab<0 to avoid a warning from the next condition
about signed overflow in an inlined invocation of the function.
Signed-off-by: Brad Jorsch <anomie@users.sourceforge.net>
Alexey I. Froloff [Fri, 8 Oct 2010 12:14:44 +0000 (8 16:14 +0400)]
wmaker.inst: quote shell variables
Signed-off-by: Alexey I. Froloff <raorn@altlinux.org>
Alexey I. Froloff [Fri, 8 Oct 2010 12:14:43 +0000 (8 16:14 +0400)]
wmaker.inst: better locale check
Signed-off-by: Alexey I. Froloff <raorn@altlinux.org>
Tamas TEVESZ [Thu, 7 Oct 2010 23:32:11 +0000 (8 01:32 +0200)]
Update local copy of GPLv2 and FSF address in copyrights
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Thu, 7 Oct 2010 22:19:29 +0000 (8 00:19 +0200)]
Add wmmenugen, an extensible PropList-format menu generator
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Thu, 7 Oct 2010 21:46:43 +0000 (7 23:46 +0200)]
WINGs: tree enhancements
- add WMFindInTreeWithDepthLimit, which is like WMFindInTree, but
does not descend down more than a set limit.
- add WMTreeWalk, which will walk a WMTreeNode, running a callback
function on each node.
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Thu, 7 Oct 2010 21:39:55 +0000 (7 23:39 +0200)]
Add back WINGs/tree.c that was removed in
c9d0c7c
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Brad Jorsch [Wed, 6 Oct 2010 04:10:52 +0000 (6 00:10 -0400)]
Cleanup .gitignore
Remove some obsolete entries, add some needed new ones, and sort the
thing.
Signed-off-by: Brad Jorsch <anomie@users.sourceforge.net>
Adam Hoka [Tue, 5 Oct 2010 19:33:26 +0000 (5 21:33 +0200)]
WINGs: fts() -> nftw() in wrmdirhier()
Plus reorganize headers a bit.
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Brad Jorsch [Tue, 5 Oct 2010 20:15:14 +0000 (5 16:15 -0400)]
Fix stuck appicon from embedded apps
When applications are embedded in firefox via mozplugger, e.g. ooffice
for viewing .doc files or xpdf for viewing pdfs, and the embedded
application opens a popup window, we end up with a shared appicon for
the embedded app that remains until Window Maker is restarted.
The underlying cause is that mozplugger winds up reparenting the
embedded app's original leader window to a subwindow of itself, so
wmaker's SubstructureNotifyMask on the root window no longer picks up
the DestroyNotify when that original leader is destroyed.
It seems easy to fix once you track down the problem: when fixing
several other properties in fixLeaderProperties(), add
StructureNotifyMask so we get DestroyNotify no matter where the leader
gets reparented to. A more targeted fix would only add
StructureNotifyMask when the fake group's origLeader is set, but I don't
think a few extra structure notifications are going to cause us any real
problems.
Signed-off-by: Brad Jorsch <anomie@users.sourceforge.net>
Tamas TEVESZ [Mon, 4 Oct 2010 16:23:52 +0000 (4 18:23 +0200)]
Missed a piece in tree.c removal
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Andreas Metzler [Sat, 2 Oct 2010 11:39:15 +0000 (2 13:39 +0200)]
Document ABI/API changes
Document ABI/API changes in NEWS files (up to date GIT next as of
2010-10-02)
Brad Jorsch [Fri, 1 Oct 2010 00:53:45 +0000 (30 20:53 -0400)]
Minor fixes to appicon highlighting
When an app hides its window but doesn't exit (e.g. apps that "minimize"
to the system tray), the highlighting was not being removed.
When alt-tabbing, the tabbed-to app's icon was not getting highlighted.
Signed-off-by: Brad Jorsch <anomie@users.sourceforge.net>
Tamas TEVESZ [Thu, 30 Sep 2010 15:36:22 +0000 (30 17:36 +0200)]
Make OPEN_MENU be able to include PropList menus
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Brad Jorsch [Thu, 30 Sep 2010 12:58:19 +0000 (30 08:58 -0400)]
Fix wusleep
struct timespec's tm_nsec is in nanoseconds, not microseconds.
Signed-off-by: Brad Jorsch <anomie@users.sourceforge.net>
Carlos R. Mafra [Thu, 30 Sep 2010 08:59:06 +0000 (30 10:59 +0200)]
Remove translations of INSTALL-WMAKER, README and FAQ.I18N
Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
Brad Jorsch [Wed, 29 Sep 2010 20:12:33 +0000 (29 16:12 -0400)]
Fix path substitutions
Autoconf uses multiple levels of variables when defining paths. For
example, ${datadir} by default is ${datarootdir}, which by default is
${prefix}/share, which by default is /usr/local. Substituting from
./configure, as is done by AC_DEFINE or AC_DEFINE_UNQUOTED, does not
expand all these variables. This was causing some of our defines to have
garbage like "${prefix}/share/pixmaps" rather than the intended
"/usr/local/share/pixmaps".
The solution is to generate the files needing these paths from the
Makefile rather than from ./configure, because make does fully expand
all those levels.
Signed-off-by: Brad Jorsch <anomie@users.sourceforge.net>
Brad Jorsch [Wed, 29 Sep 2010 20:12:32 +0000 (29 16:12 -0400)]
Fix "make dist"
Signed-off-by: Brad Jorsch <anomie@users.sourceforge.net>
Tamas TEVESZ [Wed, 29 Sep 2010 15:15:55 +0000 (29 17:15 +0200)]
Add LCOV support to generate coverage information
How to use:
- Install LCOV (http://ltp.sourceforge.net/coverage/lcov.php)
- AFAICT, compiler must be GCC.
- ./configure --prefix=/some/path --enable-lcov=/var/www
This will configure the sources so that generated coverage information
(HTML pages) will end up in /var/www/coverage-report. Choose a directory
you have write access to.
- make
No installation necessary (although it probably doesn't hurt to have
WM installed in ${prefix} so it can find resources and stuff, but the
build tree must be kept intact anyway).
- Put ${srcroot}/src, ${srcroot}/WPrefs.app and ${srcroot}/util first in
your path.
- Arrange for your .xinitrc or DM to start ${srcroot}/src/wmaker as your
window manager.
- Use it as you normally would, possibly for an extended period of time.
- make coverage.
This will create a tree of web pages under /var/www/coverage-report
- Further `make coverage's (after some more use) will re-generate the
report (deleting the directory first).
- `make coverage-reset' will reset execution counts to zero (see lcov(1)).
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Wed, 29 Sep 2010 01:16:55 +0000 (29 03:16 +0200)]
Silence a few warnings
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Tue, 28 Sep 2010 20:25:44 +0000 (28 22:25 +0200)]
WINGs: Bounded string ops
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Wed, 29 Sep 2010 01:31:41 +0000 (29 03:31 +0200)]
WINGs: Remove #ifdef OLD_CODE
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Wed, 29 Sep 2010 00:52:19 +0000 (29 02:52 +0200)]
WINGs: Modernize wusleep()
- Change the wusleep abomination to be a simple wrapper around
nanosleep (man says it's been POSIX for almost a decade)
- Remove autoconf tests that became unnecessary along the way
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Tue, 28 Sep 2010 23:34:32 +0000 (29 01:34 +0200)]
WPrefs: Remove dead code
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Tue, 28 Sep 2010 23:14:38 +0000 (29 01:14 +0200)]
WINGs: Reorg headers to mark items' locations in source files
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Tue, 28 Sep 2010 22:29:11 +0000 (29 00:29 +0200)]
WINGs: Remove wprogressindicator and tree
Neither of them used (not by wdm either)
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Tue, 28 Sep 2010 22:02:03 +0000 (29 00:02 +0200)]
WINGs: Dead code removal
- on_exit is nowhere to be found in recent written history
- so there haven't for long been a system with !HAVE_ATEXIT
- so there is no need for either #ifdef HAVE_ATEXITs or configure
checks for atexit
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Brad Jorsch [Tue, 28 Sep 2010 18:08:52 +0000 (28 14:08 -0400)]
Ignore shared_appicon if an appicon already exists
An appicon is created for each group of windows, as specified by the
WM_HINTS window_group or the WM_CLIENT_LEADER. The "shared_appicon"
feature ignores the group leader specified by the application, replacing
it with a dummy leader matching the window's WM_CLASS. This causes
issues for dockapps, since each instance of a dockapp needs its own
appicon to display the different icon_windows, so shared_appicon is
automatically disabled for dockapp windows.
If the application creates some dockapp windows (no shared_appicon) and
some regular windows (with shared_appicon) with the same leader, it can
unexpectedly end up with two different appicons: one for the real group
leader it set and one for the fake leader created for shared_appicons.
Both of these appicons will try to use the same icon_window, which may
cause the dockapp window to suddenly lose its contents as they are moved
to the fake leader's appicon.
There is a simple fix: if a WApplication already exists (and has an
appicon) for the app-specified group leader window, disable
shared_appicon.
Signed-off-by: Brad Jorsch <anomie@users.sourceforge.net>
Andreas Metzler [Tue, 28 Sep 2010 18:04:20 +0000 (28 20:04 +0200)]
Rename libwutil1 to libwutil2
Rename debian packages following libwutil soname bump.
Tamas TEVESZ [Tue, 28 Sep 2010 18:06:50 +0000 (28 20:06 +0200)]
Repair wgethomedir(), broken a little while back
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Tue, 28 Sep 2010 02:07:31 +0000 (28 04:07 +0200)]
WINGs: Remove wruler and wtext
Apparently not used (not by wdm either).
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Tue, 28 Sep 2010 01:40:35 +0000 (28 03:40 +0200)]
WINGs: Do not look static information up every time
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Tue, 28 Sep 2010 01:39:31 +0000 (28 03:39 +0200)]
WINGs: Plug potential segfault
...following up on
d65cb5a ("Preparing to do exactly as FIXME says").
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Tue, 28 Sep 2010 00:09:51 +0000 (28 02:09 +0200)]
Fix some double newlines
Just a couple that woud now print double (or several more) newlines.
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Mon, 27 Sep 2010 23:34:33 +0000 (28 01:34 +0200)]
WINGs: Make w*() print message origins
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Mon, 27 Sep 2010 14:30:59 +0000 (27 16:30 +0200)]
Preparing to do exactly as FIXME says
However, knowing about those functions is quite a prerequisite.
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Mon, 27 Sep 2010 14:12:57 +0000 (27 16:12 +0200)]
Remove wsyserrorwithcode, rename wsyserror to werror
wsyserrorwithcode - Not used, no point either.
wsyserror->werror - qualifying "error" with a "type" hardly makes
sense if there are not at least two "type"s. There are not. Safe trip.
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Sun, 26 Sep 2010 15:36:47 +0000 (26 17:36 +0200)]
More precise information on unknown systems
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Andreas Metzler [Sun, 26 Sep 2010 15:11:15 +0000 (26 17:11 +0200)]
Document ABI and API changes
List ABI and API changes in the respective NEWS files.
Andreas Metzler [Sat, 25 Sep 2010 16:40:47 +0000 (25 18:40 +0200)]
Fix typo enviroment
s/enviroment/environment/ both in the .c file and in all .po files that
already contain a translation for the string. The latter prevents
wrongly marking the translation as fuzzy.
Andreas Metzler [Sat, 25 Sep 2010 16:39:25 +0000 (25 18:39 +0200)]
Do not mark product names as translatable
There is no point in trying to translate trademarks/product names like
Window Maker or OpenSUSE, stop marking these strings as translatable.
Andreas Metzler [Sat, 25 Sep 2010 12:57:57 +0000 (25 14:57 +0200)]
Build-Depend on automake 1.11 or later.
Reflect versioned automake build requirement in Debian's Build-Depends.
Andreas Metzler [Sat, 25 Sep 2010 11:44:48 +0000 (25 13:44 +0200)]
Add function declaration for wIconSetHighlited
The expansion of the macro wApplication{Dea,A}ctivate triggers an
implicit declaration warning for wIconSetHighlited. Add function
declararion to fix this.
Brad Jorsch [Fri, 24 Sep 2010 20:08:12 +0000 (24 16:08 -0400)]
Clean up library linking
On the one hand, libWINGs wasn't linking against -lX11 when it should
have been. And on the other, only libWINGs needs Xft, only wmaker needs
Xrandr, only wmaker and wmsetbg need Xinerama, only libwraster needs
Xmu, and -lpng may not need -lz.
Cleaning this up can help distributions get their dependencies correct,
and might even avoid loading the unused libraries at runtime, so we may
as well do it.
Signed-off-by: Brad Jorsch <anomie@users.sourceforge.net>
Brad Jorsch [Fri, 24 Sep 2010 18:37:57 +0000 (24 14:37 -0400)]
Use -lbsd for strlcat/strlcpy, if needed and available
On BSD systems, strlcat and strlcpy are included in the C library and
nothing special is needed. On Linux systems they are not, but libbsd may
be available to provide them. Use it if so.
This also adds wstrlcat and wstrlcpy instead of trying to maybe-provide
strlcat and strlcpy themselves, as that way there is no risk of symbol
conflicts. Not bumping the library version at this time, that should be
done (if necessary) before release.
Signed-off-by: Brad Jorsch <anomie@users.sourceforge.net>
Tamas TEVESZ [Thu, 23 Sep 2010 23:56:07 +0000 (24 01:56 +0200)]
Repair defaults for new titlebar button style
Originally missed in
17cc7c3c
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Thu, 23 Sep 2010 21:51:42 +0000 (23 23:51 +0200)]
WINGs: Less ad-hoc approach for __wmessage()
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Thu, 23 Sep 2010 21:23:29 +0000 (23 23:23 +0200)]
WINGs: Add detection and local copy for strlcat()/strlcpy()
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Thu, 23 Sep 2010 15:09:46 +0000 (23 17:09 +0200)]
WINGs: Small assorted formatting changes
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Thu, 23 Sep 2010 14:34:56 +0000 (23 16:34 +0200)]
WINGs: Simplify and rationalize createDir() and deleteFile()
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Thu, 23 Sep 2010 13:34:05 +0000 (23 15:34 +0200)]
WINGs: Add normalizePath()
Removes multiple consecutive and any trailing slashes from
a path-looking string
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Thu, 23 Sep 2010 12:46:09 +0000 (23 14:46 +0200)]
WINGs: Simplify WMPathForResourceOfType()
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Thu, 23 Sep 2010 12:30:19 +0000 (23 14:30 +0200)]
WINGs: Return NULL on NULL input in checkFile()
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Thu, 23 Sep 2010 12:27:48 +0000 (23 14:27 +0200)]
WINGs: Make wmalloc() intialize allocated memory to 0
- Accordingly remove individual memsets, for now from WINGs only.
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Carlos R. Mafra [Thu, 23 Sep 2010 12:32:12 +0000 (23 14:32 +0200)]
Remove assembly/optimized code
Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
Carlos R. Mafra [Thu, 23 Sep 2010 09:32:41 +0000 (23 11:32 +0200)]
configure: Do not warn about unused parameters
Now my 'make V=0' compilation can be used to spot
new/relevant warnings.
Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
Tamas TEVESZ [Thu, 23 Sep 2010 01:32:23 +0000 (23 03:32 +0200)]
Remove obsolete --with-xft from debian/rules
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Thu, 23 Sep 2010 01:24:35 +0000 (23 03:24 +0200)]
Fix some off-by-ones
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Thu, 23 Sep 2010 00:46:00 +0000 (23 02:46 +0200)]
Reduce noise in WUtil
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Thu, 23 Sep 2010 00:19:42 +0000 (23 02:19 +0200)]
Kill wstrerror
As far as i can tell, all current targets have strerror().
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Wed, 22 Sep 2010 23:58:09 +0000 (23 01:58 +0200)]
Ungeneralize wrlib DEBUG
Plus debug messages belong on stderr.
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Wed, 22 Sep 2010 23:27:53 +0000 (23 01:27 +0200)]
Kill BENCH
Nice idea, x86 assembly is so 1980s.
tests/testgrad.c could probably have been saved, but seriously, who's
going to miss it?
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Wed, 22 Sep 2010 16:00:34 +0000 (22 18:00 +0200)]
Repair TEST_WITH_GC
The comment in WINGs/memory.c:wfree() pretty much explains the current
situation. There's an incredible amount of mixing the wmalloc/wfree
wrappers with native mallocs/frees on the other side, and a good several
cases of misusing external libraries' APIs. Until this is thoroughly
cleaned, WM with --enable-boehm-gc will hardly even start.
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Wed, 22 Sep 2010 21:01:03 +0000 (22 23:01 +0200)]
Pretty-print for string2index
Turns unhelpful
wmaker: warning: wrong option value for key "NewStyle". Should be one of new, old, next
into helpful
wmaker: warning: wrong option value for key "NewStyle". Got "YES", should be one of "new", "old", "next"
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Brad Jorsch [Wed, 22 Sep 2010 16:43:02 +0000 (22 12:43 -0400)]
Documentation cleanups for --with-gnustepdir
Quite a bit of documentation still mentioned --with-appspath. Fix that.
Signed-off-by: Brad Jorsch <anomie@users.sourceforge.net>
Brad Jorsch [Wed, 22 Sep 2010 14:24:46 +0000 (22 10:24 -0400)]
Fix --with-gnustepdir
Commit
acc868d91d1457770f3b85c9636d7370721bf1a9 tried to change
--with-appspath to --with-gnustepdir, but either it wasn't done
correctly (and no one noticed) or old versions of AC_ARG_WITH worked
completely differently (and in an extremely odd way) because the option
remained --with-appspath and just the help text was changed. Then commit
bde572f67311f156f4ec4469e2ea4f16d7b1130a, which claims to have been
fixing some sort of issue with path assignment, broke it completely (i
guess) because the author there trusted the help text.
This completes the change from commit
acc868d91d1457770f3b85c9636d7370721bf1a9 that makes the option really be
--with-gnustepdir.
Signed-off-by: Brad Jorsch <anomie@users.sourceforge.net>
Carlos R. Mafra [Wed, 22 Sep 2010 14:21:11 +0000 (22 16:21 +0200)]
XRandR temporary amendments
If we Restart() directly, the windows with titlebars come back N pixels
below their original positions before the xrandr-induced restart, where
N is the titlebar height.
To avoid this issue, let's do the proper restart preparation before
actually calling Restart().
Let's also grab ConfigureNotify in the event loop as in the patch
here: http://lists.kde.org/?l=kwin&m=
116429907520188&w=2
(thanks to Tamas for pointing it out).
Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
Tamas TEVESZ [Tue, 21 Sep 2010 10:30:02 +0000 (21 12:30 +0200)]
Fix typo in wApplicationExtractDirPackIcon()
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Carlos R. Mafra [Mon, 20 Sep 2010 18:21:24 +0000 (20 20:21 +0200)]
WPrefs: Replace Netscape and Acrobat Reader menu entries
Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
Brad Jorsch [Mon, 20 Sep 2010 16:08:09 +0000 (20 12:08 -0400)]
Fix compilation with LDFLAGS=-Wl,--no-add-needed
If you link against a library A that itself links against a library B,
it may or may not work to use symbols from library B in your executable;
this is known as "indirect linking". GNU ld does indirect linking by
default (but it can be disabled using --no-add-needed), but the new
experimental GNU gold linker does not do this. It's an easy fix for us,
as the tests are all already done in ./configure, we just need to tell
the Makefile.ams to use the results.
This should fix Debian bug #556677, if they ever start using this
branch.
[crmafra: Folded Andreas Metzler patch to update debian/changelog]
Signed-off-by: Brad Jorsch <anomie@users.sourceforge.net>
Tamas TEVESZ [Mon, 20 Sep 2010 12:31:43 +0000 (20 14:31 +0200)]
Remove local strcasecmp implementation
Remove local strcasecmp implementation; whatever system doesn't have it
is off the table for now.
memcmp is used by WINGs; add autoconf check
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Mon, 20 Sep 2010 04:31:45 +0000 (20 06:31 +0200)]
CommitStackingForWindow prototype
add CommitStackingForWindow() prototype to superfluous.c
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Tamas TEVESZ [Fri, 17 Sep 2010 18:57:50 +0000 (17 20:57 +0200)]
Prevent a WPrefs segfault
Prevent WPrefs (menu panel) segfaulting upon coming by an invalid command in
the root menu.
Reported and first patch version by Bento Loewenstein.
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
Carlos R. Mafra [Thu, 7 Oct 2010 06:39:32 +0000 (7 08:39 +0200)]
configure: Disable XRandR by default
Some people using nvidia and/or playing some games (e.g. Einstein)
are reporting some issues with the restart induced by the
resolution changing. Let's disable it by default.
People without nvidia cards etc can still enable it with
--enable-xrandr.
Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
Brad Jorsch [Fri, 17 Sep 2010 19:33:13 +0000 (17 15:33 -0400)]
Option to raise bouncing appicons
If the appicon is not in the dock/clip, or the dock/clip is not set to
"Keep on Top", there's a good chance you won't actually see the bouncing
because some other window is covering the appicon.
Besides adding the option to raise bouncing windows, this patch adds a
utility method to move a window back into its correct stacking position
after it has been messed with using XRaiseWindow.
Signed-off-by: Brad Jorsch <anomie@users.sourceforge.net>
Brad Jorsch [Fri, 17 Sep 2010 18:55:45 +0000 (17 14:55 -0400)]
Add a preference for XUrgencyHint bouncing
Signed-off-by: Brad Jorsch <anomie@users.sourceforge.net>
Brad Jorsch [Thu, 16 Sep 2010 21:05:13 +0000 (16 17:05 -0400)]
Periodic bouncing for XUrgencyHint
When a window has XUrgencyHint set, bounce the app icon periodically.
Alexey I. Froloff [Thu, 16 Sep 2010 20:25:34 +0000 (17 00:25 +0400)]
Drop BOUNCE_APP #ifdef's
Since bouncing respects DisableAnimations option, there's no need
in #ifdef's.
Acked-by: Carlos R. Mafra <crmafra@gmail.com>
Signed-off-by: Alexey I. Froloff <raorn@altlinux.org>
Brad Jorsch [Thu, 16 Sep 2010 02:13:26 +0000 (15 22:13 -0400)]
Fix bounce direction of docked appicons
I have my dock on the right edge of the screen, and my clip right next
to it. So the first icon underneath the clip is 64 pixels from the top
and 64 from the right. It seems silly for it to bounce downwards instead
of sideways like every other icon under the clip.
So make the choice of vertical or horizontal for docked icons be
relative to the dock or clip rather than absolute screen position.
Left/right or up/down is still chosen by screen position, as are
situations where the icon is a chess bishop's move from the clip.