Commit graph

5807 commits

Author SHA1 Message Date
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
Mathias Gumz
4d307dcd10 Fix bug: handle the list of Timers not in-place
With commit 541c8c4 we switched from an (manually) ordered list to a
std::set<> to handle the active timers. The code which checks for overdue
timers now traverses and modifies the std::set<> in place. This might
lead to an infinite loop. Examples of such bad behavior are "flickering of
the tooltip" (bug #3590078) or crashes (bug #3600143) or just insanely high
cpu load when autoraising windows or submenus.

We now make a copy of the std::set<> traverse this instead of the original.
2013-01-12 09:24:11 +01:00
Mathias Gumz
06655f6d7f Optional removal of SystemTray tool
Added the option to remove the SystemTray tool completely from
fluxbox.
2013-01-10 12:11:24 +01:00
Aymeric Vincent
79fe2fca1d Reduced lagging begind of windows on slower displays
In certain situations a speedy mouse might generate more move-events
than fluxbox can handle: The event queue will fill up faster than the
repositioning of the window is finished. The user will experience a
window which lags behind the mouse cursor, aka the window-dance.

We now check the next event in the queue and postpone the move a little
bit so the queue does not fill up that fast.
2013-01-10 08:16:01 +01:00
Mathias Gumz
cfe4a80f86 refer to the correct autoconf file in nls/translators.txt 2013-01-08 09:04:03 +01:00
Mathias Gumz
fdb9c92fad fix little autoconf regression 2013-01-08 09:03:32 +01:00
Sami Kerola
f12e149baf automake: use AM_CPPFLAGS rather than INCLUDES
The INCLUDES macro deprecated in favour of AM_CPPFLAGS.

References: http://www.gnu.org/software/automake/manual/html_node/Program-Variables.html
2013-01-03 08:17:27 +01:00
Sami Kerola
ea2464a9ea automake: fix initialization
Reference: http://www.gnu.org/software/automake/manual/automake.html#Public-Macros
2013-01-03 08:16:22 +01:00
Sami Kerola
b825874d2e do not try to reach $(top_srcdir)/.git directory contents when building a release tar ball 2013-01-02 10:08:11 +01:00
Sami Kerola
be2c52a146 util/fluxbox-generate_menu: default browswer variable can be empty
Noticed when debugging in mac.
2013-01-02 10:08:04 +01:00
Sami Kerola
dcdfdfd56b utils: remove bashisms
fbsetbg: The random number generation used 'time' shell internal, which
does not exist in all shells.  Allowing 'ps' output to be part of cksum
input will increase entropy and enhance quality of the randomness.

fbsetbg: The second fix is more important.  In posix shell there is no
'==' comparision operator.

fluxbox-generate_menu: There are no quarantees about echo accepting
options, so use 'printf' for more advanced outputing.
2013-01-02 10:01:00 +01:00
Sami Kerola
e15dfaf463 fix 'make distcheck' which had out-of-tree build issue 2013-01-02 09:59:51 +01:00
Sami Kerola
23602ef23d rename configure.in to configure.ac
It seems autoheader version 2.69 does not work with configure.in file,
and AM_CONFIG_HEADER macro.

aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
configure.in:585: warning: macro 'AM_CONFIG_HEADER' not found in library
Executing:  autoheader

autoheader: error: AC_CONFIG_HEADERS not found in configure.in
2013-01-02 09:58:46 +01:00
Mathias Gumz
f587cc9e7e Compile fix: forgotten parentheses around value 2013-01-02 09:57:32 +01:00
Mathias Gumz
2294b16526 updated ChangeLog and NEWS 2012-12-30 20:38:43 +01:00
Sami Kerola
1f89a19cfc replace XKeycodeToKeysym() with XkbKeycodeToKeysym()
The XKeycodeToKeysym() is deprecated.

References: http://comments.gmane.org/gmane.comp.misc.suckless/9403
2012-12-30 20:31:25 +01:00
Mathias Gumz
1804678cbe prepared manpages for new release 2012-12-30 12:42:48 +01:00
Mathias Gumz
0eec277cf7 updated Changelog 2012-12-30 12:39:20 +01:00
Vladimir A. Pavlov
5efef22cba Fix double text rendering if using parentRelative 2012-12-30 12:27:55 +01:00
Vladimir A. Pavlov
edcb6d57ce src/WinButton.{cc,hh}: cosmetic 2012-12-30 12:27:52 +01:00
Vladimir A. Pavlov
c8d0945a8f Make use of window.stuck.pressed.pixmap 2012-12-30 12:27:47 +01:00
Vladimir A. Pavlov
36489e4a17 Set WM_WINDOW_ROLE for fluxbox windows 2012-12-30 12:27:43 +01:00
Vladimir A. Pavlov
7a404e7fbc Store XClassHint on stack, not in dynamic memory 2012-12-30 12:27:37 +01:00
Mathias Gumz
9f995b7f19 preparation of fluxbox 1.3.3 2012-12-30 11:50:44 +01:00
Mathias Gumz
0f7b083e9b Increased verbosity of 'configure' 2012-12-12 10:20:21 +01:00
Mathias Gumz
95f8f33c90 Minor cleaning of 'class Fluxbox' 2012-12-12 10:19:09 +01:00
Mathias Gumz
4191cbf2d2 Fix build regression: enable XRANDR support by default
The changes made in b178bed60b used the wrong
variable to set the default state of '--enable-randr' in configure.in, that is fixed now. I
also removed '--enable-randr12': If support for the Xrandr-extension is
available at compile time we set HAVE_RANDR; if there is also support for
Xrandr-1.2 (or higher), we also set HAVE_RANDR1_2 automatically.

Other changes:

* cleaned out public interface of 'class Fluxbox'
* added 'RANDR' to output of 'fluxbox -info'
2012-12-12 10:18:20 +01:00
Mathias Gumz
d8cd6a928b Fixed bug: use expanded style/theme filename
'filename' might contain a '~' which has to be expanded to work for
regular system calls. We expanded 'filename' already but then did not use
it. Fixes bug #3576586.
2012-12-11 19:37:59 +01:00
Mathias Gumz
637381ddaa Updated Changelog
I removed references to file changes as well, 'git log' works pretty well for
people who want to find out more about the history of files.

I also formatted old entries to have a consistent style all over the file.
2012-12-05 21:23:21 +01:00
Mathias Gumz
b178bed60b Simplified 'configure' / build system
* reduced duplicated auto-code
* renamed '--enable-newwmspec' to '--enable-ewmh'
* don't compile 'Slit'-code when '--disable-slit'
* use AS_IF() in configure.in
* use AS_HELP_STRING() instead of obsolete AC_HELP_STRING in configure.in
* removed redundant calls to 'imlib2-config' to fill in $IMLIB2_CFLAGS
  and $IMLIB2_LIBS, AC_PATH_GENERIC() does that out of the box already
2012-12-05 16:00:55 +01:00
Mathias Gumz
7e374fcef6 removed empty file 2012-12-05 15:42:01 +01:00
Hendrik Iben
24541caf69 Fixed lost focus glitch on multihead-ws-warping 2012-11-25 08:29:41 +01:00
Hendrik Iben
e65a966d80 Added option for focus revert to stay on current head 2012-11-20 08:04:50 +01:00
Mathias Gumz
b4534e0f28 Rewrite of FbTk::TextureRender
* much more readable and easier to read code
* smaller code
* reduced binary size due to removed big lookup-table for square root
* simple 'optimizations (lookup tables, packing of data), nothing too fancy
2012-11-08 11:02:28 +01:00
Mathias Gumz
2e663cb784 Added 'OnTab' highlighting in vim 2012-11-07 10:31:55 +01:00
Mathias Gumz
acd5e07cd7 Added documentation for 'OnTab' 2012-11-07 10:31:30 +01:00
Julien Viard de Galbert
5c5ad62846 Adds the OnTab keyword for the keys file
Adding the following lines to the keys file restore the old behaviour to
use Mouse2 on tabs to start tabbing, and keep OnTitlebar Mouse2 to lower
the window.

OnTab Mouse2 :StartTabbing
OnTab Move1 :StartMoving

Note: Internal tabs are triggering both OnTab and OnTitlebar events.
2012-11-07 09:41:49 +01:00
Mathias Gumz
e8f2e964c6 minor cosmetic 2012-10-04 09:56:15 +02:00
Michael Abbott
391712b980 Add support for nearest corner or edge resizing 2012-10-04 09:36:23 +02:00
Mathias Gumz
7b6ab828c7 Improved vertical alignment of text in FbTk::TextButton
The old formula for vertical align text inside FbTk::TextButton ('height/2 +
font_ascent/2 - 1') produced not always good looking results, escpecially
when different fonts are involved (eg, ClockTool and WorkspaceName have
different fonts and font-sizes).

'(height - font_ascent) / 2 - 1' produces better results.

Additional changes:

* added ASCII-Art to document the involved entities when calculating the
  baseline
* rewritten tests/testFont.cc to accept multiples texts and multiple
  fonts
* removed some internal parts of FbTk::Font from the public interface
2012-10-03 10:27:16 +02:00
Mathias Gumz
032a23d1e7 removed duplicate function signature for FbTk::StringUtil::extractNumber() 2012-09-14 08:53:38 +02:00
Mathias Gumz
e512c1becd minor cosmetic 2012-09-14 08:52:13 +02:00
Mathias Gumz
2f279e96b1 Fix regression: switch back to microseconds for DelayCmd 2012-09-14 08:51:42 +02:00
Mathias Gumz
59d097bcea Fix bug: (re)setting timeouts on a running FbTk::Timer might lead to broken timer list
Setting a new timeout on a running FbTk::Timer must remove it from the timerlist,
otherwise the list is not ordered correctly anymore. So, we stop the running
FbTk::Timer, set the new timeout and restart it.
2012-09-14 08:48:37 +02:00