Commit 0171d592 authored by Michael Migliore's avatar Michael Migliore
Browse files

Fix X11 issues with full screen

parent f6a372b9
......@@ -659,6 +659,12 @@ void vtkXOpenGLRenderWindow::CreateAWindow()
width = winattr.width;
height = winattr.height;
this->Mapped = 1;
if (this->FullScreen)
{
XGrabKeyboard(
this->DisplayId, this->WindowId, False, GrabModeAsync, GrabModeAsync, CurrentTime);
}
}
// free the visual info
if (v)
......@@ -1206,7 +1212,7 @@ int* vtkXOpenGLRenderWindow::GetPosition(void)
x = attribs.x;
y = attribs.y;
XTranslateCoordinates(this->DisplayId, this->WindowId,
XTranslateCoordinates(this->DisplayId, this->ParentId,
XRootWindowOfScreen(XScreenOfDisplay(this->DisplayId, 0)), x, y, &this->Position[0],
&this->Position[1], &child);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment