PCMan / gtk3-nocsd

A hack to disable gtk+ 3 client side decoration
GNU Lesser General Public License v2.1
320 stars 41 forks source link

Black background with certain apps like desktopfolder #44

Open khurshid-alam opened 5 years ago

khurshid-alam commented 5 years ago

Hi, Unity community developer here. As you know Ubuntu 19.04 will use Nautilus >=3.30 which does not have desktop anymore. Unity is deeply integrated with with the desktop and I was this can be used in unity too.

We are thinking of using desktopfolder instead. The issue is desktop folder shows a black background on unity when csd is disabled. The same thing happen with gnome-flashback session too.

As a workaround I had to run as GTK_CSD=1 /usr/bin/desktopfolder in unity. In unity GTK_CSD is always set to 0.

Can you explain why this happens? I tested with several themes, and it's the same issue.

The one reason I could think of is it could be the issue with missing support of _GTK_FRAME_EXTENTS in compiz since gtk-3.16

Also see: numixproject/numix-gtk-theme#206

gtk-nocsd always set border and background always transparent (even for docks), and unity always set shadows for all window types except desktop and dock....so there can not be any shadows behind, the probable workaround is to remove all shadows from all .window-frame styles. But with the workaround it doesn't work.

Can we ignore a particular app in gtk-nocsd ?

@chris-se