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
51f054e777
added '(workspace=[current])' to our default keys
...
commit 882a50fe1d
removed the hardcoded limit to
cycle to windows on other workspaces, though it was and IS a good default
behaviour. if users do not want this (they want to cycle to windows on other
workspaces), they should explicitly avoid '(workspace=[current])' in their
keysfile.
2010-09-11 21:53:55 +02:00
Mathias Gumz
1e9dafdc67
fixed the default 'OnTitlebar Mouse1' actions
2010-09-04 14:41:11 +02:00
Mathias Gumz
bc2b21547b
implemented 'ActivateTab' action to (re)allow activation of tabs via mouse
2010-08-20 19:01:25 +02:00
Mathias Gumz
b4e65724ef
fixed typo
2010-08-16 18:27:00 +02:00
Mathias Gumz
fbcdd34b22
mostly cosmetic fixes, mainly discovered by 'clang --analyze'
...
reordering of Resource-related stuff was because of
"error: explicit specialization of 'getString' after instantiation"
complaints.
2010-05-23 12:25:47 +02:00
Mathias Gumz
b8f9ac6d69
prevent crash if m_keylist is 0
...
again, i do not know yet, why this could happen.
2010-05-08 19:04:44 +02:00
Mathias Gumz
24cfd54eae
cleanup: missing initialization
...
i ran across problems on a freshly installed ubuntu without
any config files, m_keylist was not initialized, yet unsure why.
2010-05-08 19:03:57 +02:00
Mathias Gumz
2c66828341
cosmetic
2010-05-05 08:42:37 +02:00
Mathias Gumz
a10bab0f7c
added OnLeftGrip, OnRightGrip, OnWindowBorder modifiers for keys file
...
this allows to move some hardcoded keysbindings into the keys file and
makes the code simpler
2010-05-05 08:41:03 +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
46261a8284
implemented 'MoveN' and 'ClickN' support in keys file.
...
the hardcoded 'OnTitlebar Mouse1 :Raise' (see Window.cc, FluxboxWindow::buttonPressEvent())
is disabled for now, should be added to fluxbox-update_configs
2009-12-18 08:05:07 +01:00
Mathias Gumz
80e8cd071e
just use the FbTk API
2009-10-02 08:38:24 +02:00
Mark Tiefenbruck
07da360b2b
more fixes for fluxconf mangling the keys file
2009-08-08 09:14:39 -07:00
Mark Tiefenbruck
f2c0175a72
add window menu and alt-tab to error case for keys file
2009-06-28 03:55:21 -07:00
Slava Semushin
5532aca916
src/Keys.cc(deleteTree): use FbTk::STLUtil::destroyAndClearSecond() instead of self-written code.
...
No functional change.
Signed-off-by: Slava Semushin <php-coder@altlinux.ru>
2009-03-04 21:45:52 +01:00
Mark Tiefenbruck
f5fdbab98c
don't reload keys file on modifier map events, just re-grab keys
2008-11-01 17:03:32 -07:00
Mark Tiefenbruck
22f3df9aa8
break keychains after an invalid key is pressed (which unfortunately will be swallowed)
2008-10-03 22:59:14 -07:00
Mark Tiefenbruck
04a1d2a83b
don't let KeyRelease events propagate to windows
2008-09-28 01:26:21 -07:00
Mark Tiefenbruck
9170de1831
another parsing fix
2008-08-22 07:14:56 -07:00
Mark Tiefenbruck
72fd5e03a4
revert focus when closing dialogs
2008-08-16 06:30:09 -07:00
Mark Tiefenbruck
fe412dbeef
move interpretation of normal hints to size hint class
2008-08-16 00:22:12 -07:00
Mathias Gumz
31b47e7814
cleanup of some files
2008-08-14 07:53:38 +02:00
Mark Tiefenbruck
dcdc783324
only reload the keys file if the contents have changed
2008-05-12 12:16:37 -07:00
Mark Tiefenbruck
92c4489a7b
workaround for keys files broken by fluxconf
2008-04-30 08:31:04 -07:00
Mark Tiefenbruck
611b6aa57e
more fun with the window menu
2008-02-11 10:17:45 -08:00
Tomas Janousek
b61502ffbc
Fix a freed memory access in Keys::doAction.
...
The thing next_key pointed to was getting freed in deleteTree.
Signed-off-by: Tomas Janousek <tomi@nomi.cz>
2008-02-04 18:46:24 +01:00
Mark Tiefenbruck
f3e3bb5273
check pointer, even though it shouldn't be necessary
2008-02-03 12:17:42 -08: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
ec13263a18
decoupling, moved private datastructures to Keys.cc
2008-01-02 09:28:00 +01:00
Mathias Gumz
04cd2fd14c
removed some unneeded headers
2007-12-30 16:32:53 +01:00
Mark Tiefenbruck
8516f1e2a2
changed CommandRegistry to a template class, renamed to ObjectRegistry<Type>
2007-12-15 19:36:01 -08:00
markt
8b7464046c
added FbTk::CommandRegistry, decentralized command parsing, and made them auto-register
2007-12-13 05:48:00 +00:00
markt
95f9c2d680
added OnTitlebar modifier to keys file
2007-12-09 20:47:41 +00:00
markt
bb6906fa80
added special FocusIn/Out MouseOver/Out ChangeWorkspace keys
2007-11-22 20:21:47 +00:00
markt
08ebff4b31
move titlebar click handling to FluxboxWindow, fix buttons getting ungrabbed
2007-11-20 19:01:45 +00:00
markt
46c8e217ca
fix alt-tab
2007-11-05 17:45:05 +00:00
markt
97f7c3e1b5
various refactoring and minor changes
2007-11-05 17:05:58 +00:00
markt
72130f350e
add OnWindow modifier to keys file
2007-10-15 18:05:28 +00:00
markt
a59428d67a
merged changes from pre-devel
2007-10-13 21:51:37 +00:00
simonb
ac215248a0
load default key bindings on error
2007-09-30 11:35:20 +00:00
mathias
6ac57655d9
basicly cosmetic changes, patch by slava semushin
2007-04-17 07:52:40 +00:00
markt
3503f75903
lots of unrelated fixes
2007-02-27 17:46:48 +00:00
markt
6fdda1a31d
added mouse bindings to the keys file
2007-02-09 18:13:01 +00:00
markt
8930a711ee
only grab keybindings on screens managed by fluxbox
2007-01-05 16:54:34 +00:00
markt
17a92c3253
little fix for nls in keys
2006-12-20 16:22:10 +00:00
markt
1440919956
Change to data structure for keybindings, ungrab and grab keys when switching
...
keymodes instead of deciding whether we need it and repeating the key.
2006-12-19 18:08:33 +00:00
mathias
10082d821d
cosmetic patch from slava semushin, removes whitespaces and
...
uses only those things from "namespace std" what we really need.
2006-10-27 06:57:43 +00:00
simonb
3ada3b1f0d
fix nls... notably classify text on conversion whether its for X or
...
console, plus handle catalogs better.
2006-06-21 14:41:16 +00:00