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
Mathias Gumz
541c8c407b
changed timing functions to use a monotonic increasing clock
...
gettimeofday() is subject to be changed on daylight-saving or to ntp-related
(think leap-seconds). even worse, it is subject to be changed BACK in time. this
is hard to fix correctly (see commit 45726d3016
and bug #3560509 ). it is
irrelevant for timers to know the nano-seconds since the epoch anyways.
2012-08-28 10:51:55 +02:00
Peter Hercek
60a53113e0
fix sanity check for transient and explicitly placed windows
...
When a screen has more heads and some part of the screen is not on any
head and some window is placed into this invisible area then the window
is invisible which sucks. This patch repositions such windows so that
they are visible.
Example:
* head 1 is at (0,120) (size 640x480)
* head 2 is at (480,0) (size 800x600)
* whole screen virtual size is 1440x600
* that means rectangle from (0,0) to (640,120) is not visible on any head
and any windows placed there would not be visible; for example wireshark
likes to place dialog boxes at (0,0)
2012-08-22 18:49:09 +02:00
Vladimir A. Pavlov
71f75c70ae
Add menu.hilite.font and menu.hilite.justify style resources
2012-08-03 11:37:34 +02:00
Vladimir A. Pavlov
9d25ea54a1
FbTk/ThemeItems.cc: move loading additional font resources to load()
...
The same logic had been already implemented for texture resources.
2012-08-03 11:37:17 +02:00
Vladimir A. Pavlov
8c50e81e44
FbTk/ThemeItems.cc: don't use style resources in ThemeItem<Font>::setDefaultValue()
2012-08-03 11:37:07 +02:00
Mathias Gumz
a076bdcbda
merge
2012-07-14 10:08:28 +02:00
Mathias Gumz
9a28a8bfec
rephrased documentation about font effects
2012-07-14 10:07:17 +02:00
Mark Tiefenbruck
2944cd0014
make the menu bit of decoration masks control whether or not menu button is shown on window (it did nothing before)
2012-07-08 17:56:26 -07:00
Mark Tiefenbruck
fb52be0c47
fix documentation of TAB decoration mask
2012-07-08 17:35:48 -07:00
Mark Tiefenbruck
9eecd58bf3
make alt-tab skip modal windows
2012-07-06 19:30:39 -07:00
Mark Tiefenbruck
610a15ac47
add fullscreen, maximizedhorizontal, and maximizedvertical tests to ClientPattern
2012-07-01 21:22:01 -07:00
Paul Tagliamonte
940fbca3fe
removed 'always-true' expression
2012-04-10 09:28:52 +02:00
Paul Tagliamonte
e6a01dcabb
use the 'z' modifier for printing 'size_t' like variables
2012-04-10 09:27:44 +02:00
Mathias Gumz
56af5a1635
Bugfix: Don't draw the interlace lines 1px too far
2012-04-10 09:13:04 +02:00
Lajos Koszti
7b6dc2ad72
Allow percentage values for some Window commands
2012-04-06 14:11:16 +02:00
Ryan Pavlik
5d56046b68
FocusableList.cc,.hh: Pass string arguments by const reference.
...
Found by cppcheck
2012-01-04 07:55:44 +01:00
Ryan Pavlik
85596c1ee2
FbTk/XrmDatabaseHelper.hh: operator== can be const.
...
Found with cppcheck.
2012-01-04 07:55:17 +01:00
Ryan Pavlik
d70bdbe675
Check .empty() instead of .size() == 0
...
Found with cppcheck.
2012-01-04 07:54:46 +01:00
Ryan Pavlik
5ae8bdf49d
Pre-increment non-primitive types.
...
Found with cppcheck:
"Prefix ++/-- operators should be preferred for non-primitive
types. Pre-increment/decrement can be more efficient than
post-increment/decrement. Post-increment/decrement usually
involves keeping a copy of the previous value around and adds
a little extra code."
2012-01-04 07:53:54 +01:00
Ryan Pavlik
f859e78cb2
Exceptions should be caught by reference.
...
Found using cppcheck.
2012-01-04 07:51:35 +01:00
Daniel Diaz
db08329d8b
Add mwm _MOTIF_WM_INFO atom to advertise mwm hints capability
...
Applications like urxvt look for the _MOTIF_WM_INFO atom in order
to know if the window manager implements mwm hints. If this atom
is not found, then urxvt sets override_redirect when started with
the borderless option and falls out of the control of Fluxbox.
2012-01-04 07:45:20 +01:00
Paul Tagliamonte
0f994dbb28
No need to check if a pointer is null before de-allocating it.
...
5.3.5/2 of the C++ standard:
"In either alternative, if the value of the operand of delete is the null
pointer the operation has no effect."
2012-01-04 07:43:21 +01:00
skizzhg
a2cf6fff7b
changed encoding of nls/it_IT/Translation.m to latin1
2012-01-04 07:40:04 +01:00
Mathias Gumz
2223c879bf
moved meta-information around a little bit
2011-11-01 07:24:11 +01:00
Ryan Pavlik
aabf32a1d9
README: Add information on cross-compiling for Windows
2011-10-31 10:54:33 -05:00
Ryan Pavlik
ea5f7b56ec
src/Makefile.am,FbTk/StringUtil.cc: Search relative to the executable.
...
On Windows, prepend /DUMMYPREFIX to default paths, and replace it at
runtime with the prefix relative to the exe directory.
2011-10-31 10:54:33 -05:00
Ryan Pavlik
65cb53b685
FbTk/StringUtil.cc: Don't return mid-routine.
...
Prep for Windows dummy prefix code.
2011-10-31 10:54:33 -05:00
Ryan Pavlik
25d04827b5
main.cc,FbTk/StringUtil.cc: On windows, use USERPROFILE instead of HOME
2011-10-31 10:54:32 -05:00
Ryan Pavlik
f77f5d461b
util/Makefile.am,fluxbox-generate_menu.in: use EXEEXT
...
Needed to allow mingw-cross-env cross build
2011-10-31 10:54:09 -05:00
Ryan Pavlik
5cb7326d22
fluxbox-update_configs.cc: Fix on windows - no kill or sigusr2
2011-10-31 10:54:09 -05:00
Ryan Pavlik
3ca61475fb
FbRun.cc: Fix on windows where there is no fork
2011-10-31 10:54:09 -05:00
Ryan Pavlik
b82999c1ac
FbTk/FbString.cc,Font.cc: Windows doesn't have nl_langinfo
2011-10-31 10:54:09 -05:00
Ryan Pavlik
d4f682c7bd
FbCommands.cc: Implement ExecuteCmd for Windows
2011-10-31 10:54:09 -05:00
Ryan Pavlik
4ded38f43f
configure.in: Windows requires a library to link for catgets
2011-10-31 10:54:09 -05:00
Ryan Pavlik
f922d2d803
main.cc: Add a wrapper for two-argument mkdir on Windows
2011-10-31 10:54:09 -05:00
Ryan Pavlik
42f647553a
fluxbox.cc: ifdef the signals windows doesn't have.
2011-10-31 10:54:08 -05:00
Ryan Pavlik
b0779c413b
FbTk/Timer.cc: Check HAVE_SYS_SELECT_H, add alternate for windows
2011-10-31 10:54:08 -05:00
Ryan Pavlik
5bf23bb05d
Merge branches 'fix-out-of-range-memory', 'obey-configure' and 'other-improvements' into windows-mingw
2011-10-31 10:53:05 -05:00
Ryan Pavlik
afa870802b
FbTk/App.cc: make startup failure easier to diagnose
2011-10-31 10:51:51 -05:00
Ryan Pavlik
d5b58a8033
main.cc: Use expandFilename for default paths
2011-10-31 10:51:45 -05:00
Ryan Pavlik
7510c2d173
src/Makefile.am: Add warning to defaults.cc as well
2011-10-31 10:51:41 -05:00
Ryan Pavlik
fa63fcdc66
main.cc: Check getenv output better.
...
Windows returns pointers to empty strings for non-existent env vars.
2011-10-31 10:51:38 -05:00
Ryan Pavlik
9a2c6f94b8
configure.in, acinclude.m4: always pre-pend new libs.
2011-10-31 10:51:30 -05:00
Ryan Pavlik
75c6cee969
FbTk/FileUtil.cc: Use only file masks defined.
...
Needed for mingw-cross-env
2011-10-31 10:51:13 -05:00
Ryan Pavlik
cc1193ef0c
FbTk/SignalHandler.cc: Use HAVE_SIGACTION, with signal() fallback
...
This fixes platforms without sigaction, like Windows.
2011-10-31 10:50:26 -05:00
Ryan Pavlik
f40be36f75
FbTk/Timer.cc: Check HAVE_SYS_SELECT_H
2011-10-31 10:47:59 -05:00
Ryan Pavlik
757f78035d
FbTk/StringUtil.cc: Fix out-of-range memory access.
...
if pos is not npos, it will always be less than filename.size().
However, the access later is only safe if there is a character
after pos, which would require pos + 1 to be less than filename.size.
2011-10-31 10:44:11 -05:00
Ryan Pavlik
60c964a4d9
RootTheme.cc: Obey HAVE_SYS_WAIT_H
2011-10-31 10:42:08 -05:00
Ryan Pavlik
4bad431c90
main.cc: Only sync() if we can.
2011-10-31 10:42:06 -05:00