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

Unified Diff: screen_locker_handler.cc

Issue 6902072: wm: Update a lot of code to use structs from geometry.h. (Closed) Base URL: ssh://gitrw.chromium.org:9222/window_manager.git@master
Patch Set: move override-redirect stacking and visibility into Window Created 9 years, 8 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
Index: screen_locker_handler.cc
diff --git a/screen_locker_handler.cc b/screen_locker_handler.cc
index e3047e2b4406c73317d4a2152cc6a177a3517de0..14b17bcb35c7108146815625effe3d6c60abd890 100644
--- a/screen_locker_handler.cc
+++ b/screen_locker_handler.cc
@@ -98,7 +98,7 @@ void ScreenLockerHandler::HandleScreenResize() {
// TODO: The override-redirect check can be removed once Chrome is
// using regular windows for the screen locker.
if (!win->override_redirect())
- win->ResizeClient(wm_->width(), wm_->height(), GRAVITY_NORTHWEST);
+ win->Resize(wm_->root_size(), GRAVITY_NORTHWEST);
}
}
@@ -109,7 +109,7 @@ bool ScreenLockerHandler::HandleWindowMapRequest(Window* win) {
win->SetVisibility(Window::VISIBILITY_SHOWN);
win->Move(Point(0, 0), 0);
- win->ResizeClient(wm_->width(), wm_->height(), GRAVITY_NORTHWEST);
+ win->Resize(wm_->root_size(), GRAVITY_NORTHWEST);
wm_->stacking_manager()->StackWindowAtTopOfLayer(
win,
StackingManager::LAYER_SCREEN_LOCKER,
« no previous file with comments | « screen_locker_handler.h ('k') | screen_locker_handler_test.cc » ('j') | window.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698