Bug 962636

Summary: X-sandboxes are not resizeable
Product: [Fedora] Fedora Reporter: Peter Hutterer <peter.hutterer>
Component: policycoreutilsAssignee: Daniel Walsh <dwalsh>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: csieh, dwalsh, jcpunk, mcsontos, mgrepl, mihai, mmalik, peter.hutterer, tpelka, xgl-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 962572 Environment:
Last Closed: 2013-06-22 10:16:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 962572    
Bug Blocks:    
Attachments:
Description Flags
call Xephyr with option -resizeable none

Description Peter Hutterer 2013-05-14 06:07:07 UTC
Created attachment 747522 [details]
call Xephyr with option -resizeable

policycoreutils-specific change: call Xephyr with option -resizeable to enable resizing of the sandbox.


Full history of the bug is below:

+++ This bug was initially created as a clone of Bug #962572 +++

+++ This bug was initially created as a clone of Bug #915202 +++

Description of problem:
Since update to RHEL6.4 GUI sandboxes (`sandbox -X`) are not resizeable.
This used to work perfectly on RHEL6.3.

Version-Release number of selected component (if applicable):
policycoreutils-2.0.83-19.30.el6.x86_64
xorg-x11-server-Xephyr-1.13.0-11.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1. sandbox -X firefox
2. try resizing sandbox
  
Actual results:
Sandbox can not be resized

Expected results:
Sandbox can be resized

--- Additional comment from Daniel Walsh on 2013-02-26 16:41:42 EST ---

Did the Xephyr Resize patch get removed?

--- Additional comment from Marian Csontos on 2013-02-27 04:06:58 EST ---

Short answer is yes, it got. Commit 1dee54d04.

Among other things this really breaks things in tiling window managers.
Also saved firefox sessions from RHEL6.3 are broken: firefox is using larger window than Xephyr.

Would it be possible getting it back in z-stream?

--- Additional comment from Marian Csontos on 2013-02-27 04:26:07 EST ---

And the workaround for broken firefox session is to search for /"width":/ and /"height":/ in profile's sessionstore.js (~/.mozilla/firefox/s0m3jVnK.default/sessionstore.js) and hand edit the numbers.

--- Additional comment from Peter Hutterer on 2013-05-12 23:52:04 EDT ---

Patch was removed from RHEL server because it got merged upstream as xorg-server-1.12.99.903-3-g8843aed. However, the upstream patch has two hunks different than the one we used to ship. Specifically, the resize option is now only enabled if win_pre_existing is != None whereas the previous patch had this unconditionally.

Best option here is probably to cherry-pick "ephyr: Add -resizeable option" (xorg-server-1.13.99.902-23-g3aac7a5) and set EphyrWantResize to 1 by default. This should emulate the behaviour of RHEL 6.3.

--- Additional comment from Daniel Walsh on 2013-05-13 12:53:26 EDT ---

Can we get the same option turned on in Fedora also?

Comment 1 Daniel Walsh 2013-05-14 12:26:11 UTC
Fixed in policycoreutils-2.1.14-42