OLD | NEW |
---|---|
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 #include <X11/Xlib.h> | 8 #include <X11/Xlib.h> |
9 #include <X11/Xatom.h> | 9 #include <X11/Xatom.h> |
10 #include <X11/XKBlib.h> | 10 #include <X11/XKBlib.h> |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
148 this->mapWindowAndWait(); | 148 this->mapWindowAndWait(); |
149 fUnixWindow.fGc = XCreateGC(dsp, fUnixWindow.fWin, 0, NULL); | 149 fUnixWindow.fGc = XCreateGC(dsp, fUnixWindow.fWin, 0, NULL); |
150 } | 150 } |
151 | 151 |
152 | 152 |
153 void SkOSWindow::post_linuxevent() { | 153 void SkOSWindow::post_linuxevent() { |
154 // Put an event in the X queue to fire an SkEvent. | 154 // Put an event in the X queue to fire an SkEvent. |
155 if (NULL == fUnixWindow.fDisplay) { | 155 if (NULL == fUnixWindow.fDisplay) { |
156 return; | 156 return; |
157 } | 157 } |
158 long event_mask = NoEventMask; | |
sugoi
2013/03/06 16:14:59
unused variable
| |
159 XClientMessageEvent event; | 158 XClientMessageEvent event; |
160 event.type = ClientMessage; | 159 event.type = ClientMessage; |
161 Atom myAtom(0); | 160 Atom myAtom(0); |
162 event.message_type = myAtom; | 161 event.message_type = myAtom; |
163 event.format = 32; | 162 event.format = 32; |
164 event.data.l[0] = 0; | 163 event.data.l[0] = 0; |
165 XSendEvent(fUnixWindow.fDisplay, fUnixWindow.fWin, false, 0, | 164 XSendEvent(fUnixWindow.fDisplay, fUnixWindow.fWin, false, 0, |
166 (XEvent*) &event); | 165 (XEvent*) &event); |
167 XFlush(fUnixWindow.fDisplay); | 166 XFlush(fUnixWindow.fDisplay); |
168 } | 167 } |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
381 return false; | 380 return false; |
382 } | 381 } |
383 | 382 |
384 bool SkOSWindow::onHandleKey(SkKey key) { | 383 bool SkOSWindow::onHandleKey(SkKey key) { |
385 return false; | 384 return false; |
386 } | 385 } |
387 | 386 |
388 bool SkOSWindow::onHandleKeyUp(SkKey key) { | 387 bool SkOSWindow::onHandleKeyUp(SkKey key) { |
389 return false; | 388 return false; |
390 } | 389 } |
OLD | NEW |