Commit graph

402 commits

Author SHA1 Message Date
markt
03631ca98e Fix some focus issues on detach and restart 2006-06-28 00:54:40 +00:00
simonb
6e60c53ae7 fix _NET_FRAME_EXTENTS 2006-06-26 11:45:14 +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
fluxgen
d7a28bb75e fixed resize box bug. The text used to determine the size used space, which could have different width than characters on certain fonts. Thanks Scott Kuhl 2006-06-10 17:24:48 +00:00
simonb
0861f3a907 improve native language handling, move messages and menu labels to
FbTk::FbString
2006-05-20 15:08:14 +00:00
fluxgen
806addad8e moved destroyAndClearList from Screen.cc to STLUtil::destroyAndClear 2006-05-13 15:35:47 +00:00
simonb
faf043bef9 more utf8 changes, notably window titles 2006-05-07 10:08:25 +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
f6a072430d fix memory leaks in menu code 2006-04-24 13:34:14 +00:00
simonb
731f0deaaf external tabs as default 2006-04-24 11:23:01 +00:00
simonb
1119068227 fix crash when toolbar disabled 2006-04-22 16:38:20 +00:00
simonb
932eebe0dd couple of memory fixes from valgrind 2006-04-22 15:37:04 +00:00
simonb
1028f4cb51 minor cosmetic tweaks, thanks Semushin Slavak, php-coder AT ngs ru 2006-04-22 09:49:05 +00:00
simonb
29f975b302 add reversewheeling option
thanks Kalle - ice_jkpg at users.sourceforge.net
2006-04-16 12:03:31 +00:00
mathias
a6551852bb fixed size_t issue with prevWorkspace, minor cosmetic changes to Screen.hh 2006-04-11 18:26:00 +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
fluxgen
1107edf176 fixed duplicate ClickTabFocus menu item, thanks mal 2006-03-23 21:50:58 +00:00
simonb
5e22dcd9ff more external tab work, tidying and tab width config option 2006-03-22 13:06:00 +00:00
simonb
fe4a7db228 external tabs features and bugfixes 2006-03-22 12:23:17 +00:00
simonb
f2d3fff4d4 external tabs 2006-03-20 11:31:24 +00:00
fluxgen
1eda33b856 added addManagedResource, which adds a resource to BScreen and will be destroy by BScreen. + removed geom window nls 2006-03-18 22:03:23 +00:00
mathias
14befe1ff4 forgotten #include 2006-03-16 18:25:33 +00:00
fluxgen
369b4e1b92 moved class Layer from class Fluxbox and thus reduces some dependecies 2006-02-20 21:04:35 +00:00
fluxgen
b772fd969f moved placement strategies to different PlacementStrategy classes 2006-02-19 11:11:22 +00:00
fluxgen
d099e7673a forgot to delete focus control 2006-02-19 08:11:10 +00:00
fluxgen
5ceacc6592 moved all focus handling to FocusControl 2006-02-18 20:19:22 +00:00
fluxgen
4d52797b95 moved all focus handling to class FocusControl 2006-02-18 11:39:38 +00:00
mathias
ae05ad9a01 updated copyright info 2006-02-16 06:53:05 +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
4d77f7fbf1 new background style item, making rootCommand in styles obsolete 2005-11-22 21:59:48 +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
f14c73ed33 Fixed #1223878, Style reloading on USR2 (patch from Zan)
cosmetic stuff in StringUtil.cc/hh
2005-10-21 19:23:57 +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
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
fluxgen
1727656e0a cleaning, change getCount to numberOfWorkspace 2005-07-04 18:18:32 +00:00
fluxgen
5373f6d840 moved window menu from FluxboxWindow to BScreen 2005-06-23 03:07:25 +00:00
mathias
a8d7752804 Screen.cc: not used code
fbgm.in: added amarok
2005-06-18 13:32:56 +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
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
simonb
7d4f711204 fix some menu drawing issues 2005-05-03 13:53:25 +00:00
fluxgen
dce0e2e40c using Select2nd 2005-05-02 12:10:01 +00:00
mathias
e2acd2b04c removed dead code 2005-04-29 16:46:26 +00:00
fluxgen
c7eb5b0332 transient window fix 2005-04-29 02:52:36 +00:00
mathias
b97c3db251 close #1182770
if someone changed the session.screen0.workspaces:<int> value and fired a
"reload config"/reconfigure-Command fluxbox crashed.

changes:

  - cleaner way of reading in the workspacenames
  - cleaner way of initialize the workspaces in BScreen()
  - on BScreen::reconfigure we add/delete Workspaces to the 
    current screen until init-file and fluxbox are in sync

    -> the user changed the initfile and pressed reload, so
       imho he wants to have the changes in the init-file realized.
2005-04-27 09:52:30 +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
mathias
cf46669bc1 copyright date 2005-01-24 18:34:57 +00:00
mathias
0c74e8c935 Simon's last changes lead to segfaults when the users specified <Sticky> or
<Workspace> in apps-file. Reason is, that an unmanaged window is not yet
assigned to an workspace and thus the returned workspacenumber is -1 ... which
leads in combination with getWorkspace(nr) to an invalid workspace (0x0) ...
This also fixes the problem with several deiconify-modes of the iconbar, when
the iconbar is in icons-only mode (same reason)

The other changes in the files are just cosmetic, i throw out the comments
about the changes Simon did coz they make sense and are correct imho.
2005-01-05 01:56:19 +00:00
simonb
61bb3f039a fix some initialisation, especially relating to placement and
decoration/handler hints
2005-01-04 10:51:38 +00:00
fluxgen
45f00785e9 fixed remove workspace bug 2004-12-30 14:33:38 +00:00
mathias
6dffafc39e * added new command:
sethead <int>

  which sets the current window to head<int>

* added remembering of the head to apps-file:
    
   [Head] {<int>}
2004-12-21 16:09:36 +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
ec5724e807 fix a problem with java-dialogs which dont open correct (thanx Scott Moser)
furthermore, and this is really interesting, this seems to fix also the bug
widely known as g.o.d - the grab of death. the g.o.d seems to freeze fluxbox
but let the mouse still be moving and no high-cpuload can be seen. the
(un)lucky can force the g.o.d by clicking like a weirdo and pressing keys like
crazy and then maybe it will happen. we are not quite sure WHY exactly this
happens but as it seems: XSync(true) caused the trouble.

we still keep watching this issue but hopefully noone experiences bad
"freezes" anymore. (/me crosses fingers)
2004-11-30 22:19:35 +00:00
mathias
b47f050367 cosmetic (tabs -> spaces)
fix possible memleak with XineramaQueryScreens:
    "Returned array should be free with XFree()" (from Xinerama.h)
2004-11-22 19:40:34 +00:00
mathias
19bc596b84 fix segfaults on restart/exit, still issues with former iconified windows
at startup of fluxbox

should close #1067582, #1067580, #1060912
2004-11-20 18:12:51 +00:00
mathias
ca5d12bbde fix bug in Screen destructor, can lead to segfault at exit/restart 2004-11-17 01:21:50 +00:00
akir
2760b03b2e cosmetic changes, added ResizeModel to ScreenRessources 2004-10-18 01:24:24 +00:00
akir
a6d4a3563c added followModel Ressources, dunno if the name is so clever, i am open for other suggestions 2004-10-16 22:18:56 +00:00
rathnor
9128a64e62 don't require [begin] in included files 2004-10-04 15:37:58 +00:00
fluxgen
2c66db2ba0 cleaning, we dont create windows with XCreateWindow 2004-09-16 10:10:37 +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
3775776963 head specific strut, patch from Mathieu De Zutter 2004-09-11 13:33:07 +00:00
akir
1d355a9192 transfered ::getRootPixmap from several places to new home, FbPixmap 2004-09-09 14:29:10 +00:00
akir
b470256cf6 fix the segfault-fix of fluxgen some days before. workspacemenu must be
destroyed after rootmenu is cleaned.
2004-09-06 13:17:56 +00:00
fluxgen
23fcec1728 fix for crash on shutdown, the workspacemenu must be destroyed before clientlist. fix for duplicates in iconlist, note: check update(stateSig) in fluxbox.cc, icons might be added twice 2004-09-05 01:11:41 +00:00
akir
d4077526b4 antialias- and alpha-entries only in menu when its compiled in 2004-08-30 11:33:23 +00:00
fluxgen
7794867005 improved algoritm for transient_for in initWindows 2004-07-14 18:28:05 +00:00
fluxgen
9cee51bdf0 fixed bug in transient window creation at startup 2004-07-14 12:13:29 +00:00
rathnor
965086f39d tidying up initialisation with dockapps 2004-06-21 15:23:42 +00:00
rathnor
4589ecdbbc fix initialisation of state when a window is first mapped 2004-06-19 15:04:28 +00:00
fluxgen
34ac6caeab minor fix 2004-06-14 12:25:31 +00:00
fluxgen
aaa72eada2 minor fixes 2004-06-07 21:22:42 +00:00
rathnor
fff4456dee update NLS string handling... 2004-06-07 11:46:05 +00:00
rathnor
9069ae0d80 fix up a number of things for when a window hides while moving,
including a crash bug
2004-05-13 01:48:18 +00:00
fluxgen
745dcf42c3 iconmenu is now handled in IconMenu which is created in WorkspaceMenu, moved all parsing of menu file to MenuCreator 2004-05-02 21:12:22 +00:00
rathnor
4439b3f9b1 fixes for/reimplement parts of directional focus movement 2004-04-28 14:59:12 +00:00
fluxgen
94100534be kde dockapps in systray and moved resource templates to ScreenResource.cc 2004-04-19 22:44:42 +00:00
fluxgen
e828391b1c hide window menu if click on another window, patch from Mathias Gumz 2004-04-12 23:05:10 +00:00
fluxgen
209ba75bac optional decoration of transient windows, patch from Scott Moser 2004-03-30 13:48:38 +00:00
fluxgen
27e83c1b06 setLineAttributes in reconfigure 2004-03-23 09:21:29 +00:00
fluxgen
b0af80ec1d added screen resource .overlay.lineWidth, .overlay.lineStyle and .overlay.capStyle which defines the line style for resize and move actions on windows, patch from Mathias Gumz 2004-03-22 21:01:42 +00:00
rathnor
dea3281e69 primarily focus fix/tweak/rejigging 2004-03-21 09:00:25 +00:00
fluxgen
048861bf35 fixed menu timestamp on root menu, Patch from Mathias Gumz 2004-03-18 14:45:56 +00:00
fluxgen
f1d41e6afa cleaning 2004-02-27 12:32:54 +00:00
fluxgen
3c78d753c0 fixed focus issues with remember hidden, patch from Mathias Gumz 2004-02-20 09:07:27 +00:00
fluxgen
a8f458d593 added missing templates 2004-02-10 18:53:37 +00:00
rathnor
fb8ec8979b fix loading of the ColSmartPlacement policy 2004-02-03 12:55:35 +00:00
fluxgen
5e5118b4e3 using empty instead of size 2004-01-21 14:14:40 +00:00
fluxgen
b3a2564ffd clientlist notify when window changes workspace 2004-01-19 22:07:24 +00:00
fluxgen
2e0fba3253 workspace area signal 2004-01-19 18:29:43 +00:00
fluxgen
f8f65c3945 different window for position coordinates, patch from Junichiro Kita 2004-01-16 11:47:07 +00:00
fluxgen
3af441d3ef hideMenus function, hides all menus on current screen 2004-01-11 16:06:22 +00:00
fluxgen
ba24f20831 clear root menu 2004-01-10 02:58:01 +00:00
fluxgen
76006e0ac9 separator menu item 2004-01-03 00:28:02 +00:00
fluxgen
345ef845c9 lock roottheme so it doesn't get run twice 2004-01-02 13:29:01 +00:00
fluxgen
b2ba9c1355 minor fix for theme loading on start 2003-12-31 00:38:40 +00:00
fluxgen
33f69f1815 minor fix for previous fix 2003-12-29 01:23:04 +00:00
fluxgen
3c3f805fcd removed call to ThemeManager load in constructor, we call it load theme later 2003-12-29 01:06:32 +00:00
fluxgen
448d9fa722 moved focus enum to BScreen, change window placement resource to FbTk Resource 2003-12-19 00:34:23 +00:00