diff options
author | Ken Moore <moorekou@gmail.com> | 2015-11-25 14:07:46 -0500 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2015-11-25 14:07:46 -0500 |
commit | 92b40a4db1a5870f49b0028788cd90f6984f061b (patch) | |
tree | 2fd58e9a53e09e506edb952b2203d1b9cfad611d /libLumina/LuminaX11.cpp | |
parent | Change teh lumina-config window title to "Lumina Settings" (diff) | |
download | lumina-92b40a4db1a5870f49b0028788cd90f6984f061b.tar.gz lumina-92b40a4db1a5870f49b0028788cd90f6984f061b.tar.bz2 lumina-92b40a4db1a5870f49b0028788cd90f6984f061b.zip |
Update LuminaX11.cpp to compile with GCC (found/fixed by Jesse Smith).
Diffstat (limited to 'libLumina/LuminaX11.cpp')
-rw-r--r-- | libLumina/LuminaX11.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libLumina/LuminaX11.cpp b/libLumina/LuminaX11.cpp index fea15a8f..b9068424 100644 --- a/libLumina/LuminaX11.cpp +++ b/libLumina/LuminaX11.cpp @@ -1183,8 +1183,9 @@ bool LXCB::WM_ManageWindow(WId win, bool needsmap){ //} } //Setup event handling on the window + uint32_t value_list[1] = {CLIENT_WIN_EVENT_MASK}; if( xcb_request_check(QX11Info::connection(), \ - xcb_change_window_attributes_checked(QX11Info::connection(), win, XCB_CW_EVENT_MASK, (uint32_t[]){CLIENT_WIN_EVENT_MASK } ) ) ){ + xcb_change_window_attributes_checked(QX11Info::connection(), win, XCB_CW_EVENT_MASK, value_list ) ) ){ //Could not change event mask - did the window get deleted already? free(attr); qDebug() << " - Could not change event mask"; @@ -1217,7 +1218,8 @@ void LXCB::setupEventsForFrame(WId frame){ XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY | \ XCB_EVENT_MASK_ENTER_WINDOW) - xcb_change_window_attributes(QX11Info::connection(), frame, XCB_CW_EVENT_MASK, (uint32_t[]){FRAME_WIN_EVENT_MASK } ); + uint32_t value_list[1] = {FRAME_WIN_EVENT_MASK}; + xcb_change_window_attributes(QX11Info::connection(), frame, XCB_CW_EVENT_MASK, value_list); } bool LXCB::setupEventsForRoot(WId root){ @@ -1232,7 +1234,8 @@ bool LXCB::setupEventsForRoot(WId root){ XCB_EVENT_MASK_ENTER_WINDOW) if(root==0){ root = QX11Info::appRootWindow(); } - xcb_generic_error_t *status = xcb_request_check( QX11Info::connection(), xcb_change_window_attributes_checked(QX11Info::connection(), root, XCB_CW_EVENT_MASK, (uint32_t[]){ROOT_WIN_EVENT_MASK} ) ); + uint32_t value_list[1] = {ROOT_WIN_EVENT_MASK}; + xcb_generic_error_t *status = xcb_request_check( QX11Info::connection(), xcb_change_window_attributes_checked(QX11Info::connection(), root, XCB_CW_EVENT_MASK, value_list)); return (status==0); } // -------------------------------------------------- |