{"id":1600,"date":"2024-05-04T04:19:01","date_gmt":"2024-05-04T04:19:01","guid":{"rendered":"\/blog\/?p=1600"},"modified":"2024-05-04T04:19:01","modified_gmt":"2024-05-04T04:19:01","slug":"build-barrier-on-macports-for-macos-el-capitan","status":"publish","type":"post","link":"\/blog\/index.php\/build-barrier-on-macports-for-macos-el-capitan\/","title":{"rendered":"build barrier on macports for macos el capitan"},"content":{"rendered":"\n<p>For all lines with &#8220;modifiers |=&#8221; , change to &#8220;modifiers =&#8221; in the function below<\/p>\n\n\n\n<p>macbookpro:~ root# vi \/opt\/local\/var\/macports\/build\/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_barrier\/barrier\/work\/barrier-2.4.0\/src\/lib\/platform\/OSXKeyState.cpp<br><\/p>\n\n\n\n<p>347 CGEventFlags<\/p>\n\n\n\n<p>348 OSXKeyState::getModifierStateAsOSXFlags()<\/p>\n\n\n\n<p>349 {<\/p>\n\n\n\n<p>350 &nbsp; &nbsp; CGEventFlags modifiers = CGEventFlags(0);<\/p>\n\n\n\n<p>351&nbsp;<\/p>\n\n\n\n<p>352 &nbsp; &nbsp; if (m_shiftPressed) {<\/p>\n\n\n\n<p>353 &nbsp; &nbsp; &nbsp; &nbsp; modifiers = CGEventFlags(kCGEventFlagMaskShift);<\/p>\n\n\n\n<p>354 &nbsp; &nbsp; }<\/p>\n\n\n\n<p>355&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<\/p>\n\n\n\n<p>356 &nbsp; &nbsp; if (m_controlPressed) {<\/p>\n\n\n\n<p>357 &nbsp; &nbsp; &nbsp; &nbsp; modifiers = CGEventFlags(kCGEventFlagMaskControl);<\/p>\n\n\n\n<p>358 &nbsp; &nbsp; }<\/p>\n\n\n\n<p>359&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<\/p>\n\n\n\n<p>360 &nbsp; &nbsp; if (m_altPressed) {<\/p>\n\n\n\n<p>361 &nbsp; &nbsp; &nbsp; &nbsp; modifiers = CGEventFlags(kCGEventFlagMaskAlternate);<\/p>\n\n\n\n<p>362 &nbsp; &nbsp; }<\/p>\n\n\n\n<p>363&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<\/p>\n\n\n\n<p>364 &nbsp; &nbsp; if (m_superPressed) {<\/p>\n\n\n\n<p>365 &nbsp; &nbsp; &nbsp; &nbsp; modifiers = CGEventFlags(kCGEventFlagMaskCommand);<\/p>\n\n\n\n<p>366 &nbsp; &nbsp; }<\/p>\n\n\n\n<p>367&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<\/p>\n\n\n\n<p>368 &nbsp; &nbsp; if (m_capsPressed) {<\/p>\n\n\n\n<p>369 &nbsp; &nbsp; &nbsp; &nbsp; modifiers = CGEventFlags(kCGEventFlagMaskAlphaShift);<\/p>\n\n\n\n<p>370 &nbsp; &nbsp; }<\/p>\n\n\n\n<p>371&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<\/p>\n\n\n\n<p>372 &nbsp; &nbsp; return modifiers;<\/p>\n\n\n\n<p>373 }&nbsp; &nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For all lines with &#8220;modifiers |=&#8221; , change to &#8220;modifiers =&#8221; in the function below macbookpro:~ root# vi \/opt\/local\/var\/macports\/build\/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_barrier\/barrier\/work\/barrier-2.4.0\/src\/lib\/platform\/OSXKeyState.cpp 347 CGEventFlags 348 OSXKeyState::getModifierStateAsOSXFlags() 349 { 350 &nbsp; &nbsp; CGEventFlags modifiers = CGEventFlags(0); 351&nbsp; 352 &nbsp; &nbsp; if (m_shiftPressed) { 353 &nbsp; &nbsp; &nbsp; &nbsp; modifiers = CGEventFlags(kCGEventFlagMaskShift); 354 &nbsp; &nbsp; } 355&nbsp; &nbsp; &nbsp; &nbsp; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1600","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1600","targetHints":{"allow":["GET"]}}],"collection":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=1600"}],"version-history":[{"count":1,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1600\/revisions"}],"predecessor-version":[{"id":1601,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1600\/revisions\/1601"}],"wp:attachment":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=1600"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=1600"},{"taxonomy":"post_tag","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=1600"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}