Opened 12 years ago
Closed 7 years ago
Last modified 7 years ago
#11363 closed Patch - Bug Fix (Duplicate)
Automatic change of display resolution for OpenGL video playback does not resize x11 window correctly
Reported by: | Owned by: | Peter Bennett | |
---|---|---|---|
Priority: | minor | Milestone: | 0.27.7 |
Component: | MythTV - Video Playback | Version: | Master Head |
Severity: | high | Keywords: | |
Cc: | Ticket locked: | no |
Description
When I set output to OpenGL and enable different resolutions for GUI and video, when playing video the X11 window stays on the size of the gui window. The video is displayed in the bottom left corner of the x11 window.
I tried to figured out what the problem is, and I identified 2 issues:
- in MythRenderOpenGL::MoveResizeWindow?(), the call to QWindget::setGeometry() does not actually change the X11 window size. I do not know, why this is the case
- when I fix that, the original window size is not restored when switching back to GUI. I didn't find the code, where this is supposed to happen. So, as a hack, I added the needed code to VideoOutputOpenGL::~VideoOutputOpenGL()
This solved the problem for me. You can find my patch attached.
I'm using QT 4.8.4, mesa 9.0.1, xorg 1.13.1, kernel 3.6.11 and Intel HD graphics with latest i915 driver.
Attachments (1)
Change History (13)
Changed 12 years ago by
Attachment: | 0001-quick-n-dirty-fix-for-OpenGL-window-resize-problem.patch added |
---|
comment:1 Changed 12 years ago by
One more detail, I figured out:
QWidget::setGeometry() does not work, because the video window which is set here, is not a toplevel window, but a child of the main GUI window. parent->isWindow() return false, thus Qt expects the widget to be not an X11 window, thus no call to XMoveResizeWindow() is done. So resizing the X11 directly via Xlib instead of Qt might actually be the right solution.
comment:2 Changed 12 years ago by
Milestone: | unknown → 0.26.1 |
---|---|
Owner: | set to danielk |
Status: | new → accepted |
comment:3 Changed 11 years ago by
Milestone: | 0.26.1 → 0.27 |
---|---|
Type: | Bug Report - General → Patch - Bug Fix |
comment:4 Changed 10 years ago by
Milestone: | 0.27 → 0.27.6 |
---|
comment:5 Changed 9 years ago by
Owner: | danielk deleted |
---|---|
Status: | accepted → new |
comment:6 Changed 9 years ago by
Milestone: | 0.27.6 → 0.27.7 |
---|
Reschedule all tickets planned for, but not solved in time for, 0.27.6 to 0.27.7.
comment:7 Changed 8 years ago by
Owner: | set to Peter Bennett |
---|---|
Status: | new → accepted |
comment:8 Changed 8 years ago by
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
comment:10 Changed 7 years ago by
Resolution: | fixed |
---|---|
Status: | closed → new |
See ticket:13054#comment:12 for details as issue is still occurring with OpenGL
comment:12 Changed 7 years ago by
Owner: | changed from Peter Bennett to Peter Bennett |
---|
Quick'n dirty fix