After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 603115 - Activate wnck function is not working (ldtputils.py)
Activate wnck function is not working (ldtputils.py)
Status: RESOLVED FIXED
Product: LDTP
Classification: Other
Component: pyldtp
1.7.0
Other Linux
: Normal normal
: ---
Assigned To: LDTP maintainers
LDTP Development Mailing List
Depends on:
Blocks:
 
 
Reported: 2009-11-27 07:49 UTC by Ara Pulido
Modified: 2011-02-05 01:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch that solves bug 603115 (573 bytes, patch)
2009-11-27 07:52 UTC, Ara Pulido
committed Details | Review

Description Ara Pulido 2009-11-27 07:49:27 UTC
wnck Activate window function wrapper is not working.

Passing a timestamp of 0 makes the wnck always return a warning:

Wnck-WARNING **: Received a timestamp of 0; window activation may not function properly.

The window is not activated properly
Comment 1 Ara Pulido 2009-11-27 07:52:54 UTC
Created attachment 148575 [details] [review]
Patch that solves bug 603115

Using a "now" timestamp solves the issue.
Comment 2 Ara Pulido 2009-11-27 07:55:50 UTC
I have not checked LDTPv2 code, but I guess the bug and patch applies also to it.
Comment 3 Nagappan Alagappan 2009-11-27 21:53:30 UTC
Review of attachment 148575 [details] [review]:

Committed to git
Comment 4 Nagappan Alagappan 2009-11-27 21:54:45 UTC
Thanks for the patch, committed in both LDTPv1 and v2.
Comment 5 Nagappan Alagappan 2009-11-27 22:17:45 UTC
Looks like this doesn't fix the issue, atleast on Ubuntu 9.10. When I use 0L, the window gets actual focus and when I use int(time.time()), the window comes to front, but the actual focus still remain on the last application we are using. Need to test more on this, for now, let me reopen this bug.
Comment 6 Nagappan Alagappan 2011-02-05 01:14:43 UTC
Works fine with LDTPv2, closing, if the issue appears again, please reopen this bug.

Thanks for the bug report.