Skip to content

DesktopStreamer: windows that are streamed independently are activated#101

Merged
jafyvilla merged 1 commit intoBlueBrain:masterfrom
jafyvilla:windows_interaction
Jun 8, 2016
Merged

DesktopStreamer: windows that are streamed independently are activated#101
jafyvilla merged 1 commit intoBlueBrain:masterfrom
jafyvilla:windows_interaction

Conversation

@jafyvilla
Copy link
Copy Markdown
Contributor

(i.e. sent to the foreground) before applying an interaction event.

The mouse cursor is now rendered only on active windows or desktop.
Fix crash when hiding (cmd+H) the DesktopStreamer app.

@jafyvilla jafyvilla force-pushed the windows_interaction branch 2 times, most recently from dbdf7ab to 8f80339 Compare June 7, 2016 09:18
@jafyvilla
Copy link
Copy Markdown
Contributor Author

Hold on, I got it wrong for Linux builds

@jafyvilla jafyvilla force-pushed the windows_interaction branch 2 times, most recently from f5820aa to fd71e42 Compare June 7, 2016 11:40
@jafyvilla
Copy link
Copy Markdown
Contributor Author

Updated

_data.clear();
_data.push_back( std::make_tuple( "Desktop", 0,
getPreviewPixmap( QApplication::primaryScreen()->grabWindow( 0 ))));
QPixmap preview =
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const

@rdumusc
Copy link
Copy Markdown

rdumusc commented Jun 7, 2016

Having this queue of events is a bit annoying but a suppose there was no other way
+1 for me, looks good

@jafyvilla
Copy link
Copy Markdown
Contributor Author

It's the best workaround I could find to the fact that the applications take an iteration of the NSRunLoop to become active after the 'activate' call. Which means that the triggering event gets lost if we don't keep it. I store it in a queue, and it sounds annoying, but in practice this queue won't get too long, as normally all the events are consumed almost immediately.

StreamPtr stream( new Stream( *this, index,
_streamIdLineEdit->text().toStdString(),
host ));
host, 0 ));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make the PID=0 default parameter? This looks awkward in the non-OSX case.

(i.e. sent to the foreground) before applying an interaction event.

The mouse cursor is now rendered only on active windows or desktop.
Fix crash when hiding (cmd+H) the DesktopStreamer app.
@jafyvilla jafyvilla force-pushed the windows_interaction branch from fd71e42 to afb10bd Compare June 8, 2016 13:49
@jafyvilla
Copy link
Copy Markdown
Contributor Author

Done

@dnachbaur
Copy link
Copy Markdown
Contributor

+1

@jafyvilla jafyvilla merged commit 3328e67 into BlueBrain:master Jun 8, 2016
@jafyvilla jafyvilla deleted the windows_interaction branch June 9, 2016 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants