summaryrefslogtreecommitdiff
path: root/src/mwindowpropertycache.h
diff options
context:
space:
mode:
authorKimmo Hämäläinen <kimmo.hamalainen@nokia.com>2010-07-15 11:19:54 +0300
committerKimmo Hämäläinen <kimmo.hamalainen@nokia.com>2010-07-15 11:19:54 +0300
commita0419cc1fa70a36874f84e157cc4821e120e1c5f (patch)
tree0d4e384e678512a1a41c7e47fcba8cf26719fca5 /src/mwindowpropertycache.h
parent50a5d297b52e066faf9d56e894e0e4b1f2c9f3bc (diff)
Changes: Add support for _MEEGOTOUCH_DECORATOR_BUTTONS window property
- this property allows specifying the areas where home and close buttons are on the application window. When pressed, we act as if the real home or close button had been pressed.
Diffstat (limited to 'src/mwindowpropertycache.h')
-rw-r--r--src/mwindowpropertycache.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mwindowpropertycache.h b/src/mwindowpropertycache.h
index c3c00c5..4d060ac 100644
--- a/src/mwindowpropertycache.h
+++ b/src/mwindowpropertycache.h
@@ -133,6 +133,9 @@ public:
const QRectF &iconGeometry();
+ const QRect &homeButtonGeometry();
+ const QRect &closeButtonGeometry();
+
/*!
* Returns value of _MEEGO_STACKING_LAYER. The value is between [0, 6].
*/
@@ -156,17 +159,21 @@ public:
}
private:
+ void buttonGeometryHelper();
+
Atom window_type_atom;
Window transient_for;
QList<Atom> wm_protocols;
bool wm_protocols_valid;
bool icon_geometry_valid;
+ bool decor_buttons_valid;
QRectF icon_geometry;
int has_alpha;
int global_alpha;
int is_decorator;
QList<Atom> net_wm_state;
QRect req_geom, real_geom;
+ QRect home_button_geom, close_button_geom;
XWMHints *wmhints;
xcb_get_window_attributes_reply_t *attrs;
int meego_layer, window_state;
@@ -179,6 +186,7 @@ private:
xcb_get_property_cookie_t xcb_meego_layer_cookie;
xcb_get_property_cookie_t xcb_is_decorator_cookie;
xcb_get_property_cookie_t xcb_window_type_cookie;
+ xcb_get_property_cookie_t xcb_decor_buttons_cookie;
xcb_render_query_pict_formats_cookie_t xcb_pict_formats_cookie;
static xcb_connection_t *xcb_conn;