Commit graph

82 commits

Author SHA1 Message Date
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
nacitar sevaht
1dacf57d20 Can check CARDINAL properties in CLIENT PATTERNS
Introduces a new member function, FbWindow::cardinalProperty()

This change also changes other code that previously used
FbWindow::property() to do the same thing as the new function; this
reduces code duplication.

There are still some bits of code (Ewmh.cc, extractNetWmIcon()) that use
FbWindow::property() to retrieve XA_CARDINAL values, but as the new
method is designed for getting a _single_ property, and that code uses
FbWindow::property() to retrieve the number of values present, and then
grab all of them; it's a different use case.  I opted to not try to make
cardinalProperty() into some monolithic all-purpose cardinal method;
FbWindow::property() works just fine for that.

This change also adds an optional (default=NULL) boolean to
FbWindow::textProperty and friends that allows the caller to determine
whether or not a value was actually retrieved.  This was necessary for
integrating FbWindow::cardinalProperty with the codebase, and it seemed
to fit with FbWindow::textProperty as well.  Prior to this change, if
you got a return value of "", you wouldn't know if you successfully
retrieved the value which happened to be blank, or if you failed to
retrieve the value.  Now, you can pass the address of a boolean if you
so choose in order to differentiate these situations; the same applies
to the new FbWindow::cardinalProperty().
2011-05-08 07:48:03 +02: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
4e2c7e2167 moved helper struct TextPropPtr into anonymous namespace 2010-09-10 16:36:17 +02:00
Mathias Gumz
04739b2d1f initialize all member variables, otherwise unclean state in some circumstances
(valgrind complained a lot about ::updateGeometry() accessing uninitialized variables)
2010-05-16 14:24:34 +02:00
Henrik Kinnunen
5bc782561b Initialize all variables in FbWindow 2010-03-26 17:28:18 +01:00
Mathias Gumz
884db973bb cosmetic fixes: removed redundant ';' + some whitespaces 2009-09-30 21:02:24 +02:00
Mark Tiefenbruck
9bd6401013 ignore XRandr events that don't actually change the screen size 2008-10-14 19:40:33 -07:00
Mark Tiefenbruck
38654bae45 some cleanup 2008-08-16 05:54:07 -07:00
Mark Tiefenbruck
46bca62a9c move FluxboxWindow::applyDecorations() to FbWinFrame 2008-05-24 01:03:59 -07:00
Mark Tiefenbruck
9c105111d2 remove old svn $Id$ tags 2008-01-03 17:34:12 -08:00
Mark Tiefenbruck
6ea1ed8cfa fix border width on synthetic ConfigureNotify events 2008-01-01 19:10:38 -08:00
Mark Tiefenbruck
eaabe0321d make bit depth accessible from an FbDrawable 2007-12-24 21:15:17 -08:00
simonb
b273360331 Fix system tray restart issues 2007-08-04 17:14:13 +00:00
markt
823ce0d017 stop gvim from repeatedly resizing tabbed windows 2007-07-03 21:08:07 +00:00
fluxgen
75f8d95c17 fixed bug #1718112, memory leak in FbWindow::textProperty 2007-05-19 11:42:44 +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
markt
45743c6f42 fix another 64-bit window property 2007-01-08 21:12:47 +00:00
markt
4628ff7694 set opacity properly 2007-01-06 19:59:46 +00:00
markt
698539d9b9 more dead functions 2006-07-01 02:56:46 +00:00
simonb
0b730c76b1 fix more x errors due to using an invalid background 2006-06-24 14:05:19 +00:00
simonb
4afe5499b2 fix parentrelative background, and some tidying 2006-05-22 15:09:21 +00:00
simonb
faf043bef9 more utf8 changes, notably window titles 2006-05-07 10:08:25 +00:00
simonb
67326a080a update transparent window backgrounds on bg change 2006-04-21 16:07:45 +00:00
mathias
ae05ad9a01 updated copyright info 2006-02-16 06:53:05 +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
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
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
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
mathias
6b8fca511c copyright date 2005-01-24 18:02:34 +00:00
mathias
f0fd05ec25 copyright 2005-01-14 09:40:40 +00:00
mathias
5bbab52d6d fix for #1099950, Missing initialization in FbTk/FbWindow.cc 2005-01-11 12:05:10 +00:00
mathias
a88d3b39ad added deleteProperty to FbWindow 2004-12-21 16:12:28 +00:00
mathias
993c17cf2e svn propset svn:keywords "Id" 2004-11-19 11:37:27 +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
rathnor
28c32c087a more X error fixing 2004-09-11 15:52:23 +00:00
rathnor
7d793fc6a8 fix issues that resulted in unnecessary X errors 2004-09-11 12:33:14 +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
1d355a9192 transfered ::getRootPixmap from several places to new home, FbPixmap 2004-09-09 14:29:10 +00:00
rathnor
d17bf39a43 add autoconf check for std c++ headers 2004-08-31 15:26:40 +00:00
fluxgen
db6e78bba9 minor fix 2004-06-15 11:03:17 +00:00
fluxgen
5530ce6450 alpha access function 2004-06-07 20:24:38 +00:00
rathnor
ca307efe3e handling of alpha = 0 2004-05-24 13:09:32 +00:00
rathnor
c1fb3b3e1a fix menu transparency rendering bug, and add save_under to menu windows 2004-05-17 15:01:32 +00:00