Commit graph

6 commits

Author SHA1 Message Date
Doug Torrance 1a40caacaa wmbutton: Remove version number from README and source code comment. 2017-07-16 10:39:52 +01:00
Weland Treebark 9f5ea8c8d7 wmbutton: fail early on missing config
wmbutton will happily start and display what otherwise looks like a
functioning display even if none of the possible configuration files
exist. However, the application promptly exits as soon as it has to show
a tooltip. This isn't nice. It looks like a crash to an unsuspecting
user. Terminal output is shown, of course, leading to a decently quick
diagnostic, but the fail isn't early enough to be useable.

The trivial fix is to check if the local configuration file (specified
as a command line argument or defaulting to ~/.wmbutton) or the global
configuration file can be open. If neither can be open, we bail out
early.

This *still* has the problem of only really being functional in a
terminal. A graphical error box would definitely be preferable and is a
possible improvement.

Signed-off-by: Weland Treebark <weland@blinkenshell.org>
2014-05-28 21:20:02 +01:00
Rodolfo García Peñas (kix) 501be68377 wmbutton: initTooltip has no argument
The function initTooltip don't have arguments, so their can be removed.
Now the function prototype has the void argument set.
2012-08-21 20:52:24 +01:00
Rodolfo García Peñas (kix) cc68392ccb wmbutton: Middle button enabled by default
The mouse middle button should be enabled by default (see the help
and the manpage). This patch solves this bug.

The MIDMOUSE definition is removed because the value of MIDMOUSE
changes the middle button behaviour. Now, the middle button always works,
except if the user uses the -m argument.

Now the manpage and the help show the same info.
2012-08-21 20:52:12 +01:00
Rodolfo García Peñas (kix) 77a89054f5 wmbutton: wmbutton.c code clean
This patch is a code clean patch:

- Removes spaces and tabs at end of line.
- Remove curly brackets not needed.
- Change spaces by tabs.
- Add spaces after and before operators.
- Removes spaces not needed.
- Better code style.
2012-08-21 20:52:03 +01:00
Rodolfo García Peñas (kix) 6dcdbf0e6e wmbutton dockapp added
The original wmbutton 0.6.1 is added to the repository.

wmbutton is a dockapp with nine buttons (3x3), capable of launch 27
different applications using the left, middle and right buttons.
2012-08-21 20:40:59 +01:00