- Timestamp:
- Jul 10, 2009 1:22:57 PM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp
r21474 r21479 686 686 { 687 687 /* No need for background drawing */ 688 //setAttribute (Qt::WA_OpaquePaintEvent);688 setAttribute (Qt::WA_OpaquePaintEvent); 689 689 } 690 690 virtual QPaintEngine * paintEngine() const 691 691 { 692 //if (testAttribute (Qt::WA_PaintOnScreen))693 //return NULL;694 //else692 if (testAttribute (Qt::WA_PaintOnScreen)) 693 return NULL; 694 else 695 695 return QWidget::paintEngine(); 696 696 } -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r21478 r21479 807 807 AssertWrapperOk (csession); 808 808 809 #ifdef Q_WS_X11810 setenv ("XLIB_SKIP_ARGB_VISUALS", "1", 1);811 #endif812 809 console = new VBoxConsoleView (this, cconsole, mode, centralWidget()); 813 #ifdef Q_WS_X11814 unsetenv ("XLIB_SKIP_ARGB_VISUALS");815 #endif816 810 static_cast <QGridLayout*> (centralWidget()->layout())->addWidget (console, 1, 1, Qt::AlignVCenter | Qt::AlignHCenter); 817 811 -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxFrameBuffer.cpp
r21474 r21479 297 297 VBoxFrameBuffer (aView) 298 298 { 299 /* There are some buggy/strange driver/compiz combinations which lead to300 * transparent backgrounds on ARGB visuals. Try to fix it by painting301 * always a black background. */302 aView->viewport()->setAttribute (Qt::WA_OpaquePaintEvent, false);303 aView->viewport()->setAttribute (Qt::WidgetAttribute(120), false);304 aView->viewport()->setAttribute (Qt::WA_NoSystemBackground, false);305 QPalette pal = aView->viewport()->palette();306 pal.setColor (QPalette::Window, Qt::black);307 aView->viewport()->setPalette (pal);308 299 /* Initialize the framebuffer the first time */ 309 300 resizeEvent (new VBoxResizeEvent (FramebufferPixelFormat_Opaque, -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp
r21477 r21479 722 722 * from the below constructor or from constructors/methods it calls. 723 723 */ 724 #ifdef Q_WS_X11725 setenv ("XLIB_SKIP_ARGB_VISUALS", "1", 1);726 #endif727 724 VBoxConsoleWnd *w = new VBoxConsoleWnd (&mConsoleWnd, 0); 728 725 Assert (w == mConsoleWnd); 729 726 NOREF(w); 730 #ifdef Q_WS_X11731 unsetenv ("XLIB_SKIP_ARGB_VISUALS");732 #endif733 727 } 734 728
Note:
See TracChangeset
for help on using the changeset viewer.