RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 623191 - compiz and full-screen problems with _NET_WM_STATE_FULLSCREEN from gtk_window_fullscreen not applied
Summary: compiz and full-screen problems with _NET_WM_STATE_FULLSCREEN from gtk_window...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: compiz
Version: 6.0
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Owen Taylor
QA Contact: Desktop QE
URL:
Whiteboard:
: 621205 679055 (view as bug list)
Depends On:
Blocks: 621205
TreeView+ depends on / blocked
 
Reported: 2010-08-11 14:45 UTC by Caolan McNamara
Modified: 2017-12-06 12:03 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-06 12:03:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
standalone demo (1.20 KB, text/plain)
2010-08-11 14:46 UTC, Caolan McNamara
no flags Details

Description Caolan McNamara 2010-08-11 14:45:14 UTC
Description of problem:
OpenOffice.org's attempt to go full-screen under compiz fails

Version-Release number of selected component (if applicable):
compiz-0.8.2-24.el6.i686

How reproducible:
100%

Steps to Reproduce:
either 
a) Run ooimpress and go full-screen with F5
b) play with the attached example
  
Actual results:
Presentation full-screen window appears off-centre

Expected results:
Same as metacity, full-screen window covering everything.

See the inline comments in the demo.c for more information

Comment 1 Caolan McNamara 2010-08-11 14:46:47 UTC
Created attachment 438208 [details]
standalone demo

Comment 2 Caolan McNamara 2010-08-11 14:48:50 UTC
upstream bugzilla (http://bugs.opencompositing.org) seems dead/down :-(

Comment 3 Danny Baumann 2010-08-11 14:57:01 UTC
FWIW, the demo application works fine for me, using compiz off the HEAD of the 0.8 branch (which essentially is 0.8.6).

Comment 5 RHEL Program Management 2010-08-11 15:18:42 UTC
This issue has been proposed when we are only considering blocker
issues in the current Red Hat Enterprise Linux release.

** If you would still like this issue considered for the current
release, ask your support representative to file as a blocker on
your behalf. Otherwise ask that it be considered for the next
Red Hat Enterprise Linux release. **

Comment 6 Caolan McNamara 2010-08-11 19:50:36 UTC
"FWIW, the demo application works fine for me, using compiz off the HEAD of the
0.8 branch (which essentially is 0.8.6)."

I quickly build the 0.8.6 rawhide rpm, which admittedly has some patches in it, and when I ran the demo on an empty screen it initially looked good. Until I realized that...

a) the gnome panels were drawn above the full-screen window
b) when I added some extra windows to my screen to fill it up and then re-ran it then the window is positioned off screen.

where the same source commented removal of decoration hint disable or removal or resizing disable makes it "work" as desired by fitting it over everything else and anchored at 0, 0

Comment 7 Danny Baumann 2010-08-12 06:29:52 UTC
(In reply to comment #6)
> "FWIW, the demo application works fine for me, using compiz off the HEAD of the
> 0.8 branch (which essentially is 0.8.6)."
> 
> I quickly build the 0.8.6 rawhide rpm, which admittedly has some patches in it,

If the patches equal those of the Fedora package, I don't think they'll have any influence to this problem.

> and when I ran the demo on an empty screen it initially looked good. Until I
> realized that...
> 
> a) the gnome panels were drawn above the full-screen window
> b) when I added some extra windows to my screen to fill it up and then re-ran
> it then the window is positioned off screen.
> 
> where the same source commented removal of decoration hint disable or removal
> or resizing disable makes it "work" as desired by fitting it over everything
> else and anchored at 0, 0    

Interesting. It doesn't do that here. Instead it sometimes spans both of my monitors, although a fullscreen window should only span one of them. I wonder if the demo program setting the minimum size to the screen size (clearly not taking multi-monitor configurations into account) is related (1280x1024 + 1680x1050 -> screen size 2960x1050). I'll check that out.

Comment 8 Danny Baumann 2010-08-12 07:13:23 UTC
It looks like it's no compiz problem, after all, but instead Gtk+ is to blame. An excerpt of xprop with the offending lines removed looks like this:

WM_STATE(WM_STATE):
                window state: Normal
                icon window: 0x0
_NET_WM_DESKTOP(CARDINAL) = 0
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_MOVE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_STICK, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_FULLSCREEN, _NET_WM_ACTION_CLOSE, _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_ABOVE, _NET_WM_ACTION_BELOW
_NET_WM_STATE(ATOM) = _NET_WM_STATE_FULLSCREEN

while the same excerpt with the offending lines in looks like this:

WM_STATE(WM_STATE):
                window state: Normal
                icon window: 0x0
_NET_WM_DESKTOP(CARDINAL) = 0
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_MOVE, _NET_WM_ACTION_STICK, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_CLOSE, _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_ABOVE, _NET_WM_ACTION_BELOW
_NET_WM_STATE(ATOM) = 

As you can see, in the latter case Gtk+ doesn't set the window to have fullscreen state properly, thus compiz can't handle it like a normal fullscreen window.
From first inspection, it looks like Gtk+ sees the window is unmapped and tries to set the STATE property by itself, which conforms to EWMH for unmapped windows. The problem is that the MapRequest event triggered by gtk_window_show is delivered earlier than the PropertyNotify event triggered by gtk_window_fullscreen for some Gtk internal reason, so compiz thinks that the application tries to set the property for a managed window and ignores that change (which also conforms to EWMH, see the first few sentences of http://standards.freedesktop.org/wm-spec/wm-spec-1.3.html#id2507241).

For getting this problem fixed, it looks like you'll need to ask Gtk+ people to make sure that any pending _NET_WM_STATE property changes are sent out on gtk_window_show before the actual XMapWindow() call.

Comment 9 Caolan McNamara 2010-08-12 08:05:51 UTC
caolanm->mclasen: See #8, agree that this a gtk2 issue ?

Comment 10 RHEL Program Management 2010-08-18 21:21:04 UTC
Thank you for your bug report. This issue was evaluated for inclusion
in the current release of Red Hat Enterprise Linux. Unfortunately, we
are unable to address this request in the current release. Because we
are in the final stage of Red Hat Enterprise Linux 6 development, only
significant, release-blocking issues involving serious regressions and
data corruption can be considered.

If you believe this issue meets the release blocking criteria as
defined and communicated to you by your Red Hat Support representative,
please ask your representative to file this issue as a blocker for the
current release. Otherwise, ask that it be evaluated for inclusion in
the next minor release of Red Hat Enterprise Linux.

Comment 11 Caolan McNamara 2010-09-09 09:11:11 UTC
*** Bug 621205 has been marked as a duplicate of this bug. ***

Comment 12 RHEL Program Management 2011-01-07 15:45:20 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 13 Caolan McNamara 2011-02-21 14:18:30 UTC
*** Bug 679055 has been marked as a duplicate of this bug. ***

Comment 14 Jan Kurik 2017-12-06 12:03:41 UTC
Red Hat Enterprise Linux 6 is in the Production 3 Phase. During the Production 3 Phase, Critical impact Security Advisories (RHSAs) and selected Urgent Priority Bug Fix Advisories (RHBAs) may be released as they become available.

The official life cycle policy can be reviewed here:

http://redhat.com/rhel/lifecycle

This issue does not meet the inclusion criteria for the Production 3 Phase and will be marked as CLOSED/WONTFIX. If this remains a critical requirement, please contact Red Hat Customer Support to request a re-evaluation of the issue, citing a clear business justification. Note that a strong business justification will be required for re-evaluation. Red Hat Customer Support can be contacted via the Red Hat Customer Portal at the following URL:

https://access.redhat.com/


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