Bug 226852 - special window setting: disable unredirecting of full screen window
Summary: special window setting: disable unredirecting of full screen window
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-14 17:42 UTC by Benjamin Schmitz
Modified: 2012-03-11 05:58 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Schmitz 2010-02-14 17:42:10 UTC
Version:            (using KDE 4.4.0)
OS:                Linux
Installed from:    Archlinux Packages

kwin automatically disables redirection for full screen windows which is generally a good thing to do.

It can, however, be annoying sometimes. If for example you run firefox (or any browser) in full screen mode the screen will flicker every time a menu, tool-tip or other popup is displayed.

It would be good if there was a way to disable automatic unredirection for these windows. This could be realized as a window-specific setting (like "disable focus stealing prevention", "no border", etc.).
Comment 1 Martin Flöser 2010-02-14 18:19:58 UTC

*** This bug has been marked as a duplicate of bug 170293 ***
Comment 2 Benjamin Schmitz 2010-02-14 19:07:12 UTC
Not really a duplicate of bug 170293 IMO, because bug 170293 is about disabling compositing when a certain application is running. 

This bug, however is about disabling the automatic unredirection feature for full screen windows while leaving compositing enabled.
Comment 3 Alec Moskvin 2010-02-17 15:18:20 UTC
To reproduce, open Konqueror and press F11 - this will set it to full screen. Now, hover over a toolbar button (Refresh, for example). The screen will turn black for half a second, and then the tooltip will fade in. Move the cursor away, and the same thing happens - the tooltip fades out, and then the whole screen flickers.

(The video card is NVIDIA GeForce Go 7300)
Comment 4 Robert Bombka 2010-02-17 17:52:21 UTC
Problem solution was posted in the kde forum.
Post: http://forum.kde.org/viewtopic.php?p=148190#p148190

Quotation:
This feature is already available! Add the following line to your ~/.kde4/share/config/kwinrc in the [Compositing] section:

    UnredirectFullscreen=false

Be sure to restart KWin afterwards:

    kwin --replace
Comment 5 Thomas Lübking 2010-02-17 19:09:05 UTC
> This feature is already available! Add the following line to your
> ~/.kde4/share/config/kwinrc in the [Compositing] section:
> 
>     UnredirectFullscreen=false

Notice that this will cause major performance regression on e.g. fullscreen 
games & videos or the screensaver
Be sure to suspend compositing before running such (and maybe just blank 
screen instead of using fancy 3D screensavers)
Comment 6 Alec Moskvin 2010-02-17 21:37:20 UTC
I think the proper solution to this would be if compositing was disabled entirely when a window is open in full screen.
Comment 7 Thomas Lübking 2010-02-17 22:28:38 UTC
This is basically what the unredirection does - just that the next popup 
reactivates it (otherwise the cool shadows and translucency would be lost)

Theoretically the client could do shadows, translucency etc. itself (i.e. 
QMenu does not set the window flag but reparents and raises on the FS window), 
as we know that the popup will be 100% contained by the FS window - but that's 
not gonna happen.

Actually we want two different types of fs windows
FULLSCREEN - "I run the entire show, leave me alone", and
FULL-SCREEN "I want no deco and please cross panels"

where the former are games, mplayers, etc and the latter are browsers, IDEs 
etc. - maybe we could provide a routine used by at least KDE apps (i.e. add an 
additional property alongside _NET_WM_STATE_FULLSCREEN)
Comment 8 alexander 2010-04-06 02:36:18 UTC
I had same bug on openSUSE 11.2 kde4.4. On the contrary, Kubuntu Karmic kde4.4 has never suffered from this bug.

Thanks for your help :)
Comment 9 Thomas Lübking 2012-03-11 05:58:04 UTC
Unredirecting fullscreen is by default disabled and we have a rule to block compositing, what is basically comment #6