aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/FbWindow.hh
diff options
context:
space:
mode:
authorMathias Gumz <akira@fluxbox.org>2015-01-22 09:14:12 (GMT)
committerMathias Gumz <akira@fluxbox.org>2015-01-22 09:14:12 (GMT)
commitc0e5d1c7a3867a82e0418e921afabf8e14909429 (patch)
treedf9d654321c6aa15af5417f0d7803a7bd408621c /src/FbTk/FbWindow.hh
parent5428edf3daec57f490518ac356f60cc1a05a3693 (diff)
downloadfluxbox-c0e5d1c7a3867a82e0418e921afabf8e14909429.zip
fluxbox-c0e5d1c7a3867a82e0418e921afabf8e14909429.tar.bz2
Fix broken _NET_REQUEST_FRAME_EXTENTS support
There was a subtle flaw in the way fluxbox detects to which BScreen a given Window belongs: We have to compare the RootWindow of the given Window against the RootWindow of each BScreen. That underlying flaw made _NET_REQUEST_FRAME_EXTENTS fail: the code path needs a valid BScreen for the given window, otherwise we return early. Closes #1121.
Diffstat (limited to 'src/FbTk/FbWindow.hh')
-rw-r--r--src/FbTk/FbWindow.hh12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/FbTk/FbWindow.hh b/src/FbTk/FbWindow.hh
index 4b6b02f..5501d88 100644
--- a/src/FbTk/FbWindow.hh
+++ b/src/FbTk/FbWindow.hh
@@ -24,15 +24,11 @@
24 24
25#include "FbDrawable.hh" 25#include "FbDrawable.hh"
26#include "FbString.hh" 26#include "FbString.hh"
27
27#include <memory> 28#include <memory>
28#include <string> 29#include <string>
29#include <set> 30#include <set>
30 31#include <cmath>
31#ifdef HAVE_CMATH
32 #include <cmath>
33#else
34 #include <math.h>
35#endif
36 32
37namespace FbTk { 33namespace FbTk {
38 34
@@ -54,8 +50,10 @@ class FbWindowRenderer;
54 */ 50 */
55class FbWindow: public FbDrawable { 51class FbWindow: public FbDrawable {
56public: 52public:
57 FbWindow();
58 53
54 static Window rootWindow(Display* dpy, Drawable win);
55
56 FbWindow();
59 FbWindow(const FbWindow &win_copy); 57 FbWindow(const FbWindow &win_copy);
60 58
61 FbWindow(int screen_num, 59 FbWindow(int screen_num,