Mathias Gumz
cf56f32b29
Remove unused variables, cosmetics
2013-02-10 12:21:29 +01:00
Lajos Koszti
7b6dc2ad72
Allow percentage values for some Window commands
2012-04-06 14:11:16 +02: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
Pavel Labath
4b47675441
Make RefCount<> more sensible
...
the previous version of operator*() made no sense. E.g., it violated the invariant
(*ptr).foo <=> ptr->foo. The dereferencing operator now returns a reference to the pointed-to
object, rather than a pointer to it.
I also added a bool conversion operator, which can be used in testing the NULL-ness of the
pointer. Anyone wondering if that could be done in a simpler way is encouraged to read
<http://www.artima.com/cppsource/safebool.html >.
And, finally, I removed the mutable flag from the m_data member, since it does not need it.
2011-05-10 13:00:45 +02:00
Mathias Gumz
e850b01919
compile fix: sunCC 5.11 (sunstudio 12) compiles and links again
...
biggest change: renaming of 'class Layer' to 'class ResourceLayer' in
Layer.hh to handle complaints about 'ambiguous Layer: Layer or FbTk::Layer'.
'ResourceLayer' sounds crappy, but that was the best I could come
up with right now.
2011-03-23 12:02:15 +01:00
Peter Hercek
fc192b1161
allow to override 'FocusNewWindow' via .fluxbox/apps
2011-02-03 18:51:10 +01:00
Peter Hercek
5f6694ca14
bug fix: semantic differences between WinState::Decoration and Remember::save()
2011-02-03 08:43:47 +01:00
Mathias Gumz
deb6a1ebf4
code simplification
...
we do not need a std::map just to store an attribute on an AtomHandler,
it makes housekeeping just more annoying.
2010-09-13 22:04:24 +02:00
Mathias Gumz
77f39235cf
added FbTk::Util::clamp() and simplified related code
2010-09-09 15:31:54 +02:00
Mathias Gumz
7a149626e6
improved 'escapeRememberChars()' routine by traversing the string only once
...
removed obsolete 'getuint()' function
2010-09-08 21:45:33 +02:00
Mathias Gumz
48cc67965b
avoid code duplication
2010-09-08 21:43:38 +02:00
Henrik Kinnunen
ce0b41c847
Changed #ifdef DEBUG ... cerr << to using fbdbg.
...
This will reduce the number of #ifdef DEBUG for
simple debug messages.
include "Debug.hh" and use fbdbg instead of cerr for debug.
2010-03-17 16:35:07 +01:00
Mathias Gumz
884db973bb
cosmetic fixes: removed redundant ';' + some whitespaces
2009-09-30 21:02:24 +02:00
Mark Tiefenbruck
41b2e0ced4
use FbMenu::window instead of WindowCmd<>::window for displaying items in the window menu
2008-08-30 18:36:53 -04:00
Mark Tiefenbruck
a2ec0c9bdd
make FbWinFrame and FluxboxWindow share a WindowState object
2008-08-27 16:29:35 -04:00
Mark Tiefenbruck
55fd49614b
move FbWinFrame::State class to a new file
2008-08-27 13:05:49 -04:00
Mark Tiefenbruck
0ae3ca9e8a
move fullscreen and maximization handling to FbWinFrame
2008-08-22 05:52:23 -07:00
Mark Tiefenbruck
4bf00f6857
fix match limits in apps file, plus some documentation
2008-08-20 05:26:12 -07:00
Mark Tiefenbruck
4e64d45e16
add [transient] tag to apps file to match transient windows
2008-08-19 09:18:32 -07:00
Mark Tiefenbruck
37b18a9694
combined code for saved window positions and MoveTo key command
...
added left, right, top, and bottom center reference points
2008-08-18 05:12:30 -07:00
Mark Tiefenbruck
38654bae45
some cleanup
2008-08-16 05:54:07 -07:00
Mark Tiefenbruck
0689a0a4a8
move getDecoMaskFromString to FbWinFrame
2008-08-15 04:42:13 -07:00
Mathias Gumz
31b47e7814
cleanup of some files
2008-08-14 07:53:38 +02:00
Mark Tiefenbruck
24bea22035
add SetLayer key command
2008-08-05 00:05:21 -07:00
Mark Tiefenbruck
c1d400b436
another fix for saving and restoring window dimensions
2008-05-25 15:14:03 -07:00
Mark Tiefenbruck
a56492c0d5
some minor changes
2008-05-12 09:30:13 -07:00
Mark Tiefenbruck
0b2e002d4f
use AutoReloadHelper in apps file, check for changes automatically
2008-05-12 09:00:02 -07:00
Tomas Janousek
9671b2f99c
Fix crash with apps reloading.
...
Yeah, we shouldn't delete pointers that are mentioned elsewhere...
Signed-off-by: Tomas Janousek <tomi@nomi.cz>
2008-02-04 18:46:22 +01:00
Mark Tiefenbruck
9f2f65a698
make FbTk::Command a template class, split parsing information out of ObjectRegistry
2008-01-10 23:41:22 -08:00
Mark Tiefenbruck
9c105111d2
remove old svn $Id$ tags
2008-01-03 17:34:12 -08:00
Mathias Gumz
04cd2fd14c
removed some unneeded headers
2007-12-30 16:32:53 +01:00
Mark Tiefenbruck
1f5cd12fac
simplify the window transparency menu and handling a bit
2007-12-26 20:42:10 -08:00
Mark Tiefenbruck
1b48b749b9
make FbWinFrame aware of the decoration state
2007-12-23 13:28:08 -08:00
Mark Tiefenbruck
c01bd6e9fd
holding control will now keep the menu open
2007-12-17 21:44:17 -08:00
Mark Tiefenbruck
c39af52bfc
fix startup items in apps file with specified screen number
2007-12-17 10:28:45 -08:00
markt
f3afe787c1
introduced workspacename for ClientPattern, and some miscellaneous cleanup
2007-10-24 17:09:26 +00:00
markt
1c05af4329
allow remembering minimized, maximized, and fullscreen state
2007-10-23 17:34:30 +00:00
markt
7e4f8a3853
add support for transient windows in client patterns, and merge a few more changes from pre-devel
2007-10-14 18:05:31 +00:00
markt
a59428d67a
merged changes from pre-devel
2007-10-13 21:51:37 +00:00
markt
16218ae90b
fix crash when changing toolbar visibility with empty toolbar.tools
2007-09-08 18:38:30 +00:00
simonb
a9103a89cb
remember role too by default
2007-08-05 03:20:38 +00:00
simonb
2006d20d45
remember on the class AND instance name by default
2007-08-05 03:10:04 +00:00
markt
d39a5489b1
we know better than MPlayer
2007-07-06 17:48:02 +00:00
markt
2ddc0290cb
use old size/position in apps file when the window is shaded or maximized
2007-07-02 21:26:01 +00:00
markt
329fca30fd
updates for compiling with gcc 4.3
2007-06-29 17:25:24 +00:00
markt
b4b927dad9
moved function so fluxbox compiles with --disable-remember
2007-06-16 22:50:09 +00:00
markt
222d8cd7e9
don't tab transient windows from apps file, and change their layers when the main window does
2007-06-08 19:39:12 +00:00
markt
b3f7488a8d
changed remembering of positions so it only remembers position relative to the current head
...
that way, the windows don't get misplaced when the window is on second head, or when not using the head anymore
2007-03-18 23:49:54 +00:00
markt
ed3731fa30
session.screen0.defaultDeco now understands TAB, BORDER, etc.
2007-03-06 17:20:13 +00:00
markt
e4488da120
some fixes for grouping with the apps file
2007-02-05 17:20:01 +00:00