Merge lp:~chrisccoulson/unity-2d/lp1010466 into lp:unity-2d

Proposed by Chris Coulson
Status: Merged
Approved by: Gerry Boland
Approved revision: 1119
Merged at revision: 1119
Proposed branch: lp:~chrisccoulson/unity-2d/lp1010466
Merge into: lp:unity-2d
Diff against target: 12 lines (+1/-2)
1 file modified
panel/applets/appname/windowhelper.cpp (+1/-2)
To merge this branch: bzr merge lp:~chrisccoulson/unity-2d/lp1010466
Reviewer Review Type Date Requested Status
Gerry Boland (community) Approve
jenkins (community) continuous-integration Approve
Review via email: mp+110075@code.launchpad.net

Commit message

[panel] Use the correct event timestamp when closing an application window

Description of the change

[panel] Use the correct event timestamp when closing an application window

To post a comment you must log in.
Revision history for this message
Gerry Boland (gerboland) wrote :

Hi Chris,
the other time we use wnck_window_close, we use "CurrentTime" as the timestamp. Would using this fix the issue also or not?
Thanks
-Gerry

Revision history for this message
jenkins (martin-mrazik+qa) wrote :

PASSED: Continuous integration, rev:1119
http://s-jenkins:8080/job/unity-2d-ci/12/

review: Approve (continuous-integration)
Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Using CurrentTime would fix this case too, but it's usually more correct to use the timestamp of the event which triggers the action. I don't mind either way though

Revision history for this message
Gerry Boland (gerboland) wrote :

TBH I'm not that pushed either. I'm not fond of CurrentTime=0. I'll accept this as is, thank you!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'panel/applets/appname/windowhelper.cpp'
2--- panel/applets/appname/windowhelper.cpp 2012-05-25 09:29:49 +0000
3+++ panel/applets/appname/windowhelper.cpp 2012-06-13 14:17:22 +0000
4@@ -211,8 +211,7 @@
5 } else if (HUDClient::instance()->activeInScreen(d->screen())) {
6 HUDClient::instance()->setActive(false);
7 } else {
8- guint32 timestamp = QDateTime::currentDateTime().toTime_t();
9- wnck_window_close(d->m_window, timestamp);
10+ wnck_window_close(d->m_window, QX11Info::appTime());
11 }
12 }
13

Subscribers

People subscribed via source and target branches