Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(327)

Unified Diff: src/platform/window_manager/window_manager.cc

Issue 527005: wm: Make WM_MOVE_PANEL use top-right coordinates. (Closed)
Patch Set: fix a poorly-worded sentence Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/platform/window_manager/window_manager.h ('k') | src/platform/window_manager/window_manager_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/window_manager/window_manager.cc
diff --git a/src/platform/window_manager/window_manager.cc b/src/platform/window_manager/window_manager.cc
index 304675dfcd31300fb199d0e875d8f8e570fa8825..bd0235084c9f5cfe3fb068f217fe6eb675fb7b90 100644
--- a/src/platform/window_manager/window_manager.cc
+++ b/src/platform/window_manager/window_manager.cc
@@ -162,7 +162,8 @@ WindowManager::WindowManager(XConnection* xconn, ClutterInterface* clutter)
stacked_xids_(new Stacker<XWindow>),
active_window_xid_(None),
query_keyboard_state_timer_(0),
- showing_hotkey_overlay_(false) {
+ showing_hotkey_overlay_(false),
+ wm_ipc_version_(0) {
CHECK(xconn_);
CHECK(clutter_);
}
@@ -817,6 +818,12 @@ bool WindowManager::HandleClientMessage(const XClientMessageEvent& e) {
<< GetXAtomName(e.message_type) << ") and format " << e.format;
WmIpc::Message msg;
if (wm_ipc_->GetMessage(e, &msg)) {
+ if (msg.type() == WmIpc::Message::WM_NOTIFY_IPC_VERSION) {
+ wm_ipc_version_ = msg.param(0);
+ LOG(INFO) << "Got WM_NOTIFY_IPC_VERSION message saying that Chrome is "
+ << "using version " << wm_ipc_version_;
+ return true;
+ }
for (std::set<EventConsumer*>::iterator it = event_consumers_.begin();
it != event_consumers_.end(); ++it) {
if ((*it)->HandleChromeMessage(msg))
« no previous file with comments | « src/platform/window_manager/window_manager.h ('k') | src/platform/window_manager/window_manager_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698