diff options
Diffstat (limited to 'client/videowidget.cc')
-rw-r--r-- | client/videowidget.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/client/videowidget.cc b/client/videowidget.cc index edabf71..f6fc430 100644 --- a/client/videowidget.cc +++ b/client/videowidget.cc @@ -51,9 +51,24 @@ VideoWidget::~VideoWidget() { } +//static QWidget *realparent; void VideoWidget::mouseReleaseEvent(QMouseEvent *event) { /* + fprintf(stderr, "Fullscreen\n"); + + if(isFullScreen()) { + // setWindowState(Qt::WindowNoState); + setParent(realparent); + showNormal(); + } else { + realparent = parentWidget(); + setParent(NULL); + showFullScreen(); + // setWindowState(Qt::WindowFullScreen); + } + */ + /* if(!parent) { // We are a fullscreen window QString ids; setenv("SDL_WINDOWID", ids.setNum(oldWindow->winId()).toStdString().c_str(), 1); |