Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic tray paste #19

Closed
hluk opened this issue Mar 15, 2013 · 1 comment
Closed

Automatic tray paste #19

hluk opened this issue Mar 15, 2013 · 1 comment
Assignees

Comments

@hluk
Copy link
Owner

hluk commented Mar 15, 2013

usleep() event is in micro seconds! So usleep(500) used when pasting text from tray on X11 is too small. On some systems even big period is not enough.

Solution

Use QApplication::processEvents() before pasting to window and use usleep() with argument 200000 (500 ms seems too big). Also change the interval for Windows platform with Sleep(250).

@ghost ghost assigned hluk Mar 15, 2013
@hluk
Copy link
Owner Author

hluk commented Mar 15, 2013

In the end: wait interval changed to 150 ms on X11 and Windows.

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

No branches or pull requests

1 participant