Changeset 6970 in vbox
- Timestamp:
- Feb 15, 2008 1:04:24 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 28149
- Location:
- trunk/src/VBox/Additions/x11/xclient
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/xclient/Makefile.kmk
r6756 r6970 29 29 VBoxClient_SOURCES = \ 30 30 main.cpp 31 if1of ($(BUILD_TARGET),linux l4) ## @todo use clipboard-new.cpp everywhere. 32 VBoxClient_SOURCES += \ 33 clipboard.cpp 34 else 35 VBoxClient_SOURCES += \ 31 VBoxClient_SOURCES += \ 36 32 clipboard-new.cpp 37 endif38 33 VBoxClient_LIBPATH = \ 39 34 $(VBOX_LIBPATH32_X11) … … 45 40 Xt 46 41 ifdef VBOX_X11_SEAMLESS_GUEST 47 VBoxClient_DEFS += SEAMLESS_ X1142 VBoxClient_DEFS += SEAMLESS_GUEST DYNAMIC_RESIZE 48 43 VBoxClient_SOURCES += \ 49 44 seamless-host.cpp \ 50 45 seamless-x11.cpp \ 51 thread.cpp 46 thread.cpp \ 47 displaychange-x11.cpp 52 48 VBoxClient_LIBS += \ 53 49 Xext -
trunk/src/VBox/Additions/x11/xclient/main.cpp
r6969 r6970 36 36 #include "clipboard.h" 37 37 38 #ifdef SEAMLESS_X11 39 # include "seamless.h" 38 #ifdef DYNAMIC_RESIZE 39 # include "displaychange.h" 40 # ifdef SEAMLESS_GUEST 41 # include "seamless.h" 42 # endif 40 43 #endif 41 44 … … 110 113 { 111 114 int rcClipboard, rc; 112 #ifdef SEAMLESS_X11 113 /** Our instance of the seamless class. */ 115 #ifdef DYNAMIC_RESIZE 116 VBoxGuestDisplayChangeMonitor displayChange; 117 # ifdef SEAMLESS_GUEST 118 /** Our instance of the seamless class. This only makes sense if dynamic resizing 119 is enabled. */ 114 120 VBoxGuestSeamless seamless; 115 #endif 121 # endif /* SEAMLESS_GUEST defined */ 122 #endif /* DYNAMIC_RESIZE */ 116 123 117 124 /* Parse our option(s) */ … … 184 191 } 185 192 #endif /* VBOX_X11_CLIPBOARD defined */ 186 #ifdef SEAMLESS_X11187 193 try 188 194 { 189 LogRel(("VBoxClient: starting seamless Guest Additions...\n")); 190 rc = seamless.init(); 195 #ifdef DYNAMIC_RESIZE 196 LogRel(("VBoxClient: starting dynamic guest resizing...\n")); 197 rc = displayChange.init(); 191 198 if (RT_FAILURE(rc)) 192 199 { 193 LogRel(("VBoxClient: failed to initialise seamless Additions, rc = %Rrc\n", rc)); 194 } 200 LogRel(("VBoxClient: failed to start dynamic guest resizing, rc = %Rrc\n", rc)); 201 } 202 # ifdef SEAMLESS_GUEST 203 if (RT_SUCCESS(rc)) 204 { 205 LogRel(("VBoxClient: starting seamless Guest Additions...\n")); 206 rc = seamless.init(); 207 if (RT_FAILURE(rc)) 208 { 209 LogRel(("VBoxClient: failed to start seamless Additions, rc = %Rrc\n", rc)); 210 } 211 } 212 # endif /* SEAMLESS_GUEST defined */ 213 #endif /* DYNAMIC_RESIZE defined */ 195 214 } 196 215 catch (std::exception e) … … 204 223 rc = VERR_UNRESOLVED_ERROR; 205 224 } 206 #endif /* SEAMLESS_X11 defined */207 225 #ifdef VBOX_X11_CLIPBOARD 208 226 if (RT_SUCCESS(rcClipboard)) … … 217 235 LogRel(("VBoxClient: exiting...\n")); 218 236 #endif /* VBOX_X11_CLIPBOARD not defined */ 219 #ifdef SEAMLESS_X11220 237 try 221 238 { 239 #ifdef DYNAMIC_RESIZE 240 displayChange.uninit(); 241 # ifdef SEAMLESS_GUEST 222 242 seamless.uninit(); 243 # endif /* SEAMLESS_GUEST defined */ 244 #endif /* DYNAMIC_RESIZE defined */ 223 245 } 224 246 catch (std::exception e) … … 232 254 rc = VERR_UNRESOLVED_ERROR; 233 255 } 234 #endif /* SEAMLESS_X11 defined */235 256 VbglR3Term(); 236 257 return RT_SUCCESS(rc) ? 0 : 1;
Note:
See TracChangeset
for help on using the changeset viewer.