diff options
| author | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-12-08 06:57:31 +0000 |
|---|---|---|
| committer | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-12-08 06:57:31 +0000 |
| commit | ed54e2854c92940cbec88831b576f3dbba14223a (patch) | |
| tree | b981a88921278b98a2fd04a1eb4a38b3befc90fb /plugins | |
| parent | 3007d8a75d280f07be29c66b28e5186c71c1170c (diff) | |
| download | pcsxr-ed54e2854c92940cbec88831b576f3dbba14223a.tar.gz | |
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@38990 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/peopsxgl/gpu.c | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/plugins/peopsxgl/gpu.c b/plugins/peopsxgl/gpu.c index a283583b..307a1ed9 100644 --- a/plugins/peopsxgl/gpu.c +++ b/plugins/peopsxgl/gpu.c @@ -782,12 +782,33 @@ void sysdep_create_display(void) // create display printf("\n");
*/
- if(fx) // after make current: fullscreen resize
+ if (fx) // after make current: fullscreen resize
{
XResizeWindow(display,window,screen->width,screen->height);
hints.min_width = hints.max_width = hints.base_width = screen->width;
hints.min_height= hints.max_height = hints.base_height = screen->height;
- XSetWMNormalHints(display,window,&hints);
+ XSetWMNormalHints(display,window,&hints); + + // set the window layer for GNOME + { + XEvent xev; + + memset(&xev, 0, sizeof(xev)); + xev.xclient.type = ClientMessage; + xev.xclient.serial = 0; + xev.xclient.send_event = 1; + xev.xclient.message_type = XInternAtom(display, "_NET_WM_STATE", 0); + xev.xclient.window = window; + xev.xclient.format = 32; + xev.xclient.data.l[0] = 1; + xev.xclient.data.l[1] = XInternAtom(display, "_NET_WM_STATE_FULLSCREEN", 0); + xev.xclient.data.l[2] = 0; + xev.xclient.data.l[3] = 0; + xev.xclient.data.l[4] = 0; + + XSendEvent(display, RootWindow(display, DefaultScreen(display)), 0, + SubstructureRedirectMask | SubstructureNotifyMask, &xev); + } }
}
|
