Commit graph

5850 commits

Author SHA1 Message Date
Sami Kerola
82e300c7ba build-sys: use iconv library detections from gettext
This patch took copy of config.rpath from gettext 0.18.2 to build-aux/
directory.  Software projects usually does not need to do that, because
the file is copied by gettext autopoint in autogen.sh or bootstrap.

In Fluxbox case calling autopoint seems wrong, as it would generate po/
directory with necessary make automation, adn 'msgid' & 'msgstr' files,
but that is not how the translations are done in this project.
2013-05-26 10:38:11 +01:00
Sami Kerola
bc205a9b32 build-sys: unify configure.ac syntax 2013-05-26 10:38:11 +01:00
Sami Kerola
74c414a89f build-sys: add test programs to .gitinore file 2013-05-26 10:38:10 +01:00
Sami Kerola
9e5eddfc3d build-sys: use pkg-config to locate dependencies
This commit alters XRANDR (X Resize And Rotate) extension dependency,
which is expected to have at least version 1.4.  Earlier old versions of
xrandr were supported, at least to some extent.
2013-05-26 10:38:10 +01:00
Sami Kerola
22ddf8fd36 build-sys: move autotools files to subdirectories 2013-05-26 10:38:10 +01:00
Sami Kerola
47b9786533 build-sys: use AC_USE_SYSTEM_EXTENSIONS
The earlier _GNU_SOURCE definitions possibly did not take effect
everywhere where it was intended.
2013-05-26 10:38:10 +01:00
Sami Kerola
73b7958770 build-sys: include config.h to all files using automake
Do not try to be too smart which compilations need config.h, as most of
them will simply because of the config.h has information about system
capabilities.
2013-05-26 10:38:10 +01:00
Sami Kerola
f5bfd27f52 docs: update Doxyfile
Just a simple 'doxygen -u' version update.
2013-05-26 10:38:09 +01:00
Sami Kerola
468ca6813d build-sys: remove unnecessary files 2013-05-26 10:38:09 +01:00
Sami Kerola
95a3c57a7d build-sys: use automake subdir-object 2013-05-26 10:38:09 +01:00
skizzhg
1f24e6decd Removing a blank line in nls/it_IT/Translation.m that breaks the -help output. 2013-05-24 06:39:47 +02:00
Mathias Gumz
c6489ab1b1 more compact code 2013-05-23 09:19:34 +02:00
Mathias Gumz
2da8086673 Use shared code, minor code simplification 2013-05-23 09:18:37 +02:00
Mathias Gumz
9b0cedf961 minor 2013-05-23 09:16:19 +02:00
Peter Hercek
e00c2b784a fix initial window placement to allow proper head detection and window placement based on apps file
* a reasonable initial placement is important for later movements to
  different heads and correct head detection (required by apps file)
* it did not work well in case when (0,0) was not near any head
2013-05-23 08:27:18 +02:00
Peter Hercek
5e3217441a fix head detection for adjacent heads of too different sizes and window placement based on apps file
* if you have e.g a 1920x1200 monitor and a small 800x600 monitor to the
  right of the bigger one and a small window at the right side of the
  big monitor (but still the whole window area at the big monitor) then
  the original head detection would claim the window is on the small
  monitor because (800/2+windowWidth/2 < 1920/2+windowWidth/2) is true
  for small windows; but that is obviously wrong, the window is entirely
  on the big monitor
* these incorrect head detections did lead to incorrect window
  placements as they were required in the apps file
2013-05-23 08:27:15 +02:00
Mathias Gumz
6dca40aae6 Fix regression in rendering the Window-Motion-Outline
Commit 79fe2fca1d checks for pending
motion events and drops out of the FluxboxWindow::motionNotifyEvent() function
early if so. When the user does not use the opaque window movement method an
outline will be drawn to the screen. That outline was not cleaned correctly
with commit 79..
2013-05-16 07:39:54 +02:00
Mathias Gumz
52c374570e minor code simplifications 2013-02-27 09:50:29 +01:00
Soeren Beye
0810d7db5e Workspace switching on the toolbar via the mouse buttons 2013-02-27 09:46:47 +01:00
Mathias Gumz
ec7fe513c8 Trigger ClockTool every second, independent of the format string
It's hard to hit right moment to update the clock correctly: Either we are a
bit too early and the 'old time' is the same as the 'new time' and the clock
looks 'a bit off' or we are too late and the clock is 'a bit off'. This is
especially the case for format strings which do not show the second and thus
are updated only at the full minute (see bug #1082): if fluxbox does not
update the clock 'now' it would do it one minute later and thus the clock
might show the wrong time for roughly 1 minute.

Instead of coming up with something immensely clever we just trigger the
ClockTool every second. If no update of the shown time is needed fluxbox won't
do anything.

Some minor code reordering as byproduct.
2013-02-14 19:58:28 +01:00
Mathias Gumz
ac27c8cb42 Updates copyright date information in some binaries 2013-02-14 19:45:17 +01:00
Mathias Gumz
20c46d94d4 mpf 2013-02-13 11:06:21 +01:00
Mathias Gumz
b023c124a8 Updated Changelog, NEWS, man-pages for 1.3.5 2013-02-13 11:00:22 +01:00
Mathias Gumz
59f59801fc Fix missing LogicCommands
By removing FbTk/LogicCommands.o from LDADD in src/Makefile.am (commit
06655f6) I prevented the linker to pick up FbTk/LogicCommands.o and thus
rendered all logic-commands useless.

Using a small helper object to pull in the dependency fixes this problem
without relying on manually tweaking the build system.
2013-02-13 10:50:25 +01:00
Mathias Gumz
7c26156842 Initialize FbTk::Timer.m_timeout correctly 2013-02-13 10:30:55 +01:00
Mathias Gumz
fe2d9476d5 Updated Changelog, NEWS, man-pages for 1.3.4 2013-02-10 17:09:04 +01:00
Mathias Gumz
cf56f32b29 Remove unused variables, cosmetics 2013-02-10 12:21:29 +01:00
Mathias Gumz
b039122182 FbTk::FbTime::mono() yields microseconds since fluxbox started 2013-02-10 11:10:36 +01:00
Mathias Gumz
34744f504e Cleanup 2013-02-10 11:08:05 +01:00
Mathias Gumz
2e98d9ed0d More subtle brightening of textures 2013-02-10 10:24:55 +01:00
Mathias Gumz
34343bb20b Feature #3602124: 'LHalf' and 'RHalf' buttons to the titlebar
First draft of feature request of #3602124: Having 2 buttons in the titlebar
which allow quick positioning of a Window into the left or right half of the
current monitor.
2013-02-06 13:47:17 +01:00
Mathias Gumz
94fddc09c0 Fix bug in renderEllipticGradient()
For odd 'widths' and 'heigths' the texture would not be filled completely:
Given a 'width' of 5 we would render only 4 instances of x (-2, 1, 0, 1)
instead of the needed 5. This results in a texture which looks a bit cut off
to the bottom right side.
2013-02-06 08:54:09 +01:00
Mathias Gumz
0b41d0b908 Minor cosmetics 2013-02-06 08:09:08 +01:00
Mathias Gumz
41a2060720 Fix integer overflow
I forgot this piece in 779618e45d.
2013-02-06 08:07:30 +01:00
Mathias Gumz
a4a4bca745 Reduces memory footprint
The buffer for some gradients does not have to be width * height big when two
lines are sufficient.
2013-02-06 08:04:47 +01:00
Mathias Gumz
6514398bea Branchless code for interlacing a texture 2013-02-06 07:49:54 +01:00
Mathias Gumz
779618e45d Fix integer overflow for bigger textures 2013-02-06 01:45:38 +01:00
Mathias Gumz
3e4ee48bf1 Fix regression regarding timers with equal end-time
std::set<Key, Comp> stores Key only if Comp(Key) yields a unique result (My
mistake: I was under the impression Comp is only used for the ordering). This
prevents FbTk::Timers with equal end-times from actually being started.
Escpecially in situation with multiple ClockTools this lead to stopped timers
(see bug #3600694).

Kudos to Adam Majer for enlightening discussions.
2013-02-01 20:36:30 +01:00
Mathias Gumz
dc47491533 Adds 'ClientPatternTest' command
ClientPatterns might be tricky to get right. Instead of fiddling around in
either the keys-file or the apps-file and restarting fluxbox to see if the
changes had any effect / matched the right windows, 'ClientPatternTest' and
the fluxbox-remote should make this easier:

    $> fluxbox-remote "clientpatterntest (title=.*vim*)"

This causes fluxbox to store the list of matched windows in the
_FLUXBOX_ACTION_RESULT property onto the rootwindow. This property might
then be read by:

    $> xprop -root _FLUXBOX_ACTION_RESULT

or

    $> fluxbox-remote result

The format of the list is:

    win_id \t title_of_window \n

win_id is '-1' when fluxbox wasn't able to parse the given ClientPattern.
win_id is '0' when there are no windows matching the given ClientPattern.
2013-01-31 09:14:06 +01:00
Mathias Gumz
716532dd47 Calculates timeouts of ClockTool based upon System Clock
Users expect time switches to happen upon system clock times. Calculating the
timeout for the next refresh of the shown time via the monotonic clock is
wrong: The monotonic clock yields values based upon some arbitrary point in
time which might be off a little bit to the system clock, a 'full' minute of
the monotonic clock might be in the midst of a system clock minute.
2013-01-26 09:21:47 +01:00
Mathias Gumz
e7bfc63932 Improve calculation of brighter colors
The old code did not brighten up "pure" colors like "red", "green" and "blue"
at all. The new code use a different precomputed LUT which is based upon
simplified vector math, see the comments in FbTk/ColorLUT.cc
2013-01-23 09:46:08 +01:00
Mathias Gumz
c67743d010 Adds 'he_IL' translations (provided by Genghis Khan) 2013-01-20 19:09:39 +01:00
Mathias Gumz
bf5da7f1b6 Fix bug: actually invert a given Texture
Stupid typo.
2013-01-17 10:58:53 +01:00
Sami Kerola
4eeb8937ba build-sys: clean up .gitignore file 2013-01-17 09:08:49 +01:00
Mathias Gumz
33161595f4 Simplifies and fix bugs in FbTk::Timer
* Calling Timer::setTimeout() from within Timer::start() might lead to ugly
  behavior (as experienced in bugs #3590078, #3600143, etc; see commit
  4d307dcd10, fixes the problem partially).

* Stop a timer first, then call the handler (via Timer::fireTimeout()). A
  given handler might call Timer::start() again, which (re)adds the Timer
  to the control list .. the following Timer::stop() would remove it again.

* Use 'm_start' as indicator if timer is running.

* Move the (now quite short) code of ::addTimer / ::removeTimer
  into the Timer::start() and Timer::stop() functions.
2013-01-15 21:40:33 +01:00
Mathias Gumz
239e895826 Ensure textures have the correct size bevor applying 'bevel' 2013-01-13 12:44:19 +01:00
Mathias Gumz
5f7acf3fb6 Optimize inner loop of pixel transfer in TrueColor
Testing bits-per-pixel in the inner loop is suboptimal, especially since
that value does not change. A little helper macro helps to keep the code
readable, also improves the situation for StaticGray and PseudoColor.
2013-01-13 12:37:26 +01:00
Mathias Gumz
eb725c5c2d Use the same lookup-tables for solid and gradient textures 2013-01-13 12:34:30 +01:00
Mathias Gumz
8143b86fec improved code documentation 2013-01-13 12:25:00 +01:00
Mathias Gumz
13b9ee09ee Minor optimization of handling the timers 2013-01-13 12:23:06 +01:00