Commit graph

50 commits

Author SHA1 Message Date
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
faa4c97888 added 'SetXProp' action and (@PROP=foo) clientpattern
these two allow 'tagging' of arbitrary windows with 'tags' (or 'labels'). such 'tagged' windows can then be used in ':NextWindow (@PROP=foo)' commands to quickly cycle through a subset of available windows.
since the 'tags' are applied as real xproperties to a window they survive a restart of fluxbox or even another windowmanager. the user can also set the tags by using xprop(1).

the next step regarding the UI should be to visualize the tags of a window.
2010-09-11 17:09:07 +02:00
Mathias Gumz
64afa48bb3 removed unused code 2010-09-08 20:17:36 +02:00
Mark Tiefenbruck
82047e6a39 move some things from FluxboxWindow to WindowState 2008-08-27 18:29:33 -04:00
Mark Tiefenbruck
55fd49614b move FbWinFrame::State class to a new file 2008-08-27 13:05:49 -04:00
Mark Tiefenbruck
533c70cb57 some cleanup 2008-08-21 07:05: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
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
80059c6dae move size hints to a struct 2008-08-15 04:02:14 -07:00
Mathias Gumz
46fdf4d1b4 use _NET_WM_ICON property as resource for icons, fixed partly #1852693
instead of depending on proper icons in the old icccm wmhints, fluxbox now
tries to get the icon data stored in _NET_WM_ICON
2008-02-24 21:58:24 +01: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
Mathias Gumz
e1f362ae76 'inline' in class declaration is implicitly inline 2007-12-29 22:38:53 +01:00
Mark Tiefenbruck
f6ee704a1d remove 'friend' declaration in Window.hh 2007-12-21 16:48:11 -08:00
markt
97f7c3e1b5 various refactoring and minor changes 2007-11-05 17:05:58 +00:00
markt
a59428d67a merged changes from pre-devel 2007-10-13 21:51:37 +00:00
markt
823ce0d017 stop gvim from repeatedly resizing tabbed windows 2007-07-03 21:08:07 +00:00
markt
0f9f193444 fixed implementation of _NET_WM_STATE_MODAL 2007-06-30 16:54:05 +00:00
markt
ca1ca328cf maximizing window with aspect ratio caused windows to be made larger than the screen 2007-03-16 23:11:56 +00:00
markt
5b50243881 unused function 2006-08-14 03:20:15 +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
a23ad67197 Make Urgency Hint flash the correct WinClient's tab. 2006-06-24 18:19:49 +00:00
simonb
faf043bef9 more utf8 changes, notably window titles 2006-05-07 10:08:25 +00:00
fluxgen
8a68aa5328 maxWidth() and maxHeight() 2006-04-23 21:24:05 +00:00
simonb
b9af026688 iconbutton handling fixes 2006-04-17 23:34:01 +00:00
mathias
ae05ad9a01 updated copyright info 2006-02-16 06:53:05 +00:00
fluxgen
c7eb5b0332 transient window fix 2005-04-29 02:52:36 +00:00
simonb
e57a30f664 fix systray client sizing 2005-04-26 04:18:10 +00:00
mathias
cf46669bc1 copyright date 2005-01-24 18:34:57 +00:00
mathias
ab1a422ac6 copyright date 2005-01-20 22:49:56 +00:00
mathias
993c17cf2e svn propset svn:keywords "Id" 2004-11-19 11:37:27 +00:00
fluxgen
12237ed0db removed reparent and added debugmsg 2004-08-10 13:36:07 +00:00
rathnor
4439b3f9b1 fixes for/reimplement parts of directional focus movement 2004-04-28 14:59:12 +00:00
fluxgen
175a9ace52 rearrangement and some minor style cleaning 2003-12-17 01:20:49 +00:00
rathnor
81378f9494 fix handling of base_Width/height hints in wm_normal_hints
- fixes abiword resize issues
2003-09-29 14:58:15 +00:00
rathnor
4d83785792 fix disappearing close button 2003-09-21 12:49:48 +00:00
rathnor
6d6425cbde fix gravity handling 2003-09-11 19:55:27 +00:00
rathnor
35234ae644 missed updating wm_protocols 2003-07-28 15:46:00 +00:00
rathnor
d353b688de update many things to use WinClient instead of FluxboxWindow 2003-07-28 15:06:36 +00:00
rathnor
9932b88049 fix focus properly 2003-07-21 15:26:57 +00:00
rathnor
037bd174bf fix focus and raising for transient windows in particular 2003-07-20 18:05:40 +00:00
rathnor
09a5c23c5b fix grouping to persist over restart, plus various related bugs.
Also move a large proportion of window initialisation from FluxboxWindow to
WinClient
2003-06-23 14:16:05 +00:00
fluxgen
2b1bc6565e updateWMClassHint 2003-06-15 18:36:40 +00:00
rathnor
c314d05553 add some property accessors 2003-06-12 15:13:23 +00:00
fluxgen
9d5eb092fa added screen accessor and removed client from window before we send signal 2003-05-14 12:07:06 +00:00
fluxgen
c9638d0473 BlackboxHints in FluxboxWindow now 2003-05-10 14:16:38 +00:00
rathnor
d63bf127ad transient fixes by making them WinClients 2003-05-07 16:21:26 +00:00
fluxgen
f4ce449632 merged with embedded-tab-branch 2003-04-14 12:13:36 +00:00