Commit graph

101 commits

Author SHA1 Message Date
Mathias Gumz
63d9d695be Refactor FbWinFrame
FbWinFrame is now simpler to read due to less overall noise.
2015-01-23 15:23:02 +01:00
Julien Viard de Galbert
5c5ad62846 Adds the OnTab keyword for the keys file
Adding the following lines to the keys file restore the old behaviour to
use Mouse2 on tabs to start tabbing, and keep OnTitlebar Mouse2 to lower
the window.

OnTab Mouse2 :StartTabbing
OnTab Move1 :StartMoving

Note: Internal tabs are triggering both OnTab and OnTitlebar events.
2012-11-07 09:41:49 +01:00
Gediminas Liktaras
12f44680df Added support for ARGB visual, patch #3284774
fluxbox now properly displays windows that require ARGB visuals when
an external compositor is running. This was done by creating the
container window with the correct visual and colormap when needed.

Closes #2874629
2011-10-20 09:41:55 +02:00
Pavel Labath
2073ae12a4 Convert FbWinFrame::frameExtentSig to FbTk::Signal
Also, I spotted a potential bug in the code. I marked the place with XXX. Someone should take a
look at that.
2011-05-10 13:00:46 +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
Mathias Gumz
9616a676d8 renamed FbTk::XLayer to FbTk::Layer and FbTk::XLayerItem to FbTk::LayerItem 2011-02-23 22:49:27 +01:00
Mathias Gumz
d11aa42ace bugfix: consistent use of 'int' for alpha values (#3187373)
WindowMenuAccessor returned strange alpha values if compiled
with 'g++ -Os'; unholy black magic happens if template<int> faces
functions returning only 'usigned char'.
2011-02-22 22:07:39 +01:00
Mathias Gumz
041d586972 code simplification by reducing if-else hell
a lot of the parsing-related and menu-building stuff is just plain
stupid boiler plate code. putting the data into a const array
separates the boiler plate data from the actual code.
2010-09-17 14:44:58 +02:00
Mathias Gumz
690d926ac4 introduced FbTk::BidiString
a 'BidiString' holds both the logical content and the visual reordered
version of the content of a string. this helps to reduce the number of
calls to reorder the string before drawing it (as introduced in the patch
from Ken Bloom) and to be more consistent in menus and textboxes (drawing
cursors and underlining text).
2010-09-08 20:17:21 +02:00
Mark Tiefenbruck
c91926cf71 fix flickering of shaped windows on focus changes 2008-10-03 20:48:38 -07:00
Henrik Kinnunen
9f519ec0fc some minor code cleaning. 2008-09-14 20:06:28 +02:00
Mark Tiefenbruck
ba03aaaa33 fix maximize/fullscreen for windows with non-Northwest gravity 2008-09-03 10:41:05 -04:00
Mark Tiefenbruck
82047e6a39 move some things from FluxboxWindow to WindowState 2008-08-27 18:29:33 -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
e3fb16c993 allow various combinations of shaded, maximized, and fullscreen states 2008-08-22 16:29:09 -07:00
Mark Tiefenbruck
c37a91e150 be a little smarter about size hints in tabbed windows 2008-08-22 10:16:33 -07:00
Mark Tiefenbruck
0ae3ca9e8a move fullscreen and maximization handling to FbWinFrame 2008-08-22 05:52:23 -07:00
Mark Tiefenbruck
8681220f53 don't apply rounded corners to windows without decorations 2008-08-22 03:36:26 -07:00
Mark Tiefenbruck
a30a14ef36 add top, left, right, and bottom center tab placement options 2008-08-18 01:45:44 -07:00
Mark Tiefenbruck
fe412dbeef move interpretation of normal hints to size hint class 2008-08-16 00:22:12 -07:00
Mark Tiefenbruck
215939d6ed let FbWinFrame handle decorations in fullscreen state 2008-08-15 04:46:06 -07:00
Mark Tiefenbruck
0689a0a4a8 move getDecoMaskFromString to FbWinFrame 2008-08-15 04:42:13 -07:00
Mark Tiefenbruck
4093d2641f group some window properties into a new class FbWinFrame::State 2008-08-15 04:36:02 -07:00
Mark Tiefenbruck
f32fdc29d2 have fullscreen and maximization code call applySizeHints directly 2008-08-15 04:30:57 -07:00
Mark Tiefenbruck
e5c61a7279 move some frame size calculations to FbWinFrame 2008-08-15 04:24:03 -07:00
Mark Tiefenbruck
6053ecc1b5 move size hint code to methods in size hint struct, restructure them a little 2008-08-15 04:09:15 -07:00
Mark Tiefenbruck
4fa3773267 move size hint code to FbWinFrame 2008-08-15 04:04:56 -07:00
Mark Tiefenbruck
a39e3e33b5 only remove outside border when disabled by decoration mask 2008-06-04 08:48:43 -07:00
Mark Tiefenbruck
46bca62a9c move FluxboxWindow::applyDecorations() to FbWinFrame 2008-05-24 01:03:59 -07: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
ec3125aeb9 switch FbWinFrameTheme to use FocusableTheme 2008-01-07 12:08:56 -08:00
Mark Tiefenbruck
dbfddf8e0b added new ThemeProxy for automatically handling focused vs. unfocused ThemeItems 2008-01-07 02:26:32 -08:00
Mark Tiefenbruck
ac1bd7e098 update code to use ThemeProxy 2008-01-04 17:39:19 -08:00
Mark Tiefenbruck
b20b243b48 remove some unnecessary code 2008-01-03 19:37:21 -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
4cc810b0d3 remove some (hopefully) unneeded header includes 2007-12-29 22:44:11 -08:00
Mathias Gumz
e1f362ae76 'inline' in class declaration is implicitly inline 2007-12-29 22:38:53 +01:00
Mark Tiefenbruck
62bcfaf0e4 move Shape to FbTk 2007-12-27 22:52:48 -08:00
Mark Tiefenbruck
e8a2f155e8 moved Container to FbTk 2007-12-27 21:47:55 -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
1b48b749b9 make FbWinFrame aware of the decoration state 2007-12-23 13:28:08 -08:00
markt
08ebff4b31 move titlebar click handling to FluxboxWindow, fix buttons getting ungrabbed 2007-11-20 19:01:45 +00:00
markt
a59428d67a merged changes from pre-devel 2007-10-13 21:51:37 +00:00
simonb
a0f44b9e9a Fix handling of Shape, stage 2 (more involved/complete handling) 2007-08-09 03:45:31 +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
cd238a475b disabled resizing shaded windows 2007-04-23 16:09:00 +00:00
markt
06fb6cbd55 fixed a bug, removed some unused code 2007-04-03 17:14:00 +00:00