| Index: trunk/src/ui/base/x/x11_util.cc
|
| ===================================================================
|
| --- trunk/src/ui/base/x/x11_util.cc (revision 263732)
|
| +++ trunk/src/ui/base/x/x11_util.cc (working copy)
|
| @@ -119,14 +119,14 @@
|
| std::pair<std::map<int, ::Cursor>::iterator, bool> it = cache_.insert(
|
| std::make_pair(cursor_shape, 0));
|
| if (it.second) {
|
| - XDisplay* display = gfx::GetXDisplay();
|
| + XDisplay* display = base::MessagePumpForUI::GetDefaultXDisplay();
|
| it.first->second = XCreateFontCursor(display, cursor_shape);
|
| }
|
| return it.first->second;
|
| }
|
|
|
| void Clear() {
|
| - XDisplay* display = gfx::GetXDisplay();
|
| + XDisplay* display = base::MessagePumpForUI::GetDefaultXDisplay();
|
| for (std::map<int, ::Cursor>::iterator it =
|
| cache_.begin(); it != cache_.end(); ++it) {
|
| XFreeCursor(display, it->second);
|
|
|