Brad Jorsch [Wed, 15 Sep 2010 16:59:00 +0000 (15 12:59 -0400)]
Improve dockapp recognition
On Wed, Sep 15, 2010 at 04:40:52PM +0200, Gilbert wrote:
>
> "." = {NoAppIcon = Yes;};
> "*" = {NoAppIcon = Yes;};
Oh, I see. It lets you override NoAppIcon generically instead of for
each app.
> Exactly, having 'DockApp' as the class name makes them behave more
> consistently internally. This might be fixed in some other way
> internally, but I couldn't figure it out...
Except it doesn't, the only thing it changes inside wmaker is that it
avoids displaying the name as "DockApp" on the settings window.
A "dockapp" is just an application that sets icon_window in WM_HINTS
(which causes a window to be displayed as the app icon) and
initial_state to WithdrawnState (which causes the main window to not
actually appear when the window is mapped). The class has nothing to do
with it.
The problems I mentioned stem from gtk+ not allowing you to set
initial_state to WithdrawnState. Openbox and fluxbox (and maybe others)
don't take the icon_window into their "slit" unless initial_state is
WithdrawnState, so the whole thing completely fails. Wmaker always uses
the icon_window for the app icon, so that part works fine, but the
"main" app window still flashes onscreen for a split second before the
app can call gdk_window_withdraw(), and wmaker applies SharedAppIcon to
it which winds up screwing up the "Kill" menu option.
That said, I've attached a patch to have wmaker treat any window with
class DockApp as if it had initial_state = WithdrawnState, and hopefully
openbox, fluxbox, and the like will pick up the idea too so gtk+
hacks[1] will no longer be needed. If this patch is accpeted, I'll poke
fluxbox and openbox to suggest the idea to them.
[1] E.g. http://wmudmount.svn.sourceforge.net/viewvc/wmudmount/dock.c?r1=8&r2=7
Subject: [PATCH] Improve dockapp recognition
Dockapps are traditionally recognized by having initial_state =
WithdrawnState in WM_HINTS. But some toolkits (e.g. gtk+) will not allow
setting initial_state in this way. So we offer an alternative: any
window with the res_class portion of WM_CLASS set as "DockApp" will be
treated as if it had initial_state = WithdrawnState.
Carlos R. Mafra [Sun, 12 Sep 2010 20:59:55 +0000 (12 22:59 +0200)]
WPrefs: Add ShowClipTitle config option
To "document" the new configuration option, let's make
it possible to configure it in the "Expert Panel" of
WPrefs.
Alexey I. Froloff [Fri, 10 Sep 2010 16:51:04 +0000 (10 20:51 +0400)]
Option to disable clip title
Completely disable clip caption.
Original-patch-by: Alexey Voinov <voins@altlinux.ru>
Signed-off-by: Alexey I. Froloff <raorn@altlinux.org>
Carlos R. Mafra [Sat, 11 Sep 2010 15:26:22 +0000 (11 17:26 +0200)]
wconfig: Define BOUNCE_APP and NEWAPPICON
Alexey I. Froloff [Fri, 10 Sep 2010 16:51:07 +0000 (10 20:51 +0400)]
Highlite current window's appicon
This patch highlites appicon of a currently focused window.
Original-patch-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Alexey I. Froloff <raorn@altlinux.org>
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>
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>
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>
Carlos R. Mafra [Sat, 11 Sep 2010 14:47:57 +0000 (11 16:47 +0200)]
WPrefs: Add MinimizeAllKey shortcut configuration
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]
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>
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>
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>
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.
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.
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.
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.
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.
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.
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.
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.
Carlos R. Mafra [Tue, 24 Aug 2010 15:22:26 +0000 (24 17:22 +0200)]
configure: Remove gcc warning about signed x unsigned
Carlos R. Mafra [Tue, 24 Aug 2010 14:04:33 +0000 (24 16:04 +0200)]
configure: Replace obsolete macros
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
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’
Carlos R. Mafra [Sun, 18 Apr 2010 11:26:06 +0000 (18 13:26 +0200)]
Add /usr/local/share/WindowMaker dir to wmgenmenu
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.
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.
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.)
NIR Ginko [Wed, 18 Aug 2010 14:44:37 +0000 (18 18:44 +0400)]
Add Russian manpages
[includes build fixes by Andreas Metzler]
Martin Dietze [Thu, 19 Aug 2010 09:40:27 +0000 (19 11:40 +0200)]
Made Debian autobuild work again
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
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.
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
Andreas Metzler [Mon, 16 Aug 2010 17:14:44 +0000 (16 19:14 +0200)]
update debian/changelog.
Andreas Metzler [Mon, 16 Aug 2010 15:52:22 +0000 (16 17:52 +0200)]
Typo fixes
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 \-.
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
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.
Andreas Metzler [Mon, 16 Aug 2010 14:29:51 +0000 (16 16:29 +0200)]
Drop dead code from debian rules
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.
Andreas Metzler [Mon, 16 Aug 2010 14:29:49 +0000 (16 16:29 +0200)]
Generate symlink with dh_link instead of ln -s
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.
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.
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.
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.
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.
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.
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.
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.
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.)
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.
Andreas Metzler [Mon, 16 Aug 2010 14:29:38 +0000 (16 16:29 +0200)]
remove cruft from debian/rules
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.
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).
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.
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.
Andreas Metzler [Sat, 7 Aug 2010 12:34:49 +0000 (7 14:34 +0200)]
Move homepage from description text to homepage field.
Andreas Metzler [Sat, 7 Aug 2010 12:34:48 +0000 (7 14:34 +0200)]
Add ${misc:Depends} to all package dependencies.
Andreas Metzler [Sat, 7 Aug 2010 12:34:47 +0000 (7 14:34 +0200)]
Add libxmu-dev to build-depends.
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.
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.]
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)
[...]
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.
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.
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)
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)
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.
Tamas TEVESZ [Tue, 11 May 2010 00:00:49 +0000 (11 02:00 +0200)]
wrlib: Use snprintf() instead of sprintf()
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.
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.
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.
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.
Carlos R. Mafra [Wed, 14 Apr 2010 12:26:32 +0000 (14 14:26 +0200)]
Add include guards
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.
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.
Tamas TEVESZ [Mon, 12 Apr 2010 09:46:23 +0000 (12 11:46 +0200)]
Add missing initializers
Tamas TEVESZ [Sun, 11 Apr 2010 19:12:01 +0000 (11 21:12 +0200)]
Add i18n labels to wmgenmenu
Carlos R. Mafra [Sat, 10 Apr 2010 20:13:31 +0000 (10 22:13 +0200)]
Add more pretty names for wmgenmenu apps
Tamas TEVESZ [Sat, 10 Apr 2010 15:37:01 +0000 (10 17:37 +0200)]
Add nice labels to wmgenmenu
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.
Carlos R. Mafra [Fri, 9 Apr 2010 21:56:26 +0000 (9 23:56 +0200)]
Fix 'make install' from silent compilation
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
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.
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.
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.
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
Tamas TEVESZ [Fri, 9 Apr 2010 00:40:56 +0000 (9 02:40 +0200)]
Fix CRLF files
Tamas TEVESZ [Fri, 9 Apr 2010 00:34:35 +0000 (9 02:34 +0200)]
Fix Debian builds
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.
Tamas TEVESZ [Thu, 8 Apr 2010 19:50:04 +0000 (8 21:50 +0200)]
Plug leak
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();
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.
Tamas TEVESZ [Fri, 9 Apr 2010 00:30:50 +0000 (9 02:30 +0200)]
Fix PO files breaking build
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.
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
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.
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.
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.
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.