Commit graph

1103 commits

Author SHA1 Message Date
Matteo Galiazzo
af0f241954 don't save rc in SetStyle command if loading the style fails 2008-05-14 01:40:53 -07:00
Mark Tiefenbruck
93b0c5322a refactor menu reloading, added FbTk::AutoReloadHelper 2008-05-11 17:22:40 -07:00
Matteo Galiazzo
4a3be045b2 add tooltips for iconbar buttons when title is too long to fit 2008-05-05 05:05:52 -07:00
Henrik Kinnunen
80b10f7772 Added SimpleObserver class.
This class works in the same way as the SimpleCommand class.
Use it with the makeObserver function.
It calls the receiver's member function when the subject sends
a signal.
2008-04-27 21:22:18 +02:00
Thomas Orgis
1e2ab2f3ed some fixes for gcc 3.4 2008-04-21 15:43:10 -07:00
Mark Tiefenbruck
26dafdafbe fix highlighted menu item on mouse out 2008-02-08 18:36:06 -08:00
Mark Tiefenbruck
b7eee2350d fix rotation 2008-02-03 07:37:01 -08:00
Mathias Gumz
9cb78eaa3b reordering 2008-01-28 08:41:42 +01:00
Mark Tiefenbruck
70a24b992c don't require final {} on :If 2008-01-24 04:03:04 -08:00
Simon Bowden
7b055cc54a Fix missing destructor warning 2008-01-18 20:29:09 +11:00
Mark Tiefenbruck
1d4bea8a2d Merge branch 'master' of fluxbox@gitfbox:fluxbox 2008-01-18 00:33:47 -08:00
Mark Tiefenbruck
3a5fd7342d use function pointer for CommandParser::Command 2008-01-17 14:16:58 -08:00
Mathias Gumz
f6c292a406 split Text.hh into Orientation.hh and TextUtils.{cc,hh} 2008-01-15 08:45:57 +01:00
Mathias Gumz
e1db89e2d7 moved code a bit around, cleaned up some classes 2008-01-14 23:27:00 +01:00
Mark Tiefenbruck
5b0806f1cb forgot to add this 2008-01-11 02:46:06 -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
ac1bd7e098 update code to use ThemeProxy 2008-01-04 17:39:19 -08:00
Mark Tiefenbruck
60ba709c2f add a level of indirection to themes 2008-01-04 01:06:38 -08:00
Mark Tiefenbruck
9c105111d2 remove old svn $Id$ tags 2008-01-03 17:34:12 -08:00
Mathias Gumz
bf15250292 merged 2008-01-03 07:56:59 +01:00
Mathias Gumz
b73411a95f moved seldom used code to where it is actually used, no need to include code into compilation when its not needed 2008-01-02 22:44:16 +01:00
Mark Tiefenbruck
6ea1ed8cfa fix border width on synthetic ConfigureNotify events 2008-01-01 19:10:38 -08:00
Mark Tiefenbruck
72d2f0e481 fix compatibility with older gcc versions 2007-12-30 14:58:41 -08:00
Mathias Gumz
04cd2fd14c removed some unneeded headers 2007-12-30 16:32:53 +01:00
Mark Tiefenbruck
4cc810b0d3 remove some (hopefully) unneeded header includes 2007-12-29 22:44:11 -08:00
Mathias Gumz
de6d340ba3 forgotten inlines from previous round 2007-12-30 01:36:37 +01:00
Mathias Gumz
e1f362ae76 'inline' in class declaration is implicitly inline 2007-12-29 22:38:53 +01:00
Mark Tiefenbruck
8e96ffb74b moved DelayedCmd from Screen.cc to FbTk/Timer.cc, added it to the keys file 2007-12-28 01:19:33 -08:00
Mark Tiefenbruck
0f6b73f36a move shape handling from FbMenu to FbTk::Menu 2007-12-28 01:14:19 -08:00
Mark Tiefenbruck
2940869cd7 merge MenuTheme with FbTk::MenuTheme 2007-12-27 23:16:17 -08:00
Mark Tiefenbruck
62bcfaf0e4 move Shape to FbTk 2007-12-27 22:52:48 -08:00
Mark Tiefenbruck
0ec165e85b move STLUtil to FbTk 2007-12-27 22:22:38 -08:00
Mark Tiefenbruck
32eb2a148e move RegExp to FbTk 2007-12-27 22:15:06 -08:00
Mark Tiefenbruck
39224b0142 move Parser to FbTk 2007-12-27 21:52:00 -08:00
Mark Tiefenbruck
e8a2f155e8 moved Container to FbTk 2007-12-27 21:47:55 -08:00
Mark Tiefenbruck
00ceefd884 moved BorderTheme and TextTheme to FbTk 2007-12-27 20:39:31 -08:00
Mark Tiefenbruck
b5c354b994 architecture astronomy 2007-12-27 13:55:24 -08:00
Mark Tiefenbruck
1f5cd12fac simplify the window transparency menu and handling a bit 2007-12-26 20:42:10 -08:00
Mark Tiefenbruck
f5024351e7 stupid & 2007-12-26 13:50:44 -08:00
Mark Tiefenbruck
f3790fb3e4 revert previous patch until it can be fixed 2007-12-26 13:44:55 -08:00
Mark Tiefenbruck
b2546389a5 changing focusnew/mousefocus should affect windows that are already open 2007-12-26 13:31:55 -08:00
Mark Tiefenbruck
9daf464b28 fix showing program icons with depth=1 in menus 2007-12-24 21:58:50 -08:00
Mark Tiefenbruck
eaabe0321d make bit depth accessible from an FbDrawable 2007-12-24 21:15:17 -08:00
Mark Tiefenbruck
54eda44f85 fix menuitem height on startup 2007-12-20 18:25:50 -08:00
Mark Tiefenbruck
aef3155784 convert macro command parsing to use new StringUtil function 2007-12-20 12:52:20 -08:00
Mark Tiefenbruck
03dce043b7 added ForEach key command 2007-12-20 12:23:56 -08:00
Mark Tiefenbruck
98c5cea5f5 fix torn menus 2007-12-17 22:52:30 -08:00
Mark Tiefenbruck
c01bd6e9fd holding control will now keep the menu open 2007-12-17 21:44:17 -08:00
Mark Tiefenbruck
31df2d8bd6 make MenuItem responsible for decision to close menu when clicked 2007-12-17 21:09:20 -08:00
Mark Tiefenbruck
0ca0aa1ac2 fix initialization of menu fonts 2007-12-16 13:13:22 -08:00
Mark Tiefenbruck
4a7a143713 load style before loading theme objects, remove duplicate theme load 2007-12-16 00:50:59 -08:00
Mark Tiefenbruck
8516f1e2a2 changed CommandRegistry to a template class, renamed to ObjectRegistry<Type> 2007-12-15 19:36:01 -08:00
markt
d90befb430 StringUtil::removeFirst/TrailingWhitespace didn't truncate a string that was only whitespace 2007-12-14 20:05:14 +00:00
markt
b001ea9f1f close menus when they lose focus, instead of on [exec] commands 2007-12-13 18:42:05 +00:00
markt
8b7464046c added FbTk::CommandRegistry, decentralized command parsing, and made them auto-register 2007-12-13 05:48:00 +00:00
markt
474e201745 only allow one open menu at a time 2007-12-11 19:29:00 +00:00
markt
bb6906fa80 added special FocusIn/Out MouseOver/Out ChangeWorkspace keys 2007-11-22 20:21:47 +00:00
markt
675bc5d66a added conditional statements to keys file 2007-11-22 04:07:57 +00:00
markt
08ebff4b31 move titlebar click handling to FluxboxWindow, fix buttons getting ungrabbed 2007-11-20 19:01:45 +00:00
markt
5d7043320d allow arbitrary window patterns in iconbar 2007-11-12 21:59:43 +00:00
fluxgen
c7d4438d91 fixed bug #1809786 2007-10-18 17:37:46 +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
markt
538e33fedb some minor changes 2007-08-05 22:28:11 +00:00
simonb
288dfa6eb9 only possible anomaly I can see here 2007-08-04 18:15:58 +00:00
simonb
b273360331 Fix system tray restart issues 2007-08-04 17:14:13 +00:00
markt
8da54ca0eb add some decorations to torn menus, and fix restart without an argument 2007-07-31 23:16:05 +00:00
markt
363764db5b fix ToggleDecor for fullscreen and decorationless windows, plus some other cleanup 2007-07-24 12:12:45 +00:00
markt
8de73d0fd4 updated behavior of alt-tab to match pre-devel, fixing bug #1755698 2007-07-17 21:21:17 +00:00
markt
5aecf58d47 make sure menus close only when right clicking down and up on the titlebar 2007-07-15 16:32:54 +00:00
markt
18cd70f749 save workspace names, and some fixes for menu behavior 2007-07-07 01:56:46 +00:00
markt
823ce0d017 stop gvim from repeatedly resizing tabbed windows 2007-07-03 21:08:07 +00:00
markt
b70f4c144c fix updating of systemtray and kde dockapps in slit on background change
added fluxbox-remote.cc
2007-07-03 18:50:53 +00:00
markt
86031f9c75 don't create gigantic images when XGetGeometry fails in FbTk::FbPixmap::copy 2007-07-03 01:55:44 +00:00
markt
329fca30fd updates for compiling with gcc 4.3 2007-06-29 17:25:24 +00:00
markt
bbdc61c87b strip off extra bits set by Xorg in event state 2007-06-28 22:25:35 +00:00
markt
8f89c86592 update menu xinerama settings after moving 2007-06-03 23:51:11 +00:00
fluxgen
75f8d95c17 fixed bug #1718112, memory leak in FbWindow::textProperty 2007-05-19 11:42:44 +00:00
markt
cd73887b11 added include command to ITypeAheadable.hh header for tolower() 2007-05-17 20:35:09 +00:00
markt
b66dde6e94 better check these too 2007-05-05 22:33:36 +00:00
markt
008685a90e fixing return value checks for utf8 strings 2007-05-05 22:21:35 +00:00
mathias
6ac57655d9 basicly cosmetic changes, patch by slava semushin 2007-04-17 07:52:40 +00:00
markt
3b9351be77 menu from workspacename tool wasn't focused, and fixed unpressed button rendering 2007-04-08 18:01:01 +00:00
markt
b09aae8579 changed caps lock detection to use LockMask, so the actual key can be used for Mod4, etc. 2007-04-05 16:07:01 +00:00
markt
e89d4aa219 getting rid of more useless files in the repo 2007-04-03 22:39:41 +00:00
markt
06fb6cbd55 fixed a bug, removed some unused code 2007-04-03 17:14:00 +00:00
markt
48f761f981 fixed problem with creating windows in iconic state 2007-04-01 21:42:01 +00:00
markt
a744b152bb fix a little compile error on some machines 2007-03-21 22:52:47 +00:00
markt
d7eebb62bd active menu item wasn't getting reset properly when closed from [exec] with buttonpress 2007-03-19 06:18:25 +00:00
markt
d948abb81b fixed parentrelative menu highlight bug 2007-03-11 19:07:42 +00:00
markt
4ed76f99b6 don't mark menu as focused, even if it gets a FocusIn, when it's not visible 2007-03-07 02:09:24 +00:00
markt
8c5fd07d77 fixed compiling error with xft disabled 2007-03-05 00:16:53 +00:00
markt
b9e39764f3 more little changes to typeahead (thanks Matteo, plus changes from me) 2007-03-04 18:22:25 +00:00
markt
0d02b9bdf3 little bug fix for menu typeahead (thanks Matteo) 2007-03-04 17:51:17 +00:00
markt
4c1a242968 moved some code around (regarding event handling) in preparation for upcoming features 2007-03-04 17:47:37 +00:00
markt
a233229bd8 added support for typeahead in menus 2007-03-03 19:35:34 +00:00
markt
d6a7bd786f add XK_KP_Enter to menu 2007-03-02 19:17:06 +00:00
markt
6de3414135 whoops, didn't mean to add these 2007-02-28 21:32:24 +00:00
markt
a0944a02cd ignore borders when doing FocusLeft, etc. 2007-02-28 21:29:58 +00:00
markt
ec9cd21dda some code simplification and bug fixes
mainly, using a non-zero menuDelayClose allowed you to have multiple submenus open
2007-02-28 19:13:59 +00:00
markt
3503f75903 lots of unrelated fixes 2007-02-27 17:46:48 +00:00
markt
68aa6be216 little sanity check 2007-02-25 17:39:47 +00:00
markt
3d789a1e70 ButtonRelease should only trigger actions if ButtonPress was on the same button 2007-02-21 17:17:40 +00:00
markt
6fdda1a31d added mouse bindings to the keys file 2007-02-09 18:13:01 +00:00
markt
07a3b3939b clicking on the edge of a button didn't work 2007-02-04 18:41:08 +00:00
markt
d446ba265a bunch of cleanup, little bug fixes 2007-01-27 18:06:28 +00:00
markt
c0bfde4aca fix some crashes with empty menus, and fixed default workspace names 2007-01-26 21:57:43 +00:00
markt
0f07f98ae2 don't raise windows above OverrideRedirect windows, or else they eventually get restacked on the bottom 2007-01-25 18:09:11 +00:00
markt
feb56381d7 various changes to menu behavior 2007-01-21 18:43:22 +00:00
markt
6ed9f38b7a several fixes for background option in styles 2007-01-14 19:00:18 +00:00
markt
45743c6f42 fix another 64-bit window property 2007-01-08 21:12:47 +00:00
simonb
a1b78a1e6d I overkilled RefCount. Too tired. Heres the proper fix. 2007-01-07 14:58:10 +00:00
simonb
440c69afa4 fix intrinsic problem with refcount
adjust slit menus to deconstruct properly
2007-01-07 14:07:45 +00:00
simonb
1cc7b60aa2 per-window transparency, including apps and menu support, plus some
infrastructure and related changes. Thanks for original patch from 
Julien Trolet, dmxen at sourceforge dot net
2007-01-07 11:55:14 +00:00
markt
4628ff7694 set opacity properly 2007-01-06 19:59:46 +00:00
markt
94e2c89053 make "force pseudotransparency" menu item work immediately 2007-01-06 19:03:33 +00:00
simonb
1f7b12cc49 move triangle drawing into FbDrawable
Make MenuItem triangles proportional
2007-01-06 07:38:04 +00:00
markt
8930a711ee only grab keybindings on screens managed by fluxbox 2007-01-05 16:54:34 +00:00
simonb
64fcedda00 use LC_TIME for interpreting clock locale.
Fix something likely to break locales on BSDs and things without 
nl_langinfo
2007-01-05 16:10:56 +00:00
simonb
ad7fd2d867 fix loading of rotated fonts on style change 2007-01-05 13:43:54 +00:00
simonb
3a79de034f change default Xft font so that it works properly with rotation (see
notes in ChangeLog or FbTk/Font.cc)
2007-01-05 13:01:19 +00:00
markt
aeac1b3344 scaling color values so that they have the right intensity 2007-01-02 06:31:23 +00:00
markt
9d1447b0d5 more dead functions 2006-12-22 05:44:42 +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
fluxgen
3efe68ffe3 removed duplicate headers, patch from Slava Semushin aka php-coder 2006-11-12 17:16:56 +00:00
mathias
a3c5fd6000 cosmetic patch from slava again 2006-11-07 19:12:42 +00:00
mathias
e5e76e7761 Cosmetic patch from Slava Semushin 2006-10-30 19:31:15 +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
fluxgen
857e96049b added CachedPixmap 2006-10-16 19:41:57 +00:00
fluxgen
9f4baeb0fc cached pixmap helper, works like auto ptr for cached pixmaps 2006-10-16 18:47:27 +00:00
simonb
b1b8bd12ae fix minor menu separator highlight issue 2006-08-14 13:45:05 +00:00
markt
6c4dcc679b it never existed (what never existed?) 2006-08-09 04:54:58 +00:00
markt
bd8ef1bc87 remove FbTk::Menu::enter/leaveNotifyEvent -- caused problems with placing submenus 2006-08-09 04:20:06 +00:00
markt
9b9d5a9617 fix some compiler warnings in gcc 4.1 2006-08-08 19:25:48 +00:00
markt
0954a0b61d fix torn menus on exec 2006-07-26 20:20:52 +00:00
markt
be2f40a10d use a timer to make sure focus always reverts if possible 2006-07-23 09:51:54 +00:00
markt
a72fc5e002 unfix *lock modifiers, ignore scroll lock on events 2006-07-21 08:36:12 +00:00
markt
f9ade8947c properly revert focus when two windows close at the same time 2006-07-20 07:15:59 +00:00
fluxgen
06320420a5 Fixed bug #1362913, did not check format pointer. 2006-07-16 15:55:19 +00:00
markt
349441ec6e dead function 2006-07-11 03:20:41 +00:00
simonb
b407e121ba fix crash on startup from iconv_close of an invalid descriptor 2006-07-04 23:41:43 +00:00
markt
c18985732b more dead functions 2006-07-01 03:32:53 +00:00
markt
698539d9b9 more dead functions 2006-07-01 02:56:46 +00:00
simonb
6dc5ca4e60 some minor code cleanups thanks Slava Semushin (php-coder), who also thanks Mikhail Gusarov 2006-06-27 08:54:24 +00:00
simonb
aedcaea054 properly protect usage of iconv_t by HAVE_ICONV 2006-06-26 01:36:27 +00:00
markt
b699ed4d9e Fix compile error with some compilers not including iconv.h before FbString.hh 2006-06-25 19:04:46 +00:00
simonb
bf9b60833f fix FbPixmap retaining pixmap (that made cache not work properly)
Also small tidy in FbWinFrame.cc
2006-06-25 14:59:34 +00:00
simonb
131d04cf42 Check for NoSymbol more explicitly - thanks Julien Trolet (dmxen at
sourceforge)
2006-06-25 14:00:13 +00:00
simonb
80389b5dd5 support encodings in menu files 2006-06-25 09:05:58 +00:00
simonb
577859034d fix crash when unable to convert from local to utf-8 2006-06-25 07:18:41 +00:00
simonb
0b730c76b1 fix more x errors due to using an invalid background 2006-06-24 14:05:19 +00:00
simonb
1d0b23bd02 fix disappearing menu selection boxes 2006-06-24 13:11:27 +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
simonb
62a298b0b3 make new nls stuff work. Was missing path update 2006-06-21 06:04:55 +00:00
simonb
a6146af44f fix placement issue with xinerama (only hit if screens are vertically aligned) 2006-06-19 08:39:00 +00:00
simonb
f6140840f8 fix timer issues (esp clock not updating on multiple screens) 2006-06-19 05:04:42 +00:00
fluxgen
7d5f6e382b init variables 2006-06-18 21:22:20 +00:00
fluxgen
2fdc6ab808 dont free old color until we have a valid new color 2006-06-10 20:23:00 +00:00
fluxgen
d218f02f80 added new command: ToggleCmd, works like a macro but executes the commands one at the time. Thanks Mark Tiefenbruck 2006-06-10 20:04:34 +00:00
fluxgen
e536993c92 using shift while pressing enter in menu will fake a button 3 press (rmb), thanks _markt 2006-06-10 17:09:15 +00:00
simonb
e8a6f45c9e fix compile in hosts without HAVE_ICONV 2006-06-10 16:42:39 +00:00
simonb
4afe5499b2 fix parentrelative background, and some tidying 2006-05-22 15:09:21 +00:00
simonb
d508292a57 fix build on cygwin (iconv constness) 2006-05-22 07:34:25 +00:00
simonb
ff463a0481 missing include (broke gcc 2.95 build) 2006-05-20 15:27:40 +00:00
simonb
460f57a4ad fix error when running with -i (or similar "don't start Fluxbox class"
options
2006-05-20 15:23:54 +00:00
simonb
70a834f80c fix build without nls 2006-05-20 15:16:12 +00:00
simonb
0861f3a907 improve native language handling, move messages and menu labels to
FbTk::FbString
2006-05-20 15:08:14 +00:00
simonb
5ddabb0f39 fix root pixmap + atoms indexes in FbPixmap
Fixes issues with transparency on multiple screens, and probably also
some alternate rootbg atoms
2006-05-17 10:28:26 +00:00
fluxgen
e6a107e577 added comments 2006-05-13 16:46:31 +00:00
fluxgen
6d2a92c059 just a minor change 2006-05-13 16:45:56 +00:00
simonb
faf043bef9 more utf8 changes, notably window titles 2006-05-07 10:08:25 +00:00
simonb
c69b4020c5 missed two added files, whoops 2006-05-07 03:45:43 +00:00
simonb
520f552be7 handle utf-8 strings properly.
use utf8 internally
2006-05-07 03:41:27 +00:00
fluxgen
96f47306ac fixed minor bug 2006-04-26 16:38:02 +00:00
mathias
a15d9af3c7 Cleanup unneeded headers (thanks Slava Semushin) 2006-04-25 06:46:06 +00:00
simonb
e2bc57bc0f Fix occasional highlighting of menu nops+separators, sf.net patch
#1475268 (thanks Scott Kuhl; skuhl AT cs utah edu)
2006-04-25 03:11:31 +00:00
simonb
3707b74c40 fix a bunch of comments, make default textures obvious
Thanks Jonas Koelker
2006-04-25 02:19:04 +00:00
simonb
acf4326f3c Use -Wall when --enable-debug and some warning fixes
+ thanks Jonas Koelker
2006-04-24 14:29:21 +00:00
simonb
f6a072430d fix memory leaks in menu code 2006-04-24 13:34:14 +00:00
fluxgen
5e598c460e removed include 2006-04-23 21:32:19 +00:00
simonb
cfd92af2b6 fix menu corruption when size/label changes 2006-04-22 17:19:53 +00:00
simonb
67326a080a update transparent window backgrounds on bg change 2006-04-21 16:07:45 +00:00
simonb
4c011a0a12 don't check the clock so often... 2006-04-18 15:17:11 +00:00
simonb
9ff23f01ca fix some rotation issues 2006-04-17 13:35:20 +00:00
simonb
553104ee1d fix all compiler warnings with -Wall 2006-04-16 11:18:22 +00:00
simonb
7c79084433 implement vertical toolbar placement options 2006-04-15 16:41:11 +00:00
simonb
0780952b10 fix window button image updates 2006-04-14 14:22:16 +00:00
simonb
33079d2593 add "key modes" - thanks to Mark Tiefenbruck, mark at tiefenbruck dot org 2006-04-12 15:51:37 +00:00
fluxgen
f1a6c9100b just some indent 2006-04-09 17:40:59 +00:00
simonb
e337c67566 fix size_t issues and other 64bit-highlighted warnings 2006-04-06 13:59:52 +00:00
simonb
0497afae19 fix Xmbfonts on multiple screens
and external tabs showing from different workspaces on placement change
2006-04-05 03:48:16 +00:00
simonb
42719701dc rotated Xmb Fonts, by rotating as we draw 2006-04-04 14:07:07 +00:00
simonb
c243fa897f rotated XFonts (and minor ext tab alignment fixes) 2006-04-04 12:16:26 +00:00
fluxgen
894a7148be size_t fixes, thanks Semushin Slava aka php-coder 2006-04-02 21:37:44 +00:00
simonb
af74a22845 rotated fonts, buttons, containers. Used for tabs for now 2006-03-26 04:02:30 +00:00
simonb
7c4e48cc69 fix compile error, include algorithm 2006-03-24 10:52:57 +00:00
simonb
ffae659b3e external tab fixes, plus aligning items properly 2006-03-23 02:06:51 +00:00
fluxgen
e89c8acfb3 minor type-o fix, thanks Semushin Slava 2006-03-20 22:23:41 +00:00
fluxgen
e396fd423e minor type-o fix, thanks Semushin Slava 2006-03-20 22:23:07 +00:00
simonb
f2d3fff4d4 external tabs 2006-03-20 11:31:24 +00:00
fluxgen
75c7965446 define ostrstream and ostringstream 2006-03-18 21:56:05 +00:00
fluxgen
53b9228348 added Type typedef of T in Resource 2006-03-18 21:55:38 +00:00
fluxgen
0530d278e7 fixed memory leak when XCreateImage fail, thanks php-coder 2006-03-14 20:19:33 +00:00
mathias
ec7ce1e029 cosmetic changes from php-coder (copyright, header) 2006-02-27 20:58:16 +00:00
fluxgen
d23eeeaa4e Added template getResource(string) to ResourceManager.
It finds and returns reference to resource on success,
else throws ResourceException.
2006-02-18 10:12:10 +00:00
mathias
ae05ad9a01 updated copyright info 2006-02-16 06:53:05 +00:00
fluxgen
2d965148ca minor typeo 2006-02-12 08:06:47 +00:00
fluxgen
f0ad96c7dc explicit constructor 2006-02-12 08:05:58 +00:00
fluxgen
ab26593cdd added static validColorString function, returns true if the color string is in valid color format 2006-02-12 08:05:34 +00:00
fluxgen
e85b2f3f5b added force_update option to force an update of the m_root_pixmaps 2006-02-12 08:04:31 +00:00
fluxgen
b429656122 minor stuff 2006-01-22 13:54:02 +00:00
mathias
f803d8f250 applied patch from php-coder to fix some warnings, mostly signed vs unsigned
issues
2006-01-16 18:46:39 +00:00
fluxgen
50d41f6f5b unused headers 2006-01-03 18:20:49 +00:00
fluxgen
7be5606abb using screen based vector for theme lists 2006-01-03 10:02:46 +00:00
fluxgen
e4976c3d34 removed unused variable 2005-12-22 23:39:31 +00:00
fluxgen
7593eb165f removed unused variable 2005-12-22 23:39:03 +00:00
fluxgen
d72ed76cbd removed unused variable 2005-12-22 23:38:24 +00:00
fluxgen
be1cbd4690 public setRootPixmap 2005-11-22 21:08:07 +00:00
fluxgen
b131f3a8af minor indent 2005-11-22 21:07:34 +00:00
fluxgen
8e404f10dd const fix 2005-11-22 21:07:07 +00:00
fluxgen
8434c42aa8 const resourceValue function 2005-11-22 21:06:49 +00:00
mathias
28837ee6e1 introduced session.styleOverlay (~/.fluxbox/overlay), all style settings
made in that file will override/overlay the ones made in the used
style. TODO: write more specific docu about it
2005-11-16 22:08:05 +00:00
mathias
6403deb65e just some minor cosmetic issues 2005-11-16 21:54:45 +00:00
mathias
f14c73ed33 Fixed #1223878, Style reloading on USR2 (patch from Zan)
cosmetic stuff in StringUtil.cc/hh
2005-10-21 19:23:57 +00:00
fluxgen
a9f9e6d6ee added replaceString 2005-10-20 14:48:53 +00:00
fluxgen
0989e903e3 minor change 2005-09-14 20:28:29 +00:00
fluxgen
d4d91d0993 include memory for auto_ptr 2005-09-14 19:22:59 +00:00
fluxgen
fff4c906b3 bugfix for client menu 2005-09-07 23:19:08 +00:00
mathias
2b2236e97c texture limits were hardcoded to 3200 in TextureRender.cc .. this lead
to useless warnings on huge xinerama setups with those nifty 20' or bigger
lcds ... we use now screen dimensions to set a sane limit for textures
2005-09-03 14:44:07 +00:00
grubert
a5310fae34 Add missing `template <>` befor ThemeItem<Font>::setDefaultValue. 2005-06-28 13:43:02 +00:00
fluxgen
0df6609bb9 added showSubmenu in MenuItem 2005-06-23 03:09:39 +00:00
mathias
3d722f2428 *.font.shadow.x and *.font.shadow.x were not correctly read or better,
misinterpreted. so the shadow'ed text was written direct underneath the
    normal text .. and hence invisible.
2005-06-17 23:55:15 +00:00
mathias
a4a6cf9035 little typo which prevented shadowcolor beeing set 2005-06-16 18:21:50 +00:00
mathias
acaa583093 Fixes #1216020, *.font.effect wont get cleared if not defined in style 2005-06-15 06:18:03 +00:00
mathias
ef76b45ab1 - Usage of xft-fonts is prefered, except a font-description starts with '-'
- Removed "antialias"-option completly, to enable/disable "antialias"
  use either  <fontname>:antialias=<bool> in the style or use
  Xft.antialias: <bool> in your .Xdefaults
- Added new styleresources: 
    *.font.effect: <halo|shadow>
    *.font.shadow.x : <int>       - shadow x offset
    *.font.shadow.y : <int>       - shadow y offset
    *.font.shadow.color : <color> - color of shadow
    *.font.halo.color : <color>   - color of halo
- Removed 'shadow' and 'halo' options from fontdefinitions:
    !! Style authors have to update their styles !!
- Simplified XmbFontImp to not try all possible fonts to match locale
- Style authors may specify multiple fonts:
    <font1>|<font2>|<font3>
  if loading of font1 fails, fluxbox probes <font2>, etc. The last font is
  "fixed". Hints for style authors:
    - if xft tries to load a font it will _ALWAYS_ return a valid font,
      it doesnt have to look like the one you want to have, read more
      about it: http://fontconfig.org/fontconfig-user.html
    - export XFT_DEBUG=1  before running fluxbox helps to see
      which fonts are picked.
  eg:
      *.font: Verdana,Arial-12:antialias=true|-artwiz-snap-*-
      if fluxbox is compiled with xft this will NEVER try to
      load "-artwiz-snap-*-" since xft gives for sure a font,
      most likely Verdana or Arial but noone knows. So, if
      fluxbox has no xft support the first fontpattern fails
      and fluxbox tries the next one, which might be successful.
      if everything fails, it will use "fixed"
- Added caching of fonts, fonts are only loaded once.
- Fixed #1090902 (slow utf8 start)
2005-06-03 07:25:48 +00:00
mathias
9c27e2e799 deleted the "fallback"-code, which was one of the reasons for slowing down
fluxbox in utf8-locales:

if no fontset is found up to this point its because of
  a) no such font
  b) not supported locale

if we try our best and enhance the basename-list and add some
more generic patterns the xserver will give us a valid
fontset .. which is good coz we have something to work with
but which is BAD coz we return a valid fontset as if we 
have found the font the user wants .. so, every fallback
in higher level code will fail coz we find a valid fontset by any
meaning here. if no fontset can be found, the "fixed"-fontset should
be there already.
2005-06-03 07:22:27 +00:00
fluxgen
c8898e2017 locale path 2005-05-18 08:32:17 +00:00
mathias
64336d4cec llittle rewrite for the FbTk_istringstream usage.. was needed coz gcc2.95.x
systems had problems before. with this change fluxbox should compile on such
old compilers.
2005-05-12 20:16:45 +00:00
mathias
7d1d67ca78 __APPLE__ doesnt have <nl_types.h> 2005-05-12 19:56:40 +00:00
mathias
f726168051 copy N paste ... icc complained slightly 2005-05-10 19:38:02 +00:00
simonb
5fec1906cc cache the root pixmap (per screen) 2005-05-10 16:29:00 +00:00
mathias
318d76b47c fix from vadim for fbrun-tabcompletion 2005-05-09 07:20:17 +00:00
mathias
4ddda95f20 patch from vadim to fix the issues in input-areas he introduced with his last
patch
2005-05-07 19:33:54 +00:00
simonb
5763339f4c remove default gray background on created FbWindows
(not everything should get a bg set)
2005-05-07 12:59:43 +00:00
simonb
90fcc93d6e fix segfault opportunity in menu 2005-05-06 15:22:24 +00:00
mathias
d6ee96775d more keyactions for textbox-patch from Vadim <suhanov_vadim at mail dot ru> 2005-05-06 10:02:03 +00:00
mathias
6c057c6903 Fix for #1160244, #1099704, #1094107:
if the xkb-extension is enabled and the user switches between his/her
keyboardlayouts fluxbox's keybhandling doesn't work well anymore because
xkeyevent.state contains also xkb-related flags and thus we have to handle
that with caution.

KeyUtils now contain 'isolateModifierMask()' to really work only on the
modifiers. why not as part of cleanMods() ? because the XLookupString return
false results, eg TextBox's would only print chars from the first
keyboardlayout.
2005-05-06 09:22:53 +00:00
simonb
7d4f711204 fix some menu drawing issues 2005-05-03 13:53:25 +00:00
fluxgen
ab3309338f Select2nd file 2005-05-02 12:14:31 +00:00
fluxgen
6b943ec69a select 2nd element in pair 2005-05-02 12:03:15 +00:00
mathias
08601c23d3 enabled MenuItems / Separators are not clickable and the same logic should
apply to keys.
2005-04-29 11:20:41 +00:00
fluxgen
dba0d4ffb3 display accessor 2005-04-29 02:53:06 +00:00
simonb
94e3fa88fc revert mathias last change, and fix it differently using info already
there
2005-04-28 14:20:59 +00:00
mathias
f1c5abd17f i added an attribute to FbWindow to mark windows which are only used as
"carrier" (maybe a temporarly name?) ... carriers dont need background-updates
.. ever.

this leads to a big performance"boost" over the last commits. before we
updated also the windows which are the hosts for the apps (m_window and
        m_clientarea in FbWinFrame) -> bad idea.
2005-04-27 21:18:41 +00:00
simonb
c0f7258063 fix background setting + initialisation 2005-04-27 17:57:40 +00:00
simonb
690030444b add rough support for non-default depth pixmaps. Saves us having ghost
holes in windows
2005-04-27 17:45:56 +00:00
simonb
9970dd11c7 fix a few more bugs with recent reworking stuff
Some fixes could incidentally fix a few other bugs... the flaws were
pre-existing, I've just been weeding out a lot of duplication
2005-04-27 15:15:36 +00:00
simonb
6df9d6ed54 fix drawing foreground when transparency off 2005-04-26 11:37:29 +00:00
simonb
e57a30f664 fix systray client sizing 2005-04-26 04:18:10 +00:00
simonb
1c2f92a3d2 extension of previous big patch. Move a bunch of menu things onto
background pixmap. Same for textbuttons.
2005-04-26 01:41:55 +00:00
mathias
adc88698fb #1188690, fbrun segfault 2005-04-25 06:47:01 +00:00
simonb
6e774e79e1 fix a few drawwing issues, esp menu opening offscreen 2005-04-15 00:39:54 +00:00
mathias
95ea1a0151 cosmetic 2005-04-14 17:12:33 +00:00
simonb
ddcecec37e fix a few small bugs from recent big patch 2005-04-13 14:39:25 +00:00
simonb
88c66f0687 Big changes to how transparency works
Consequently rearrange lots of rendering ops, and strip calls to 
updateTransparent
2005-04-10 18:18:14 +00:00
simonb
007c495239 Tidy up some redundant pixmap allocs 2005-04-02 14:59:38 +00:00
mathias
150777e336 fix for #1152450, when having multiple screens the rootCommand's were
called too often:

  m_root_menu is locked for the current screen when loading the
  style for the current screen, but not for the screens already
  initialized and thus its executed when called thru Theme::reconfigure();
 
  now only the themes on the same screen are affected by the load-routine.
2005-03-16 22:44:48 +00:00
fluxgen
e822437cb8 added stringstream header 2005-02-13 16:34:14 +00:00
fluxgen
8e0a3300ad stringstream 2005-02-13 16:33:49 +00:00
mathias
4a7d0b8434 cosmetic + updated copyright year 2005-02-10 10:24:31 +00:00
mathias
39e27876dd updated copyright year 2005-02-08 17:09:56 +00:00
mathias
b82b3b98d2 copyright year 2005-02-07 23:39:57 +00:00
mathias
d74e851955 updated copyright date 2005-02-07 13:51:50 +00:00
mathias
703fc0b0ee cosmetic white-space-stuff and/or copyright dates 2005-02-07 13:46:55 +00:00
mathias
8e33dad39f white-space cosmetic 2005-02-07 13:45:31 +00:00
mathias
67098a21ea closes #1107213, 64bit issues with XChangeProperty
submitted by  Matthieu Herrb <matthieu.herrb@laas.fr>
2005-01-31 16:55:38 +00:00
mathias
5e9814e091 fix to solve compileproblems under freebsd4 2005-01-24 20:02:03 +00:00
mathias
6b8fca511c copyright date 2005-01-24 18:02:34 +00:00
mathias
ab1a422ac6 copyright date 2005-01-20 22:49:56 +00:00
fluxgen
78f3ca5db6 cleaning 2005-01-15 13:35:48 +00:00
mathias
a07d61e63d moved ThemeItem<bool> - implementation to FbTk/ThemeItems.cc 2005-01-14 09:43:31 +00:00
mathias
f0fd05ec25 copyright 2005-01-14 09:40:40 +00:00
mathias
e0550eb098 cosmetic change 2005-01-12 06:22:26 +00:00
mathias
2a49732159 fix for #1099278 2005-01-11 12:39:01 +00:00
mathias
5bbab52d6d fix for #1099950, Missing initialization in FbTk/FbWindow.cc 2005-01-11 12:05:10 +00:00
mathias
0134038fee fix problems with imlib2 on restart:
only when using "imlib_load_image_with_error_return" as the loading
    function imlib2 seems to avoid trouble when an image with <filename>
    doesnt exist. all other loadroutines lead to heavy problems when 
    fluxbox shuts down and tries to restart (memleak(?), distorted xressources
    etc)

    i ll analyze this further. another open issue with imlib2 is that it
    doesnt work when xserver/fluxbox is running in dualscreen-mode (not
    xinerama), no valid pixmaps are visible on the second head. dunno why
    (yet).
2005-01-02 06:27:45 +00:00
mathias
c7a3200730 small issues:
- added a guard so no invalid(0)-handler is deleted at shutdown

- "if (s_image_map[extension] == 0)" -> creates an entry for sure, we
  dont want this.
2005-01-02 06:21:45 +00:00
mathias
ddfb14a264 correct isExecutable 2004-12-24 06:14:08 +00:00
mathias
bc7c988561 adds imlib2-support to fluxbox: allows us to load several imageformats
besides xpm. to get imlib2 support in fluxbox one has to 
 
  ./configure --enable-imblib2

default is disabled.  a fluxbox-binary that supports imlib2 will have 
IMLIB2 in "fluxbox -info"-output

explanation to the changed files:

 * xft.m4 -> acinclude.m4 + added ac_path_generic.m4 
   (from http://ac-archive.sourceforge.net/Miscellaneous/ac_path_generic.html)

 * configure.in, Makefile.am, src/FbTk/Makefile.am changed to handle
   imlib2-support

 * Font.cc/hh Image.cc/hh App.cc fluxbox.cc consistent way of init for global
   stuff for fonts and imagehandlers.

 * rest of changes just add the imlib2-code, pretty straightforward
2004-12-21 23:42:09 +00:00
mathias
a88d3b39ad added deleteProperty to FbWindow 2004-12-21 16:12:28 +00:00
mathias
33d90f7a5e fix segfaulting when new text is smaller than the oldtext,
m_start_pos has to be 0 before calculating anything else.
2004-12-18 02:44:11 +00:00
mathias
b3fa5c2428 * moved FbTk/Directory.cc/hh over to FbTk/FileUtil.cc/hh which contain now
file and directory - helproutines.

* created the FileUtil-namespace which contains file-related functions, moved
  those functions out of Directory - code

* changes to the rest of the files to follow those changes
2004-12-18 01:29:22 +00:00
mathias
6458b1b485 cosmetic, double #include of the same header 2004-12-18 01:10:33 +00:00
mathias
eb42a7806d icc complaint about a "possible" conflict between the
FbTk::Menu::update(Subject*) and FbTk::Menu::update(int index)

to avoid this, we rename FbTk::Menu::update(int index) 
    -> FbTk::Menu::updateMenu(int index)

this is mostly cosmetic, but if it makes the life of a compiler happy, well ..
be happy icc :)
2004-12-13 14:03:17 +00:00
mathias
55163188b5 fix #1080323, a missing header 2004-12-10 03:42:53 +00:00
mathias
66a3fc1c4d fixes fontsituations when text disappears in non-antialias mode
primary problem was to use utf8 when in fact the FontSet wasnt
utf8.
2004-11-19 12:00:20 +00:00
mathias
993c17cf2e svn propset svn:keywords "Id" 2004-11-19 11:37:27 +00:00
mathias
1f133063aa fixed missing init for pointer in destructor .. could lead to segfaults 2004-11-17 16:39:30 +00:00
akir
fa5202c120 accepted patch #1057446, improved iterator in timer-code 2004-11-01 02:43:07 +00:00
akir
fa1692180e fix #1057499 2004-10-31 23:04:30 +00:00
akir
5b68a7548c i forgot to remove a silly warning :) 2004-10-25 22:57:32 +00:00
akir
66afb1e517 moved ThemeItems.hh -> ThemeItems.cc 2004-10-21 16:46:50 +00:00
akir
6b541c9162 modified to make it work with the ThemeItem.hh -> ThemeItem.cc action 2004-10-21 16:45:30 +00:00
akir
a63a27886d moved ThemeItems.hh to ThemeItems.cc, solves some linkissues 2004-10-21 16:44:06 +00:00
akir
0d7f757c2c fixes missing header to avoid missing declarations (mipspro) 2004-10-21 10:29:49 +00:00
akir
b7190ee2e5 fix for mipspro: no 'new(nothrow)' available for MIPSpro Compilers: Version 7.3.1.3m 2004-10-21 10:03:43 +00:00
akir
45726d3016 if the systemtime is set back the timers wont be updated.
solution: add the delta to all of our timers too.
2004-10-19 08:59:44 +00:00
akir
1ace87ac15 fixes MIPSpro Compilers: Version 7.3.1.3m issue 2004-10-18 20:10:37 +00:00
akir
876a70fce2 added padding: space between text and the border 2004-10-10 16:04:33 +00:00
akir
565db1bcda entering @ and ~ from germankeyboards work again
added some stuff to let the user use the numpad too
2004-10-08 11:52:33 +00:00
akir
0fab25bfd2 we dont remove the scrolllock() modifier from the keystate anymore -> lead to problems with altgr on german-keyboards -> no @ in textbox's possible. 2004-10-08 11:51:16 +00:00
akir
fbbd335dce cosmetic 2004-10-08 11:49:55 +00:00
akir
9c3ad19748 added LC_TIME so the ClockTool gets the right locale 2004-10-07 09:52:28 +00:00
akir
0e8ac3839d tiny forgotten thingy from the MAN :) 2004-10-06 19:19:43 +00:00
akir
a5b9315b33 fix some keymovement issues, dunno if its completly correct that way. perhaps
a rewrite of the movement stuff is needed one day.

modified buttonPressEvent so it will place the cursor to the right place
2004-10-06 19:05:12 +00:00
fluxgen
997d7d7224 allocate red, green and blue buffers only for gradients 2004-10-06 09:30:54 +00:00
fluxgen
662d1a459c setTile for X Drawable 2004-10-06 06:50:27 +00:00
rathnor
07af4ff595 fix usage of setlocale return value, which returns a pointer to static
memory, which we need to promptly copy
2004-10-04 12:43:52 +00:00
akir
c0777f792c fix to make separators are not clickable/selectable 2004-09-29 09:58:11 +00:00
rathnor
15547c4179 fix build issue, use cerr instead of fprintf(stderr 2004-09-24 06:23:17 +00:00
akir
e8c813c38c fixed a minor bug that can lead to HIGH cpuload under some circumstances.
actually we must ensure that only timers with a valid handle are added to the
timerslist.
2004-09-19 21:15:47 +00:00
rathnor
42c1fd3ae3 preliminary support for composite/compositing manager. Also general work
for consistency with transparency resources
2004-09-12 14:56:20 +00:00
fluxgen
049e40c9eb Font::drawText takes reference to FbDrawable instead of X Drawable + some code cleaning 2004-09-11 23:01:34 +00:00
fluxgen
acd2176355 copyright update 2004-09-11 23:00:44 +00:00
fluxgen
82c2f3521e access function for display 2004-09-11 20:30:28 +00:00
rathnor
28c32c087a more X error fixing 2004-09-11 15:52:23 +00:00
fluxgen
768d98a39d head specific strut, patch from Mathieu De Zutter 2004-09-11 13:45:16 +00:00
rathnor
7d793fc6a8 fix issues that resulted in unnecessary X errors 2004-09-11 12:33:14 +00:00
akir
c8f9cf1177 cosmetic + avoid unneeded App::instance()->display() calls 2004-09-10 16:48:15 +00:00
akir
df0c942aa2 cosmetic + avoid unneeded App::instance()->display() calls 2004-09-10 16:41:30 +00:00
akir
bf48239dee cosmetic + try to avoid App::instance()->display() calls when not needed 2004-09-10 16:12:49 +00:00
akir
97d2577f1a cosmetic issues, removed unneeded strcasestr-code (is already in StringUtil),
tried to avoid App::instance()->display() calls again.
2004-09-10 16:12:01 +00:00
akir
b453d143bb cosmetic, man, we need a beautifarm :) 2004-09-10 16:04:16 +00:00
akir
a7967dfb25 put App::instance()->display() to FbDrawable::s_display to avoid too much
unnecessary calls
2004-09-10 15:46:08 +00:00
akir
e51cc63ccb cosmetic, tabs to spaces 2004-09-10 07:15:23 +00:00
rathnor
1081940af3 clean up unused variables, from Ryan O'Hara 2004-09-10 04:03:58 +00:00
akir
c75a703586 tiny cleanup to avoid calling unnecessary FbTk::App::instance() 2004-09-09 21:13:10 +00:00
akir
1d355a9192 transfered ::getRootPixmap from several places to new home, FbPixmap 2004-09-09 14:29:10 +00:00
rathnor
012f661179 fix crash on amd64 2004-09-03 17:05:35 +00:00
akir
1be3c8b270 cosmetic 2004-09-03 14:17:47 +00:00
akir
0fbb0bfe8b cosmetic 2004-09-01 08:00:24 +00:00
akir
b12ce691bc fix width for a menuentry, added too much space 2004-09-01 07:53:45 +00:00
akir
1c2edb9a01 final fix for iconv-issues on sun/sparcs 2004-09-01 00:09:03 +00:00
akir
0c5dae0b45 fix for a compile-error with mips-pro 7.30 (segfaulted) 2004-09-01 00:08:14 +00:00
akir
47160bdb31 fix for the missing CODESET on openbsd 2004-08-31 23:07:58 +00:00
akir
6a098b0797 hopefully final fix for missing iconv 2004-08-31 21:47:56 +00:00
fluxgen
82de6ace6d have const msg ptr to iconv 2004-08-31 21:24:05 +00:00
fluxgen
9121ec43af checking for have iconv 2004-08-31 20:27:08 +00:00
rathnor
d17bf39a43 add autoconf check for std c++ headers 2004-08-31 15:26:40 +00:00
akir
6a99427331 fi menuuclosebug -> choosed the wrong parent-menu under some circumstances 2004-08-30 10:23:37 +00:00