Commit graph

2953 commits

Author SHA1 Message Date
mathias
6403deb65e just some minor cosmetic issues 2005-11-16 21:54:45 +00:00
mathias
28bf04cc13 resolved minor for compiling under win32/cygwin, multiple symbols 2005-11-16 06:42:50 +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
88de9987f7 add backslash to special chars, fixes bug #1327878 2005-10-20 14:50:50 +00:00
fluxgen
a9f9e6d6ee added replaceString 2005-10-20 14:48:53 +00:00
mathias
4dec832b6b Fixed reordering of tabs, patch from Rob Stevens 2005-10-19 04:46:05 +00:00
mathias
42afb46169 avoid drawing the resize outline when not really resizing, caused flickering. 2005-10-04 07:19:56 +00:00
mathias
15c21ed267 reverted last change .. the problem of the user must be handled differently... never commit after 3 hours of sleep again. 2005-09-16 15:20:26 +00:00
mathias
3a0d8391f8 LeftMouseButton should always setInputFocus() to avoid focus problems
when changing the active window via NextWindow/PrevWindow and then
not beeing able to set the focus of the window underneath the mouse
with a simple click again (in MouseFocus - mode). Suggestion via
mail to devel-ml from Eike von Seggern
2005-09-16 05:58:26 +00:00
mathias
94acb4a27e use fbsetroot in default styles 2005-09-16 05:39:12 +00:00
fluxgen
0989e903e3 minor change 2005-09-14 20:28:29 +00:00
fluxgen
43fc6483b4 moved MenuContext class 2005-09-14 20:28:15 +00:00
fluxgen
8634b9b3ef include memory for auto_ptr 2005-09-14 19:59:26 +00:00
fluxgen
73ee2ebc54 include functional for mem_fun_t 2005-09-14 19:56:14 +00:00
fluxgen
d4d91d0993 include memory for auto_ptr 2005-09-14 19:22:59 +00:00
mathias
b8f155bf36 fixes #1281708, MenuIcon doesnt scale properly, patch from sf.net 2005-09-12 18:27:18 +00:00
simonb
013b07900b tweak last patch for titlebar scroll options 2005-09-08 00:41:05 +00:00
fluxgen
fff4c906b3 bugfix for client menu 2005-09-07 23:19:08 +00:00
simonb
070a216aa8 Add titlebar scrolling options (thanks Krzysiek Pawlik <krzysiek.pawlik__AT__people.pl>)
New init options added:
  session.screenN.windowScrollAction: Shade|NextTab
   - set the action that happens when scrolling on the titlebar
  session.screenN.windowScrollReverse: true|false
   - reverse the action direction
2005-09-07 16:46:17 +00:00
mathias
cfb26be269 added feature request #1084510:
when mod1 + leftmouse are clicked on a window and the mouse is not
moved, the window is raised at leftmouserelease. i dont think we
need an extra option for that since its very unobtrusive but neat
to have.
2005-09-04 21:22:09 +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
fluxgen
0009bda842 added svn revision number output, thanks php-coder 2005-08-31 20:15:01 +00:00
mathias
da8d245704 --disable-regexp switches from <regexp.h> to <string> in
Regexp.cc .. but it still needs to be compiled. hence the
little fix in src/Makefile.am
2005-08-23 06:39:48 +00:00
mathias
7b21abc421 Fix for #1240248, Segfaults for :MoveTabLeft/Right
wrong code in Container.cc
2005-07-25 23:17:41 +00:00
mathias
460dffdcc1 Changed some *Focus options, just to make some things a bit more clear.
the "Sloppy" was always a bit .. unprecise.

removed SloppyFocus, SemiSloppyFocus and ClickToFocus options
added MouseFocus, ClickFocus, MouseTabFocus, ClickTabFocus
- MouseFocus - change the focus to the window under the mouse
  (almost similar to the 'old' SloppyFocus)
- ClickFocus - change the focus to the window the user clicks
- MouseTabFocus - change active tabclient to the one under the
  mouse in titlebar, does NOT change the focus
- ClickTabFocus - change active tabclient when clicked onto a 
  tabbutton
to achieve former SemiSloppyFocus behavior one needs MouseFocus and
ClickTabFocus
2005-07-20 18:29:01 +00:00
mathias
3e16ad8cf8 When the screen is filled with windows it can be pretty hard to find a "valid"
area to drop a tab button to detach the client from the group. solution is to
detach the client if the tab button is dropped onto the client area of the
same group.
2005-07-13 18:41:38 +00:00
fluxgen
0ffbf55eb3 info about locale path, patch from php-coder 2005-07-07 12:14:55 +00:00
mathias
56580b2321 respect border size in the MoveTo action, especially at the right and lower
border of the screen.
2005-07-05 21:57:33 +00:00
fluxgen
63475f7796 cleaning, change getCount to numberOfWorkspaces 2005-07-04 18:19:53 +00:00
fluxgen
3626faea73 cleaning, change getCount to numberOfWorkspaces 2005-07-04 18:19:09 +00:00
fluxgen
1727656e0a cleaning, change getCount to numberOfWorkspace 2005-07-04 18:18:32 +00:00
mathias
66a241cc43 if we check the time only ever second we can get into trouble, eg:
assume its 12:34:56.99, displaying 12:34:56 takes some time and so its already
12:34:57 when we display 12:34:56. to fix that i set the time to check the
clock to 0.01 seconds. that shouldnt hurt much since we only redraw the clock
when the string has changed.

a more complex approach would be to analyze the strftime-string and set the
timeout accordingly. but i dont know if its really worth the effort and beeing
a bit off schedule can happen too, just not as often as if you are in seconds
mode.
2005-06-30 08:38:53 +00:00
grubert
a5310fae34 Add missing `template <>` befor ThemeItem<Font>::setDefaultValue. 2005-06-28 13:43:02 +00:00
mathias
a5f7e6f809 - Fix for toggling the toolbar doesnt update strut (thanx C. Monti)
- Little reordering of ToolbarMenu items, more important ones to the top and
  "edit current ws" out... maybe we should think of another way of providing
  menus for the tools .. submenus?
2005-06-28 10:16:59 +00:00
fluxgen
4382b78b95 minor fix for window menu 2005-06-23 22:39:03 +00:00
mathias
a54a2b1409 added forgotten _FBNLS; 2005-06-23 09:22:11 +00:00
fluxgen
fdaefcf795 moved window menu from FluxboxWindow to BScreen 2005-06-23 03:10:26 +00:00
fluxgen
0df6609bb9 added showSubmenu in MenuItem 2005-06-23 03:09:39 +00:00
fluxgen
5373f6d840 moved window menu from FluxboxWindow to BScreen 2005-06-23 03:07:25 +00:00
fluxgen
18cf586249 new files 2005-06-23 02:57:24 +00:00
simonb
c912f7a32a fix handling of shaded and iconic windows, particularly on restart 2005-06-19 15:40:43 +00:00
simonb
3fd472679d revert 4055, caused crashes plus it should be done differently 2005-06-19 14:06:34 +00:00
simonb
c2ec3065f9 change fbwinframe to use container
move a few frame ops to have most code in Container
2005-06-19 12:12:54 +00:00
mathias
019da77c56 Fixes #1116965, shadwd windows on restart:
shaded icons behaved badly on restart, they went into a real stupid state:
somehow shaded, but at the same time iconic, so you werent able to unshade,
resize them properly.

i fixed that by applying NormalState on shutdowntime (see
FluxboxWindow::restore(), unshading a shaded frame to get good
window dimensions and on init() i mark the window initialized and connect it
to Fluxbox::attachSignals() a bit later.
2005-06-18 13:47:36 +00:00
mathias
a8d7752804 Screen.cc: not used code
fbgm.in: added amarok
2005-06-18 13:32:56 +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
d69e300376 Enhanced MoveTo, fixes #1074568
MoveTo <int|*> <int|*> <Reference Corner>
   - * means "use current value"
   - Reference Corner is one of:
     - UpperLeft, Upper, UpperRight
     - Left, Right
     - LowerLeft, Lower, Right
   examples:
     MoveTo 0 * Left       -> snap to left workspace edge
     MoveTo * 0 Lower      -> snap to lower workspace edge
     MoveTo 0 0 UpperRight -> snap to upper right workspace corner
TODO: perhaps add some "aliases" to make it more userfriendly
2005-06-15 15:17:48 +00:00
mathias
cdc4338c6b Fixes #1213003, SendToWorkspace shouldnt follow
SendToWorkspace and the rest are putting the window onto the new workspace
silently, TakeToWorkspace warps to the new workspace with the window.
2005-06-15 09:48:46 +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
5324a82b01 most used items should appear ontop of a menu. so i reordered the
workspacemenu a bit to fit that idea.
2005-06-08 23:03:12 +00:00
mathias
a663db8fd3 Fixed justification in WorkspaceNameTool #1213262, values were set after the
render() call was made.
2005-06-07 09:01:29 +00:00
mathias
99a7f9a110 added -screen to -help 2005-06-04 11:46:42 +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
mathias
5f489c23e4 * patch from vadim <suhanov_vadim@mail.ru>:
"_BLACKBOX_NOTIFY_WINDOW_ADD was emited before _NET_CLIENT_LIST 
 and _NET_CLIENT_LIST_STACKING lists updates."
2005-06-02 01:39:31 +00:00
mathias
ad5eb13210 * patch from vadim <suhanov_vadim@mail.ru>:
"when i iconify some window it disappears from _NET_CLIENT_LIST until 
 Ewmh::updateClientLis are been called again."
2005-06-02 01:38:03 +00:00
mathias
3d497bb703 * _NET_WM_STATE_HIDDEN is now used correctly -> if the window goes iconic, this
state is set... what about moving it outside of the visible area? we need to
  think about this.
* mixing _NET_WM_STATE_HIDDEN and _NET_WM_STATE_SKIP_TASKBAR is solved, we
  dont do this anymore
* we dont use _NET_WM_STATE_SKIP_PAGER .. so we shouldnt delete it, thats
  handled now correctly -> look at the *State() - functions
2005-06-02 01:36:28 +00:00
fluxgen
f9af363e24 added the ability to use keycode in keys file 2005-05-20 22:25:22 +00:00
fluxgen
c8898e2017 locale path 2005-05-18 08:32:17 +00:00
fluxgen
9e34722e67 locale path 2005-05-18 08:31:58 +00:00
fluxgen
8bbf5e6eed update 2005-05-18 08:31:27 +00:00
simonb
e3e8d5c33b fix systemtray overlap 2005-05-17 11:24:50 +00:00
mathias
33e359a0df Vadim pointed out that _NET_CLIENT_LIST and _NET_CLIENT_LIST_STACKING are not updated
when sending _BLACKBOX_NOTIFY_WINDOW_DEL

 _NET_WM_DESKTOP and _WIN_WORKSPACE had wrong initial values (-1), which lead to probems 
 with (eg) fbpager (unaware of newly created windows and such things)
2005-05-14 01:55:31 +00:00
simonb
5175ac3a40 fix a segfault 2005-05-13 11:01:01 +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
6280b9de05 replaced setenv() completly by putenv(). since putenv() really puts the
*string into the environment we need to track what we putenv.
2005-05-12 20:03:08 +00:00
mathias
87212dd249 missing #include <typeinfo> 2005-05-12 19:58:47 +00:00
mathias
7d1d67ca78 __APPLE__ doesnt have <nl_types.h> 2005-05-12 19:56:40 +00:00
mathias
59a806799f when the app changes its pixmap we need to trigger that correctly 2005-05-12 19:55:49 +00:00
mathias
44f2af5c10 minor optimization 2005-05-11 08:57:53 +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
aba44f47aa fix for gentoo #91955, remembering the current window-position didnt store the
reference corner to the appsfile.
2005-05-09 06:09:37 +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
mathias
64eb8cd6a9 new code in WinButton was assuming that at ::clear() - time there is always a
valid m_listen_to.winClient() .. which is not true under some circumstance.
i guarded the code accordingly.
2005-05-07 08:06:23 +00:00
simonb
a65511a32e fix titlebar transparency in some cases 2005-05-07 06:25:51 +00:00
mathias
4338fbec76 Added new Buttons for the Titlebar of a Window (Mathias)
- Shade - just like the "Stick"-button
  Styleresources:
    window.shade.pixmap, window.shade.unfocus.pixmap, window.shade.pressed.pixmap
    window.unshade.pixmap, window.unshade.unfocus.pixmap, window.unshade.pressed.pixmap
    etc.
- MenuIcon - click on it provides the windowmenu, if the app
  contains a pixmap (gvim, konqueror etc etc) the pixmap is displayed, a
  little menu otherwise. 
  Styleresources:
    windowmenu.pixmap, windowmenu.unfocus.pixmap windowmenu.pressed.pixmap
    etc.
Example ~/.fluxbox/init - entry:
  session.titlebar.left: MenuIcon Stick
  session.titlebar.right: Shade Minimize Maximize Close


hint: if the app HAS a pixmap i use window.title.focus.pixmap (look
WinButtonTheme for reference)in pixmap-based-styles. this looks excellent and dont need 
much extra-code to pipe that info into WinButtons.
2005-05-06 18:04:14 +00:00
simonb
783a390375 fix wm_name for fluxbox 2005-05-06 15:24:53 +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
575578d810 minor fix 2005-05-03 09:53:13 +00:00
fluxgen
1bf17f9c32 using associateClient to create new tab and map it to labelbuttons 2005-05-03 09:28:05 +00:00
fluxgen
bc3b377efb code cleaning 2005-05-03 09:25:46 +00:00
fluxgen
86ee497b55 more compose and select2nd 2005-05-02 18:55:36 +00:00
fluxgen
ab3309338f Select2nd file 2005-05-02 12:14:31 +00:00
fluxgen
dce0e2e40c using Select2nd 2005-05-02 12:10:01 +00:00
fluxgen
6b943ec69a select 2nd element in pair 2005-05-02 12:03:15 +00:00
fluxgen
d3362370f5 cleaning, create and delete tabs with FbWinFrame createTab/removeTab 2005-05-02 01:17:08 +00:00
mathias
55f62bc5cc Fix #1086673 ArrangeWindows on shaded aterms causes inconsistency (Mathias)
we now place shaded Windows above the normal windows. ArrangeWindows
touches only windows on the current (xinerama)-head.

there are still some open issues with this, look at my notes at the function
itself.
2005-04-30 13:10:15 +00:00
fluxgen
815e0cb09a minor const fix 2005-04-30 10:29:06 +00:00
mathias
cd3062405f commited the wrong file in the last session :/ 2005-04-29 18:02:14 +00:00
mathias
9214e519b3 added new IconbarModes:
NoIcons          - display all noniconified windows
  WorkspaceNoIcons - display all noniconified windows on the current
                     workspace

modified the nls-files accordingly
2005-04-29 16:54:30 +00:00
mathias
e2acd2b04c removed dead code 2005-04-29 16:46:26 +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
7e11e99f79 minor stuff 2005-04-29 02:53:34 +00:00