diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-11-01 08:10:27 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-11-01 08:10:27 +0100 |
commit | e72508b782b977075eae0e85be1ad92e21744a14 (patch) | |
tree | d2acf5891340bc238a763c0b670916fa221ffd8a /source/x11-helper.c | |
parent | 4c5df96fcd9ff9868a9d892333ac313fe077a7d4 (diff) |
Remove opacity option.
Diffstat (limited to 'source/x11-helper.c')
-rw-r--r-- | source/x11-helper.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/source/x11-helper.c b/source/x11-helper.c index eca9b66f..8c2b6b17 100644 --- a/source/x11-helper.c +++ b/source/x11-helper.c @@ -716,15 +716,6 @@ gboolean x11_parse_key ( char *combo, unsigned int *mod, xkb_keysym_t *key, gboo return TRUE; } -void x11_set_window_opacity ( xcb_window_t box, unsigned int opacity ) -{ - // Scale 0-100 to 0 - UINT32_MAX. - unsigned int opacity_set = ( unsigned int ) ( ( opacity / 100.0 ) * UINT32_MAX ); - - xcb_change_property ( xcb->connection, XCB_PROP_MODE_REPLACE, box, - netatoms[_NET_WM_WINDOW_OPACITY], XCB_ATOM_CARDINAL, 32, 1L, &opacity_set ); -} - /** * Fill in the list of frequently used X11 Atoms. */ |