diff options
author | deva <deva> | 2005-07-25 15:35:41 +0000 |
---|---|---|
committer | deva <deva> | 2005-07-25 15:35:41 +0000 |
commit | 8c381fe44a179b4b84ecc50e810980f7af9a0f58 (patch) | |
tree | e28e41e1615e7ae88cf3658ce5a159534b9617b9 /src/videowidget.cc | |
parent | 3551a0a021d3e2ad4e4063602648da333510aef8 (diff) |
*** empty log message ***
Diffstat (limited to 'src/videowidget.cc')
-rw-r--r-- | src/videowidget.cc | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/videowidget.cc b/src/videowidget.cc index 859763d..2aa7ba9 100644 --- a/src/videowidget.cc +++ b/src/videowidget.cc @@ -31,6 +31,9 @@ /* * $Log$ + * Revision 1.5 2005/07/25 15:40:07 deva + * *** empty log message *** + * * Revision 1.4 2005/07/25 15:35:41 deva * *** empty log message *** * @@ -67,11 +70,17 @@ QPixmap VideoWidget::getScreenshot() void VideoWidget::mousePressEvent(QMouseEvent *event) { + QString ids; + if(isFullScreen()) { printf("Going normal\n"); - reparent(parent, 0, QPoint(0,0), FALSE); + setenv("SDL_WINDOWID", ids.setNum(0), 1); + + reparent(parent, 0, QPoint(10,10), FALSE); + + setenv("SDL_WINDOWID", ids.setNum(winId()), 1); showNormal(); @@ -79,7 +88,11 @@ void VideoWidget::mousePressEvent(QMouseEvent *event) printf("Going fullscreen\n"); - reparent(NULL, 0, QPoint(10,10), FALSE); + setenv("SDL_WINDOWID", ids.setNum(0), 1); + + reparent(NULL, 0, QPoint(0,0), FALSE); + + setenv("SDL_WINDOWID", ids.setNum(winId()), 1); showFullScreen(); |