| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "main.h" | 5 #include "main.h" |
| 6 #include "xlib_window.h" | 6 #include "xlib_window.h" |
| 7 | 7 |
| 8 | 8 |
| 9 Display *xlib_display = NULL; | 9 Display *xlib_display = NULL; |
| 10 Window xlib_window = 0; | 10 Window xlib_window = 0; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 ::XSync(xlib_display, True); | 55 ::XSync(xlib_display, True); |
| 56 | 56 |
| 57 ::XGetWindowAttributes(xlib_display, xlib_window, &attributes); | 57 ::XGetWindowAttributes(xlib_display, xlib_window, &attributes); |
| 58 g_width = attributes.width; | 58 g_width = attributes.width; |
| 59 g_height = attributes.height; | 59 g_height = attributes.height; |
| 60 | 60 |
| 61 return true; | 61 return true; |
| 62 } | 62 } |
| 63 | 63 |
| 64 | 64 |
| OLD | NEW |