forked from AuroraMiddleware/gtk
gtkwindow: Fix resize without "_GTK_FRAME_EXTENTS"
git commita5b1cdd0
introduced a regression where CSD windows are not resizable with metacity. Reason being that metacity does not support "_GTK_FRAME_EXTENTS" and therefore gtk_window_supports_client_shadow() would always return FALSE. This explains why it works with window managers which support "_GTK_FRAME_EXTENTS" such as mutter/gnome-shell or xfwm4. Partially revert commita5b1cdd0
to reinstate the logic in get_shadow_width(). Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=757805
This commit is contained in:
parent
32f27a4cd0
commit
9757ea2c49
@ -6722,10 +6722,8 @@ get_shadow_width (GtkWindow *window,
|
|||||||
if (!priv->decorated)
|
if (!priv->decorated)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!priv->client_decorated)
|
if (!priv->client_decorated &&
|
||||||
return;
|
!(gtk_window_should_use_csd (window) &&
|
||||||
|
|
||||||
if (!(gtk_window_should_use_csd (window) &&
|
|
||||||
gtk_window_supports_client_shadow (window)))
|
gtk_window_supports_client_shadow (window)))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user