objective c - Identify the monitor with the browser window in FireBreath -


i using firebreath create cross browser plugin makes use of native libraries respective platform (some .net based dlls windows , objective-c based dylibs/frameworks mac). native libraries display ui screens. in order improve usability, if user has multi/extended monitor setup, native uis appear on same screen browser window on.

if identifier monitor browser window can retrieved, can passed down native components can configured display uis on monitor. have used firebreath's getwindowposition() method rect coordinates of plugin , used info identify correct monitor in windows platform.

however, coordinates returned in mac seems 0 (or 1) irrespective of monitor on browser window resides. understand have configure event model , drawing model in order work in mac. have tried following event/drawing model combinations without success.

1) cocoa/coregraphics 2) carbon/coregraphics

any in regard appreciated. please share if there other approaches achieve same. want achieve identify monitor on current active browser window resides in mac. unsure @ point, maybe possible achieve @ objective-c level (without changes @ firebreath level). please note want support safari, firefox , chrome browsers.

you won't answer, put can't on mac. problem coregraphics given cgcontextref work with, , doesn't know drawn. technically possible in older browsers nswindow exploiting internal implementation details, many browsers that's no longer possible , never supported.

other drawing models same; coreanimation have calayer doesn't know screen or monitor drawn to. think it's bit annoying well, not know of way find out monitor plugin rendered to, particularly since of them copy buffer else , render in different process.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -