| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
All geometry/drawing information is now picked up from the GTK+ theme,
so replace the remaining bits (hide_buttons + title_scale) with
hardcoded values from the default Adwaita theme.
If there is a need to theme those constants again in the future,
we should make them available from GTK+ where they are available
for client-side decorations as well. They certainly don't justify
maintaining support for a complex theme format.
Based on mutter commit:
https://git.gnome.org/browse/mutter/commit/?id=d5e6177900f5cdf90bb3ba86603d6b6ff0a919f7
|
|
|
|
|
|
|
|
|
| |
With geometry information picked up from GTK+, we need to queue a
resize on GTK+ theme changes to correctly update to the new geometry.
https://bugzilla.gnome.org/show_bug.cgi?id=741917
NOTE: Updated for metacity.
|
|
|
|
| |
Theme name == NULL - use current GTK+ theme.
|
|
|
|
|
|
| |
... to differentiate PangoLayout from MetaFrameLayout.
https://bugzilla.gnome.org/show_bug.cgi?id=741917
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
GTK+ doesn't deal with different frame types for its client-side
decorations - it just treats dialogs the same as normal windows
and ignores the odder frame types like UTILITY and MENU. That's
fine as those have largely gone out of fashion anyway, but it's a
different case for the WM - we still have to support them somehow.
For now, just apply the existing title_scale factor to the geometry
information picked up from the theme in addition to the title font.
If it turns out that there's demand for something more sophisticated,
we can still consider adding wm-only style information to the GTK+
theme.
https://bugzilla.gnome.org/show_bug.cgi?id=741917
|
|
|
|
|
|
|
|
|
|
|
| |
We now have everything in place to pick up geometry and drawing
information from GTK+ rather than the metacity theme, so do just
that; the metacity theme is now only used for some constants
(title_scale, hide_buttons, ...), which we will replace soon.
https://bugzilla.gnome.org/show_bug.cgi?id=741917
NOTE: Updated for metacity.
|
|
|
|
|
|
|
|
|
|
| |
We want to eventually pick up all theme information from GTK+ instead
of our own theme format; to prepare for this, add another helper method
to fill in geometry information from the GTK+ theme.
https://bugzilla.gnome.org/show_bug.cgi?id=741917
NOTE: Updated for metacity.
|
|
|
|
|
|
|
|
| |
GTK+ expresses the window state as style classes and widget state for
client-side decorations. Add a helper method to translate our own frame
state to the corresponding changes to the style context hierarchy.
https://bugzilla.gnome.org/show_bug.cgi?id=741917
|
|
|
|
|
|
|
|
|
|
|
|
| |
Sounds obvious, doesn't it?
After this change when titlebar-uses-system-font is set, the "system
font" used will not be a generic one, but match what GTK+ uses in
client-side decorations.
https://bugzilla.gnome.org/show_bug.cgi?id=741917
NOTE: Updated for metacity.
|
| |
|
|
|
|
|
|
|
|
| |
In order to pick up all theme information from GTK+, a single style
context is not enough; a style hierarchy that closely matches the widget
hierarchy by GTK+'s client-side decorations will allow this soon.
https://bugzilla.gnome.org/show_bug.cgi?id=741917
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Our current use of style contexts is fairly limited - we don't
use them for much more than picking up some color information.
We will soon start to make more elaborate use of GTK style
information, but a single context will no longer be enough
to draw a frame then.
To prepare for this, add a simple ref-counted type to wrap
style information.
https://bugzilla.gnome.org/show_bug.cgi?id=741917
NOTE: Updated for metacity.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Rather than defining the space to the left and right of buttons, add a
simple spacing property that defines the space between buttons, which is
what GTK+ does for client-side decorations (e.g. GtkButtons in a GtkBox).
Unfortunately the value is hardcoded in GTK+; if it is exposed in the
theme in the future, we should pick it up from there, but for now we
just use the same value as GTK+.
https://bugzilla.gnome.org/show_bug.cgi?id=741917
NOTE: Updated for metacity.
|
| |
|
|
|
|
|
| |
These themes are copied from gnome-themes-standard before they
were removed.
|
|
|
|
| |
Just some minor nitpicks.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
This reverts commit 04ad17378e0f366dd503cf0881e3a3f9ae603699.
|
| |
|
|
|
|
| |
This reverts commit 54244b4b60016612270de42c00836ec5f90f262b.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
With compositing manager:
1. Apply only client shape.
Without compositing manager:
1. Apply client shape.
2. Apply shape around visible frame.
|
|
|
|
| |
This reverts commit 43250740ab2a56991744a1525bad2930d7541595.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
On subsequent changes, if there is a NET_WM_USER_TIME_WINDOW, then
read the property from that rather than from the main window.
(Fix an accidental regression: the right Window was being computed
but no longer passed in.)
Original patch author - Owen Taylor:
https://bugzilla.gnome.org/show_bug.cgi?id=585979
This patch also reverts some code removal from this metacity commit:
be478298219d2207c8e7a5ba79f20485afe24b70
https://bugzilla.gnome.org/show_bug.cgi?id=587425
|
|
|
|
|
|
| |
XCompositeNameWindowPixmap can generate BadMatch error. If this
error is generated then returned pixmap is not valid. Just set
back_pixmap to None in case of error.
|
| |
|
| |
|
| |
|
|
|
|
| |
Version 0.3 is available more then 8 years.
|
|
|
|
| |
If compositing manager is not available set invisible borders to 0.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
The condition got removed in eeb2efe01001fef7655b2ba95ca1456f7fe9214b but that
had a side effect of adding a couple of rows of dead pixels so add it back.
https://bugzilla.gnome.org/show_bug.cgi?id=658069
|
|
|
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=657795
With this fix applied:
https://git.gnome.org/browse/mutter/commit/?id=00e49b330c413dae96ba16b3ce2a1a6962b0f0df
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=656619
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=662895
|
|
|
|
| |
We should still correct the coordinates for withdrawn windows.
|
|
|
|
|
|
|
|
| |
When we reparent a window to the root when we're exiting, we need to offset
the position by the invisible borders, otherwise windows will creep up and
to the left.
https://bugzilla.gnome.org/show_bug.cgi?id=660848
|
|
|
|
|
|
|
|
| |
_NET_FRAME_EXTENTS should contain the difference between where a window asked
to be placed, and where it is. Ideally, this should be the same as the visible
extents.
https://bugzilla.gnome.org/show_bug.cgi?id=659848
|
|
|
|
|
|
|
|
|
|
| |
Invisible borders are all about resizing -- in the case that a window
cannot be resized, it makes no sense to add them.
https://bugzilla.gnome.org/show_bug.cgi?id=659854
Based on mutter commit:
https://git.gnome.org/browse/mutter/commit/?id=be9f7d77292c1dfd868640fe95f7223fbbfd4273
|
|
|
|
|
|
|
|
| |
A window can specify geometry that it is placed at. We need to exclude invisible
borders when calculating where to place the window, otherwise the window will have
a strange offset.
https://bugzilla.gnome.org/show_bug.cgi?id=659848
|
|
|
|
|
|
|
|
|
|
|
|
| |
Shaded windows are assumed to be reduced to the titlebar: the
current code enforces a visible bottom border of 0 and only takes
the size of the title bar (+ invisible top border) into account
when resizing the frame. However, we still add an invisible border
at the bottom, which is than subtracted from the title bar, resulting
in shaded windows being cut off.
Fix by forcing both visible and invisible bottom borders to 0.
https://bugzilla.gnome.org/show_bug.cgi?id=659266
|