Changeset 7079 in vbox for trunk/src/VBox/Additions/x11
- Timestamp:
- Feb 21, 2008 4:55:59 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/xclient/seamless-x11.cpp
r7069 r7079 114 114 void VBoxGuestSeamlessX11::monitorClientList(void) 115 115 { 116 XSelectInput(mDisplay, DefaultRootWindow(mDisplay.get()), PropertyChangeMask);116 XSelectInput(mDisplay, DefaultRootWindow(mDisplay.get()), SubstructureNotifyMask); 117 117 } 118 118 … … 203 203 } 204 204 } 205 XSelectInput(mDisplay, hWin, StructureNotifyMask);206 205 mGuestWindows.addWindow(hWin, winAttrib.map_state != IsUnmapped, winAttrib.x, winAttrib.y, 207 206 winAttrib.width, winAttrib.height, cRects, rects); … … 217 216 mGuestWindows.removeWindow(it++)) 218 217 { 219 XSelectInput(mDisplay, it->first, 0);220 218 XShapeSelectInput(mDisplay, it->first, 0); 221 219 } … … 283 281 void VBoxGuestSeamlessX11::doMapEvent(const XMapEvent *event) 284 282 { 285 /*VBoxGuestWindowList::iterator iter;283 VBoxGuestWindowList::iterator iter; 286 284 287 285 iter = mGuestWindows.find(event->window); 288 if (iter != mGuestWindows.end()) 289 { 290 iter->second->mMapped = true; 291 } */ 292 rebuildWindowTree(); 293 } 294 295 /** 296 * If the list of client windows changes, rebuild the list. 297 * 298 * @param event the X11 event structure 299 */ 300 void VBoxGuestSeamlessX11::doPropertyEvent(const XPropertyEvent *event) 301 { 302 if (XInternAtom(mDisplay, NET_CLIENT_LIST, true) == event->atom) 303 { 304 rebuildWindowTree(); 286 if (mGuestWindows.end() == iter) 287 { 288 addClientWindow(event->window); 305 289 } 306 290 } … … 337 321 void VBoxGuestSeamlessX11::doUnmapEvent(const XUnmapEvent *event) 338 322 { 339 /*VBoxGuestWindowList::iterator iter;323 VBoxGuestWindowList::iterator iter; 340 324 341 325 iter = mGuestWindows.find(event->window); 342 if (iter != mGuestWindows.end()) 343 { 344 iter->second->mMapped = true; 345 } */ 346 rebuildWindowTree(); 326 if (mGuestWindows.end() != iter) 327 { 328 mGuestWindows.removeWindow(iter); 329 } 347 330 } 348 331
Note:
See TracChangeset
for help on using the changeset viewer.