wmaker-crm.git
13 years agoBouncing appicon effect
Alexey I. Froloff [Fri, 10 Sep 2010 16:51:03 +0000 (10 20:51 +0400)]
Bouncing appicon effect

When starting application (or opening transient dialog) bounce
its appicon.

Original-patch-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Alexey I. Froloff <raorn@altlinux.org>
13 years agoNew titlebar button style
Alexey I. Froloff [Fri, 10 Sep 2010 16:51:08 +0000 (10 20:51 +0400)]
New titlebar button style

This patch adds new titlebar button style.

Original-patch-by: Carlos Torres <vlaadbrain@operamail.com>
Signed-off-by: Alexey I. Froloff <raorn@altlinux.org>
13 years agoOpen window menu on right-click in window list menu
Alexey I. Froloff [Fri, 10 Sep 2010 16:51:06 +0000 (10 20:51 +0400)]
Open window menu on right-click in window list menu

When doing right-click in a window list menu open window menu.
Can be useful for sending here window from another workspace.

Original-patch-by: Pavel S. Khmelinsky <hmepas@yauza.ru>
Signed-off-by: Alexey I. Froloff <raorn@altlinux.org>
13 years agoWPrefs: Add MinimizeAllKey shortcut configuration
Carlos R. Mafra [Sat, 11 Sep 2010 14:47:57 +0000 (11 16:47 +0200)]
WPrefs: Add MinimizeAllKey shortcut configuration

13 years agoAdd key binding to minimize all windows
Alexey I. Froloff [Fri, 10 Sep 2010 16:51:05 +0000 (10 20:51 +0400)]
Add key binding to minimize all windows

MinimizeAllKey - minimize all windows on current workspace.

Original-patch-by: Pavel S. Khmelinsky <hmepas@yauza.ru>
Signed-off-by: Alexey I. Froloff <raorn@altlinux.org>
[crmafra: AllMinimizeKey --> MinimizeAllKey]

13 years agoMenu translation support
Alexey I. Froloff [Fri, 10 Sep 2010 16:51:02 +0000 (10 20:51 +0400)]
Menu translation support

When generating menus, lookup translations for menu entries in
specified textdomain.  Often used by linux distributions.

Original-patch-by: Alexey Voinov <voins@altlinux.ru>
Signed-off-by: Alexey I. Froloff <raorn@altlinux.org>
13 years agoLuxi Sans doesn't have cyrillic
Alexey I. Froloff [Fri, 10 Sep 2010 16:50:59 +0000 (10 20:50 +0400)]
Luxi Sans doesn't have cyrillic

Replace "Luxi Sans" with "sans serif".

Original-patch-by: Alexey Voinov <voins@altlinux.ru>
Signed-off-by: Alexey I. Froloff <raorn@altlinux.org>
13 years agoRaise shaded window frame when unhiding
Alexey I. Froloff [Fri, 10 Sep 2010 16:50:58 +0000 (10 20:50 +0400)]
Raise shaded window frame when unhiding

When unhiding window by clicking its appicon, unconditionaly
raise its frame.

Original-patch-by: Artem Delendik <u2u@nm.ru>
Signed-off-by: Alexey I. Froloff <raorn@altlinux.org>
13 years agoMove debugging symbols to new wmaker-dbg package
Andreas Metzler [Sat, 4 Sep 2010 16:07:19 +0000 (4 18:07 +0200)]
Move debugging symbols to new wmaker-dbg package

Debian packaging change. Strip binaries (as required by policy) and
provide detached debugging symbols in newly added wmaker-dbg package.

13 years agoAdd version script versioning for libwraster
Andreas Metzler [Sun, 29 Aug 2010 14:13:41 +0000 (29 16:13 +0200)]
Add version script versioning for libwraster

Enable symbol-versioning for libwraster and stop exporting public
symbols.

13 years agoImport ld-version-script.m4 from gnulib
Andreas Metzler [Sun, 29 Aug 2010 14:13:40 +0000 (29 16:13 +0200)]
Import ld-version-script.m4 from gnulib

ld-version-script.m4 provides a test to check whether binutils support
symbol versioning.

13 years agoSet library version in configure.ac
Andreas Metzler [Sun, 29 Aug 2010 14:13:39 +0000 (29 16:13 +0200)]
Set library version in configure.ac

Keep libtool's -version-info arguments for the three libraries
(libwraster, libWINGs and libWUtil) centralized in configure.ac
instead of in the specific Makefile.am.

13 years agoPass tarname argument to AC_INIT
Andreas Metzler [Sun, 29 Aug 2010 12:41:33 +0000 (29 14:41 +0200)]
Pass tarname argument to AC_INIT

If AC_INIT is invoked without tarname argument PACKAGE_TARNAME and
PACKAGE will be sanitized (lowercased, and all characters other than
alphanumerics and underscores are changed to ‘-’.)

For windowmaker this has the sideeffect of changing install directories,
util/wmaker.inst installs stuff to #pkgdatadir# which suddenly is
/usr/share/windowmaker instead of /usr/share/WindowMaker.

Supplement AC_INIT invokation with tarname (and while we are at it url)
argument to fix this.

13 years agoBuild Debian packages with RandR support
Andreas Metzler [Sun, 29 Aug 2010 11:42:33 +0000 (29 13:42 +0200)]
Build Debian packages with RandR support

Add libxrandr-dev to build-depends.

13 years agoWINGs: Remove private snprintf() implementation
Carlos R. Mafra [Tue, 24 Aug 2010 23:53:58 +0000 (25 01:53 +0200)]
WINGs: Remove private snprintf() implementation

The code was added in 2001 in commit acdc0e3d6b7 for
"backwards compat". This motivation no longer exists in 2010,
so there is no reason to keep a private implementation of
a standard function from the C library.

13 years agoconfigure: Remove --disable-verbose-compile hack
Carlos R. Mafra [Tue, 24 Aug 2010 15:06:27 +0000 (24 17:06 +0200)]
configure: Remove --disable-verbose-compile hack

Instead of using the --disable-verbose-compile hack, let's
use the standard option --enable-silent-rules (or 'make V=0' directly)
available with autoconf 1.11 and higher.

This is enabled in autoconf by using 'silent-rules' in AM_INIT_AUTOMAKE.
The verbosity of compilation is reduced in a similar manner as using
the --disable-verbose-compile option, so we can remove all that ugly
hackery.

13 years agoconfigure: Remove gcc warning about signed x unsigned
Carlos R. Mafra [Tue, 24 Aug 2010 15:22:26 +0000 (24 17:22 +0200)]
configure: Remove gcc warning about signed x unsigned

13 years agoconfigure: Replace obsolete macros
Carlos R. Mafra [Tue, 24 Aug 2010 14:04:33 +0000 (24 16:04 +0200)]
configure: Replace obsolete macros

13 years agoconfigure: Use AS_HELP_STRING macro to print messages
Carlos R. Mafra [Tue, 24 Aug 2010 13:10:44 +0000 (24 15:10 +0200)]
configure: Use AS_HELP_STRING macro to print messages

According to the autoconf manual, using AS_HELP_STRING is recommended
to avoid having to manually adjust the alignment of help text
in ./configure --help

13 years agoAvoid more gcc warnings
Carlos R. Mafra [Fri, 16 Apr 2010 16:12:25 +0000 (16 18:12 +0200)]
Avoid more gcc warnings

WUtil.h:212: warning: function declaration isn’t a prototype
WUtil.h:259: warning: function declaration isn’t a prototype
WUtil.h:300: warning: function declaration isn’t a prototype
WINGsP.h:593: warning: function declaration isn’t a prototype
WINGsP.h:599: warning: function declaration isn’t a prototype
WINGs.h:616: warning: function declaration isn’t a prototype

raster.c:295: warning: no previous prototype for ‘calculateCombineArea’

13 years agoAdd /usr/local/share/WindowMaker dir to wmgenmenu
Carlos R. Mafra [Sun, 18 Apr 2010 11:26:06 +0000 (18 13:26 +0200)]
Add /usr/local/share/WindowMaker dir to wmgenmenu

13 years agoFix build failure on missing randr
Andreas Metzler [Sun, 29 Aug 2010 11:31:58 +0000 (29 13:31 +0200)]
Fix build failure on missing randr

When building without xrandr support do not try to modify undefined
variable has_randr.

13 years agoMake wmaker XRandR aware
Carlos R. Mafra [Sun, 22 Aug 2010 17:05:07 +0000 (22 19:05 +0200)]
Make wmaker XRandR aware

This patch makes wmaker automatically Restart() to take into account
resolution changes done by xrandr.

The motivation to write this patch is that when I start my laptop connected
to an external monitor (VGA1), the resolution in the monitor is initially
wrong (perhaps this is a bug in XOrg or OpenSuse, but anyway), so I always
do this after starting wmaker:

xrandr --output VGA1 --preferred

The resolution in the external monitor gets fixed, but wmaker does not
recognize the change automatically and I have to manually restart it.

So this patch avoids the last step by making wmaker be XRandR-aware.
Wmaker now restarts automatically when it receives a RRChangeScreenNotify
event and I don't have to do the last part of the silly procedure described
above.

I am not sure if restarting wmaker is the most elegant solution, but
it at least solves part of my issue with wmaker + xrandr.

13 years agoCorrect .TH header
Andreas Metzler [Sat, 21 Aug 2010 06:39:41 +0000 (21 08:39 +0200)]
Correct .TH header

The space in "Window Maker" needs to be escaped in the .TH header,
otherwise parsing fails. (The section would be set to MAKER instead of
1x.)

13 years agoAdd Russian manpages
NIR Ginko [Wed, 18 Aug 2010 14:44:37 +0000 (18 18:44 +0400)]
Add Russian manpages

[includes build fixes by Andreas Metzler]

13 years agoMade Debian autobuild work again
Martin Dietze [Thu, 19 Aug 2010 09:40:27 +0000 (19 11:40 +0200)]
Made Debian autobuild work again

13 years agoSelectWindowsMouseButton -> MouseLeftButtonAction
Andreas Metzler [Wed, 18 Aug 2010 13:13:02 +0000 (18 15:13 +0200)]
SelectWindowsMouseButton -> MouseLeftButtonAction

Implement the switch from SelectWindowsMouseButton et al. to
MouseLeftButtonAction = SelectWindows from WindowMaker 0.65 in Debian's
customized defaults. Closes: #116963

13 years agoAdd some bug closers
Andreas Metzler [Wed, 18 Aug 2010 13:12:59 +0000 (18 15:12 +0200)]
Add some bug closers

List debian bugs fixed in wmaker-crm in debian/changelog.

13 years agoUse automake instead of automake1.4.
Andreas Metzler [Wed, 18 Aug 2010 13:12:58 +0000 (18 15:12 +0200)]
Use automake instead of automake1.4.

Use latest automake (instead of automake1.4) for building.
Closes: #549157

13 years agoupdate debian/changelog.
Andreas Metzler [Mon, 16 Aug 2010 17:14:44 +0000 (16 19:14 +0200)]
update debian/changelog.

13 years agoTypo fixes
Andreas Metzler [Mon, 16 Aug 2010 15:52:22 +0000 (16 17:52 +0200)]
Typo fixes

13 years agoEscape minus sign ("-") in manpages.
Andreas Metzler [Mon, 16 Aug 2010 15:35:14 +0000 (16 17:35 +0200)]
Escape minus sign ("-") in manpages.

man will render - as a hyphen (U+2010) instead of as a minus sign
(U+002D). Fix this by escaping the dash, using \-.

13 years agoinvoke dh_installdeb after dh_makeshlibs
Andreas Metzler [Mon, 16 Aug 2010 14:34:55 +0000 (16 16:34 +0200)]
invoke dh_installdeb after dh_makeshlibs

lintian says

W: wmaker source: debian-rules-calls-debhelper-in-odd-order
dh_makeshlibs

and indeed invoking dh_installdeb (which install the maintainerscripts)
before dh_makeshlibs can add the ldconfig call to them causes these
errors:
E: libwutil1: postinst-must-call-ldconfig usr/lib/libWUtil.so.1.0.2
E: libwings2: postinst-must-call-ldconfig usr/lib/libWINGs.so.2.0.1

13 years agoShip libWUtils and libWINGs in dedicated packages
Andreas Metzler [Mon, 16 Aug 2010 14:34:54 +0000 (16 16:34 +0200)]
Ship libWUtils and libWINGs in dedicated packages

Shared libraries need to be shipped in separate packages with shlibs
information. Add libwutil1 and libwings2 packages and let libwings-dev
depend on them.

13 years agoDrop dead code from debian rules
Andreas Metzler [Mon, 16 Aug 2010 14:29:51 +0000 (16 16:29 +0200)]
Drop dead code from debian rules

13 years agoRemove unneeded directory creation
Andreas Metzler [Mon, 16 Aug 2010 14:29:50 +0000 (16 16:29 +0200)]
Remove unneeded directory creation

There is no need to generate $mandir manually, dh_installman will do
this if necessary.

13 years agoGenerate symlink with dh_link instead of ln -s
Andreas Metzler [Mon, 16 Aug 2010 14:29:49 +0000 (16 16:29 +0200)]
Generate symlink with dh_link instead of ln -s

13 years agoInvoke dh_link only once.
Andreas Metzler [Mon, 16 Aug 2010 14:29:48 +0000 (16 16:29 +0200)]
Invoke dh_link only once.

Instead of calling dh_link multiple times (once for each symlink) just
call it once, listing the requested links in debian/package.links.

13 years agoInvoke dh_installman only once.
Andreas Metzler [Mon, 16 Aug 2010 14:29:47 +0000 (16 16:29 +0200)]
Invoke dh_installman only once.

Instead of calling dh_installman multiple times just call it once. List
the manpages that should be installed in package specific
debian/package.manpages.

13 years agoUse dh_lintian.
Andreas Metzler [Mon, 16 Aug 2010 14:29:46 +0000 (16 16:29 +0200)]
Use dh_lintian.

Simplify debian/rules by making use of dh_lintian.

13 years agoDrop code for generating debian/conffiles
Andreas Metzler [Mon, 16 Aug 2010 14:29:45 +0000 (16 16:29 +0200)]
Drop code for generating debian/conffiles

Starting with debhelper v3 mode every file in etc is flagged as a
conffile by dh_installdeb. - Drop (commented) code for doing this
manually from debian/rules.

13 years agostop removing debian/files manually
Andreas Metzler [Mon, 16 Aug 2010 14:29:44 +0000 (16 16:29 +0200)]
stop removing debian/files manually

There is no need to delete debian/files, dh_clean automatically takes
care of this.

13 years agoUse static debian/libwraster*.files.
Andreas Metzler [Mon, 16 Aug 2010 14:29:43 +0000 (16 16:29 +0200)]
Use static debian/libwraster*.files.

debian/*files (or debian/*.install) is usually not generate
dynamically. Implement this for debian/libwraster3-dev.files and
debian/libwraster3.files.

13 years agoUse static debian/libwings-dev.files.
Andreas Metzler [Mon, 16 Aug 2010 14:29:42 +0000 (16 16:29 +0200)]
Use static debian/libwings-dev.files.

debian/*files (or debian/*.install) is usually not generated
dynamically. Implement this for libwings-dev.files.

13 years agoremove dead outdated code from debian/rules
Andreas Metzler [Mon, 16 Aug 2010 14:29:41 +0000 (16 16:29 +0200)]
remove dead outdated code from debian/rules

-isp is default behaviour of dpkg-gencontrol since 1.13.16 (18 Feb
2006)

The code for generating debian/shlibs.local is not used, remove it.

dpkg-shlibdeps already searches in debian/libwraster3/usr/lib/ by
default.

13 years agodo not run complete debian build under fakeroot
Andreas Metzler [Mon, 16 Aug 2010 14:29:40 +0000 (16 16:29 +0200)]
do not run complete debian build under fakeroot

Use dpkg-buildpackage -rfakeroot option to only run the parts of the
package generation process which require (fake)root privileges under
fakeroot. (e.g. debian/rules build should not be run as root.)

13 years agopatch management with dpkg-source v3
Andreas Metzler [Mon, 16 Aug 2010 14:29:39 +0000 (16 16:29 +0200)]
patch management with dpkg-source v3

Simplify debian/rules by using dpkg-source v3 (quilt) instead of the
home-grown patch system in debian/rules.

Change debian/nightly_build.sh to build a non-native package.

13 years agoremove cruft from debian/rules
Andreas Metzler [Mon, 16 Aug 2010 14:29:38 +0000 (16 16:29 +0200)]
remove cruft from debian/rules

13 years agoRemove ./libtool on clean
Andreas Metzler [Sat, 7 Aug 2010 12:34:53 +0000 (7 14:34 +0200)]
Remove ./libtool on clean

... otherwise it is not possible to build twice from the
same unpacked sourcetree.

13 years agoUse ${binary:Version} instead of ${Source-Version}
Andreas Metzler [Sat, 7 Aug 2010 12:34:52 +0000 (7 14:34 +0200)]
Use ${binary:Version} instead of ${Source-Version}

Use ${binary:Version} instead of deprecated ${Source-Version}
(Lintian: substvar-source-version-is-deprecated).

13 years agoUse dh_prep instead of "dh_clean -k"
Andreas Metzler [Sat, 7 Aug 2010 12:34:51 +0000 (7 14:34 +0200)]
Use dh_prep instead of "dh_clean -k"

Use dh_prep instead of "dh_clean -k" (dh-clean-k-is-deprecated). However
do not replace instances of dh_clean without -k option. (Debian
bug590244). Build-Depend on debhelper 7.

13 years agoInvoke ./configure with correct --build argument.
Andreas Metzler [Sat, 7 Aug 2010 12:34:50 +0000 (7 14:34 +0200)]
Invoke ./configure with correct --build argument.

Invoke ./configure with correct --build argument, as per
/usr/share/doc/autotools-dev/README.Debian.gz.

13 years agoMove homepage from description text to homepage field.
Andreas Metzler [Sat, 7 Aug 2010 12:34:49 +0000 (7 14:34 +0200)]
Move homepage from description text to homepage field.

13 years agoAdd ${misc:Depends} to all package dependencies.
Andreas Metzler [Sat, 7 Aug 2010 12:34:48 +0000 (7 14:34 +0200)]
Add ${misc:Depends} to all package dependencies.

13 years agoAdd libxmu-dev to build-depends.
Andreas Metzler [Sat, 7 Aug 2010 12:34:47 +0000 (7 14:34 +0200)]
Add libxmu-dev to build-depends.

13 years agoline wrap build-depends for enhanced readability.
Andreas Metzler [Sat, 7 Aug 2010 12:34:46 +0000 (7 14:34 +0200)]
line wrap build-depends for enhanced readability.

line-wrapping has been allowed in debian/control since 3.7.0.0, released
April 2006.

13 years agoFix duplicate entry in manpage.
Andreas Metzler [Sun, 1 Aug 2010 15:55:13 +0000 (1 17:55 +0200)]
Fix duplicate entry in manpage.

/usr/share/WindowMaker/Pixmaps/ is listed twice, delete second line.
[Pulled from WindowMaker Debian packaging.]

13 years agofloppy mountpoint is /media/floppy
Andreas Metzler [Sun, 1 Aug 2010 15:48:34 +0000 (1 17:48 +0200)]
floppy mountpoint is /media/floppy

Correct floppy mountpoint location to match FHS.

Quoting FHS <http://www.pathname.com/fhs/pub/fhs-2.3.html>:
/media : Mount point for removeable media
Purpose

This directory contains subdirectories which are used as mount points for removeable media such as floppy disks, cdroms and zip disks.
[...]
The following directories, or symbolic links to directories, must be in /media, if the corresponding subsystem is installed:

Directory Description
floppy Floppy drive (optional)
[...]

13 years agolink libWINGs against libm if necessary
Andreas Metzler [Sun, 1 Aug 2010 14:07:22 +0000 (1 16:07 +0200)]
link libWINGs against libm if necessary

libWINGs is using mathematical functions (atan, sqrt, etc.). Check
whether we need to lik against libm to use these and link libWINGs
against it if necessary.

13 years agolink libWINGs against libfontconfig
Andreas Metzler [Sun, 1 Aug 2010 13:19:27 +0000 (1 15:19 +0200)]
link libWINGs against libfontconfig

libWINGs is using libfontconfig function (not just via libXft, e.g.
FcPatternDel). Search for library in ./configure and link libWINGs
against it.

13 years agolink libWINGs against libXft
Andreas Metzler [Sun, 1 Aug 2010 13:08:20 +0000 (1 15:08 +0200)]
link libWINGs against libXft

libWINGs is using libXft functions (e.g. XftFontClose). Link libWINGs
against libXft.

ametzler@argenau:/tmp/WMAKER/wmaker-crm$ LD_LIBRARY_PATH=debian/wmaker/usr/lib ldd -r debian/wmaker/usr/lib/libWINGs.so.2.0.1 2>&1 | grep XftFontClose
undefined symbol: XftFontClose (debian/wmaker/usr/lib/libWINGs.so.2.0.1)

13 years agolink libWINGs against libwraster
Andreas Metzler [Sun, 1 Aug 2010 12:59:06 +0000 (1 14:59 +0200)]
link libWINGs against libwraster

libWINGs is using libwraster functions (e.g. RScaleImage) and therefore
needs to be linked against it.

ametzler@argenau:/tmp/WMAKER/wmaker-crm$ env LD_LIBRARY_PATH=debian/wmaker/usr/lib ldd -r debian/wmaker/usr/lib/libWINGs.so.2.0.1 2>&1 | grep RScaleIma
undefined symbol: RScaleImage   (debian/wmaker/usr/lib/libWINGs.so.2.0.1)

13 years agolink libWINGs against libWUtil
Andreas Metzler [Sun, 1 Aug 2010 12:49:37 +0000 (1 14:49 +0200)]
link libWINGs against libWUtil

libWINGs is using libWUtil functions (e.g. WMAddIdleHandler). Reorder
lib_LTLIBRARIES to build libWUtil before libWINGs. Link libWINGs against
libWUtil.

13 years agowrlib: Use snprintf() instead of sprintf()
Tamas TEVESZ [Tue, 11 May 2010 00:00:49 +0000 (11 02:00 +0200)]
wrlib: Use snprintf() instead of sprintf()

14 years agoFix wheel resizing with resize increments
Brad Jorsch [Mon, 26 Apr 2010 17:56:38 +0000 (26 13:56 -0400)]
Fix wheel resizing with resize increments

In C, dividing two integers automatically rounds towards zero, so ceil(a
/ b) is useless as the result is truncated before ceil ever sees it. The
correct result for positive integers is obtained by (a + b - 1) / b.

14 years agoDon't grab Ctrl+Wheel if ResizeIncrement is 0
Brad Jorsch [Mon, 26 Apr 2010 17:56:37 +0000 (26 13:56 -0400)]
Don't grab Ctrl+Wheel if ResizeIncrement is 0

I personally cannot stand stealing Ctrl+Wheel for resizing windows, so I
turned it off. But wmaker is still preventing Ctrl+Wheel from reaching
apps, which is certainly not the behavior I desire.

14 years agoFix mouse button grab swallowing
Brad Jorsch [Mon, 26 Apr 2010 17:56:36 +0000 (26 13:56 -0400)]
Fix mouse button grab swallowing

We grab Mod+Button events for our own purposes, and swallow them using
XAllowEvents(AsyncPointer) to prevent the client window from seeing
them. But if events are coming in fast enough (e.g. via fast wheel
scrolling) so that multiple grabbed events are in the queue, the second
queued event would be allowed to leak through to the client by the
unconditional XAllowEvents(ReplayPointer) a few lines later.

14 years agoRemove NEWSTUFF #ifdef's
Carlos R. Mafra [Fri, 16 Apr 2010 10:47:25 +0000 (16 12:47 +0200)]
Remove NEWSTUFF #ifdef's

...as they are never defined and there is no code associated to it.

14 years agoAdd include guards
Carlos R. Mafra [Wed, 14 Apr 2010 12:26:32 +0000 (14 14:26 +0200)]
Add include guards

14 years agoRemove unneeded extern's in .c files
Carlos R. Mafra [Wed, 14 Apr 2010 09:01:14 +0000 (14 11:01 +0200)]
Remove unneeded extern's in .c files

They were not being used in those files, so let's remove them.

14 years agoAddress some sparse warnings
Carlos R. Mafra [Mon, 12 Apr 2010 21:31:59 +0000 (12 23:31 +0200)]
Address some sparse warnings

Plain integer as NULL pointer, non-ANSI function declaration etc.

14 years agoAdd missing initializers
Tamas TEVESZ [Mon, 12 Apr 2010 09:46:23 +0000 (12 11:46 +0200)]
Add missing initializers

14 years agoAdd i18n labels to wmgenmenu
Tamas TEVESZ [Sun, 11 Apr 2010 19:12:01 +0000 (11 21:12 +0200)]
Add i18n labels to wmgenmenu

14 years agoAdd more pretty names for wmgenmenu apps
Carlos R. Mafra [Sat, 10 Apr 2010 20:13:31 +0000 (10 22:13 +0200)]
Add more pretty names for wmgenmenu apps

14 years agoAdd nice labels to wmgenmenu
Tamas TEVESZ [Sat, 10 Apr 2010 15:37:01 +0000 (10 17:37 +0200)]
Add nice labels to wmgenmenu

14 years agoFix loading saved states on 64-bit systems
Brad Jorsch [Fri, 9 Apr 2010 19:49:06 +0000 (9 15:49 -0400)]
Fix loading saved states on 64-bit systems

One misuse of CARD32 was missed back when someone fixed the 64-bit
issues (background: X has 8-bit, 16-bit, and "32-bit stored in a long"
data formats; on a 64-bit system, long is 64 bits). This was causing
minimized windows to be restored as shaded, and possibly occasional
crashes, when wmaker was restarted.

Also, throw in a safety check that 10 items really were returned before
trying to access them.

14 years agoFix 'make install' from silent compilation
Carlos R. Mafra [Fri, 9 Apr 2010 21:56:26 +0000 (9 23:56 +0200)]
Fix 'make install' from silent compilation

14 years agoRemove apparently-unused files
Brad Jorsch [Fri, 9 Apr 2010 14:40:53 +0000 (9 10:40 -0400)]
Remove apparently-unused files

WPrefs.app/Font.c - unused since 2004
wrlib/configure.in - not used and not really edited since 1998, so it's
    probably very out of date

14 years agoIgnore build files
Brad Jorsch [Fri, 9 Apr 2010 14:40:52 +0000 (9 10:40 -0400)]
Ignore build files

Ignore various files created by autotools, so they don't clutter the
"git status" output.

14 years agoFix "make dist"
Brad Jorsch [Fri, 9 Apr 2010 14:40:51 +0000 (9 10:40 -0400)]
Fix "make dist"

The "make dist" command can be used to generate the release tarball, but
only if the Makefile.am correctly specifies EXTRA_DIST, specifies
headers in foo_SOURCES, and so on.

14 years agoRename INSTALL.pt
Brad Jorsch [Fri, 9 Apr 2010 14:40:50 +0000 (9 10:40 -0400)]
Rename INSTALL.pt

All the other INSTALL files were renamed INSTALL-WMAKER, but this one
was forgotten.

14 years agoKill contribs
Tamas TEVESZ [Fri, 9 Apr 2010 01:44:23 +0000 (9 03:44 +0200)]
Kill contribs

- Patches don't apply
- RPM spec refers to stuff long dead, distros probably have better
  ones anyway

14 years agoFix CRLF files
Tamas TEVESZ [Fri, 9 Apr 2010 00:40:56 +0000 (9 02:40 +0200)]
Fix CRLF files

14 years agoFix Debian builds
Tamas TEVESZ [Fri, 9 Apr 2010 00:34:35 +0000 (9 02:34 +0200)]
Fix Debian builds

14 years agoFix enable-modelock warnings
Brad Jorsch [Thu, 8 Apr 2010 21:01:24 +0000 (8 17:01 -0400)]
Fix enable-modelock warnings

Fix warnings that only show up when --enable-modelock is passed to
./configure.

14 years agoPlug leak
Tamas TEVESZ [Thu, 8 Apr 2010 19:50:04 +0000 (8 21:50 +0200)]
Plug leak

14 years agoFix uninitialized vars
Brad Jorsch [Thu, 8 Apr 2010 18:43:52 +0000 (8 14:43 -0400)]
Fix uninitialized vars

Initialized variables that are conditionally set. In particular, this
construct is dangerous:
  void *p;
  if (something) p = couldReturnNull();
  if (!p) p = fallbackFunction();

14 years agoXShapeEvent strict aliasing violation
Brad Jorsch [Thu, 8 Apr 2010 18:43:51 +0000 (8 14:43 -0400)]
XShapeEvent strict aliasing violation

C99 defines new strict aliasing rules to allow compilers to make certain
optimizations. These rules prohibit converting an XEvent to an event
struct (e.g. XShapeEvent) that is not already in the XEvent union using
pointer type punning (e.g. "(XShapeEvent *)&ev"), and vice versa. The
canonical fix seems to be to create a union between XEvent and the
extension event struct to make the aliasing explicit, so do that.

14 years agoFix PO files breaking build
Tamas TEVESZ [Fri, 9 Apr 2010 00:30:50 +0000 (9 02:30 +0200)]
Fix PO files breaking build

14 years agoFix internationalized format string warnings
Brad Jorsch [Thu, 8 Apr 2010 18:43:50 +0000 (8 14:43 -0400)]
Fix internationalized format string warnings

A few internationalized format strings have only one %s in the default
while two strings are being passed. Change those defaults to have two
%s's, which means we also have to update the .po files to match. May as
well throw in the extra %s in the translated version while we're at it.

14 years agoFix trivial warnings
Brad Jorsch [Thu, 8 Apr 2010 18:43:49 +0000 (8 14:43 -0400)]
Fix trivial warnings

 * Format string integer size warnings
 * Missing or non-value returns in non-void functions
 * A missing #include in WPrefs.app/MouseSettings.c

14 years agoFix out-of-tree builds
Tamas TEVESZ [Thu, 8 Apr 2010 19:38:03 +0000 (8 21:38 +0200)]
Fix out-of-tree builds

- The throwing out of autogen.sh in favor of autoreconf comes from
  http://www.gnu.org/software/automake/manual/autoconf/autoreconf-Invocation.html#autoreconf-Invocation
- 'think that instead of the exit, some better way should be put in
  to control whether or not to automatically run configure. Or maybe
  just don't even run it.

14 years agoRemove install-sh, missing and mkinstalldirs from the repo
Carlos R. Mafra [Fri, 9 Apr 2010 13:12:02 +0000 (9 15:12 +0200)]
Remove install-sh, missing and mkinstalldirs from the repo

..as they get overwritten by the configure stuff.

14 years agoRename wmaker INSTALL file
Carlos R. Mafra [Fri, 9 Apr 2010 12:55:34 +0000 (9 14:55 +0200)]
Rename wmaker INSTALL file

..so that it does not get overwritten by the configure stuff.

14 years agoDo not skip windows in the switchpanel
Carlos R. Mafra [Thu, 8 Apr 2010 16:15:31 +0000 (8 18:15 +0200)]
Do not skip windows in the switchpanel

If a window has the skip_window_list flag set wmaker currently not only skips
this window from the window list (F11) but also from the switchpanel (TAB).

This patch makes skip_window_list-windows appear in the switchpanel and be
skipped only in the window list, strictly honoring what the name of the flag
is supposed to mean.

The motivation for this is that I have lots of workspaces and almost all of
them has a xterm, so that I set the skip_window_list for the xterms not to
overcrowd the window list. But I still want to alt+TAB to xterms on the current
workspace.

In addition to that, now the "internal window" flag is not checked before
appearing in the switchpanel.

14 years agoUse int instead of size_t to silence warning
Carlos R. Mafra [Thu, 8 Apr 2010 15:11:35 +0000 (8 17:11 +0200)]
Use int instead of size_t to silence warning

gcc-4.4.1 was complaining:

fontconv.c: In function ‘mapWeightToName’:
fontconv.c:114: warning: field precision should have type ‘int’, but argument 4 has type ‘size_t’
fontconv.c:114: warning: field precision should have type ‘int’, but argument 4 has type ‘size_t’
fontconv.c: In function ‘xlfdToFc’:
fontconv.c:157: warning: field precision should have type ‘int’, but argument 4 has type ‘size_t’
fontconv.c:157: warning: field precision should have type ‘int’, but argument 4 has type ‘size_t’

14 years agoTidy
Tamas TEVESZ [Sat, 3 Apr 2010 16:13:13 +0000 (3 18:13 +0200)]
Tidy

- Kill unused vars in wrlib
- Add missing initializers to defaults.c:staticOptionList
- Re-format it slightly
- Kill some dead code
- Kill stupid "if (const op var)"

14 years agoMenu positioning bug
Brad Jorsch [Fri, 2 Apr 2010 17:31:31 +0000 (2 13:31 -0400)]
Menu positioning bug

I noticed a bug today in menu workspace positioning (in the next tree):
if I right-click and hold the button down at the left edge of the
screen, the menu appears (correctly) half off the edge but will *not*
slide back onto the screen. Compare the behavior to right-clicking at
the right edge of the screen: the menu appears half off the edge, but
sliding the mouse to the edge causes the menu to slide until it is fully
visible.

Also, opening a submenu in this state positions the submenu as if the
menu were fully on the screen, leaving a gap between the menu and the
submenu.

If the menu happens to also go off the bottom of the screen, moving the
mouse to the bottom edge causes the issue to be magically fixed as soon
as the sliding upwards begins.

I also note inconsistent behavior when simply right-clicking (without
holding) to bring up the menu: at the right or bottom edge the menu
appears in the correct partially off the edge position, but at the left
edge it immediately jumps to be fully on-screen, almost as if
WrapMenus = YES were set for the left edge only.

I bisected it to d3162603952a8a00cdafe390791e4e99d2118dc1. As far as I
can tell the "fix" there was to position the menu at the correct
negative X position but then lie to wmaker so it thought the menu was at
X=0. Presumably the "WrapMenus" behavior was the intended result.

Since (AFAIK) the window menu is the only one with this problem, why
don't we just check if x is too negative in OpenWindowMenu()?

14 years agoFix spacing on WPrefs Misc panel
Tamas TEVESZ [Fri, 2 Apr 2010 12:25:34 +0000 (2 14:25 +0200)]
Fix spacing on WPrefs Misc panel

- w/o XKB_MODELOCK it looks like shit anyway, so let's at least
  make the w/ XKB_MODELOCK case readable.

14 years agoMake WPrefs' Expert panel scrollable
Tamas TEVESZ [Fri, 2 Apr 2010 10:05:53 +0000 (2 12:05 +0200)]
Make WPrefs' Expert panel scrollable