equal
deleted
inserted
replaced
131 } |
131 } |
132 } |
132 } |
133 } |
133 } |
134 void handleFocusIn(int detail) { |
134 void handleFocusIn(int detail) { |
135 if (embedded.focusAllowedFor()) { |
135 if (embedded.focusAllowedFor()) { |
136 embedded.handleWindowFocusInSync(0); |
136 embedded.handleWindowFocusIn(0); |
137 } |
137 } |
138 switch(detail) { |
138 switch(detail) { |
139 case XEMBED_FOCUS_CURRENT: |
139 case XEMBED_FOCUS_CURRENT: |
140 // Do nothing - just restore to the current value |
140 // Do nothing - just restore to the current value |
141 break; |
141 break; |
203 // (for example, when receiving XEMBED_WINDOW_DEACTIVATE and then |
203 // (for example, when receiving XEMBED_WINDOW_DEACTIVATE and then |
204 // XEMBED_FOCUS_OUT client messages), so we first need to check if |
204 // XEMBED_FOCUS_OUT client messages), so we first need to check if |
205 // embedded is an active window before sending WINDOW_LOST_FOCUS |
205 // embedded is an active window before sending WINDOW_LOST_FOCUS |
206 // to shared code |
206 // to shared code |
207 if (XKeyboardFocusManagerPeer.getCurrentNativeFocusedWindow() == embedded.target) { |
207 if (XKeyboardFocusManagerPeer.getCurrentNativeFocusedWindow() == embedded.target) { |
208 embedded.handleWindowFocusOutSync(null, 0); |
208 embedded.handleWindowFocusOut(null, 0); |
209 } |
209 } |
210 } |
210 } |
211 |
211 |
212 long getEmbedder(XWindowPeer embedded, XClientMessageEvent info) { |
212 long getEmbedder(XWindowPeer embedded, XClientMessageEvent info) { |
213 // Embedder is the parent of embedded. |
213 // Embedder is the parent of embedded. |