Skip to content
Snippets Groups Projects
Commit 9350bafc authored by Michael Migliore's avatar Michael Migliore Committed by Kitware Robot
Browse files

Merge topic 'x11-class'


0c4e3e89 Add support for WM_CLASS

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Acked-by: default avatarNicolas Vuaille <nicolas.vuaille@kitware.com>
Acked-by: default avatarCharles Gueunet <charles.gueunet@kitware.com>
Merge-request: !5591
parents 76549f58 0c4e3e89
Branches
Tags
No related merge requests found
......@@ -469,6 +469,7 @@ void vtkXOpenGLRenderWindow::CreateAWindow()
int x, y, width, height, nItems;
XWindowAttributes winattr;
XSizeHints xsh;
XClassHint xch;
xsh.flags = USSize;
if ((this->Position[0] >= 0)&&(this->Position[1] >= 0))
......@@ -540,6 +541,13 @@ void vtkXOpenGLRenderWindow::CreateAWindow()
&attr);
XStoreName(this->DisplayId, this->WindowId, this->WindowName);
XSetNormalHints(this->DisplayId,this->WindowId,&xsh);
char classStr[4] = "Vtk";
char nameStr[4] = "vtk";
xch.res_class = classStr;
xch.res_name = nameStr;
XSetClassHint(this->DisplayId, this->WindowId, &xch);
this->OwnWindow = 1;
}
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment