Bug 962636 - X-sandboxes are not resizeable
Summary: X-sandboxes are not resizeable
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: policycoreutils
Version: 19
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 962572
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-14 06:07 UTC by Peter Hutterer
Modified: 2013-06-22 10:16 UTC (History)
10 users (show)

Fixed In Version:
Clone Of: 962572
Environment:
Last Closed: 2013-06-22 10:16:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
call Xephyr with option -resizeable (1.21 KB, patch)
2013-05-14 06:07 UTC, Peter Hutterer
no flags Details | Diff

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


Note You need to log in before you can comment on or make changes to this bug.