Skip to content

Commit

Permalink
Synchronized pull-request from tnibert to TOWNSEMU.
Browse files Browse the repository at this point in the history
  • Loading branch information
captainys committed Jan 10, 2024
1 parent e07f931 commit aa7f4d9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/fssimplewindow/src/glx/fsglxwrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ void FsOpenWindow(const FsOpenWindowOption &opt)
XStoreName(ysXDsp,ysXWnd,title);


// Should I use XSetWMProperties? titlebar problem.
XWMHints wmHints;
wmHints.flags=0;
wmHints.initial_state=NormalState;
Expand Down Expand Up @@ -445,7 +444,14 @@ void FsGetWindowPosition(int &x0,int &y0)

void FsSetWindowTitle(const char windowTitle[])
{
printf("Sorry. %s not supported on this platform yet\n",__FUNCTION__);
const int formatSize = 8;
XChangeProperty(ysXDsp, ysXWnd,
XInternAtom(ysXDsp, "_NET_WM_NAME", False),
XInternAtom(ysXDsp, "UTF8_STRING", False),
formatSize,
PropModeReplace,
(unsigned char *) windowTitle,
strlen(windowTitle));
}

void FsPollDevice(void)
Expand Down

0 comments on commit aa7f4d9

Please # to comment.