Commit graph

69 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
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
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
Mathias Gumz
04cd2fd14c removed some unneeded headers 2007-12-30 16:32:53 +01:00
Mathias Gumz
e1f362ae76 'inline' in class declaration is implicitly inline 2007-12-29 22:38:53 +01: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
mathias
6ac57655d9 basicly cosmetic changes, patch by slava semushin 2007-04-17 07:52:40 +00:00
markt
be2f40a10d use a timer to make sure focus always reverts if possible 2006-07-23 09:51:54 +00:00
markt
f9ade8947c properly revert focus when two windows close at the same time 2006-07-20 07:15:59 +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
acf4326f3c Use -Wall when --enable-debug and some warning fixes
+ thanks Jonas Koelker
2006-04-24 14:29:21 +00:00
simonb
67326a080a update transparent window backgrounds on bg change 2006-04-21 16:07:45 +00:00
fluxgen
f1a6c9100b just some indent 2006-04-09 17:40:59 +00:00
mathias
ae05ad9a01 updated copyright info 2006-02-16 06:53:05 +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
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
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
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
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
fluxgen
c71c8244b5 setBufferPixmap public instead 2004-06-13 00:32:40 +00:00
fluxgen
5530ce6450 alpha access function 2004-06-07 20:24:38 +00:00
rathnor
c1fb3b3e1a fix menu transparency rendering bug, and add save_under to menu windows 2004-05-17 15:01:32 +00:00
rathnor
bb779745f4 add apps file matching on role. Includes new textProperty property on
FbWindow.
2004-04-28 13:04:06 +00:00
fluxgen
09c055f7b2 inline 2004-01-21 20:22:26 +00:00
fluxgen
8c8e4f0f4a inline 2003-12-30 17:17:05 +00:00
fluxgen
72b878f78c fixed some icc warnings 2003-12-16 17:06:52 +00:00
fluxgen
c8bcddf58b buffered background 2003-09-14 09:51:40 +00:00
fluxgen
dd0aad54c0 minor consistency fix 2003-09-10 21:26:28 +00:00
fluxgen
9d3b8d55ff added eventMask 2003-08-26 23:45:36 +00:00
fluxgen
091748bd46 reparent 2003-08-15 13:52:06 +00:00
fluxgen
ea4adcf695 more virtual 2003-08-13 09:28:44 +00:00
fluxgen
6b9d7cb224 added transparent option 2003-08-04 12:43:21 +00:00