Synchronize decorations buttons order in GTK headerbars

Authored by gikari on Dec 1 2019, 10:41 PM.

Description

Synchronize decorations buttons order in GTK headerbars

Summary:
Window decorations button order was applied only for window headers that was controlled by KWin, but not for GTK applications with CSD. Now it is no longer true - button order in CSD applications are in sync with the one used by KWin.

Only Close, Maximize, Minimize and Icon buttons are synchronized, because GTK supports only them.

Depends on D25695

Test Plan:

  1. Open two windows alongside each other: window decorations button order settings and any gtk3 app with CSD (for example, Lutris)
  2. Restart kded5
  3. Apply any WD button order, apply settings
  4. The app should change its buttons order in headerbar (if xsettingsd is not installed, on X11 only after restart)

Reviewers: VDG, cblack, Plasma, apol

Reviewed By: apol

Subscribers: apol, GB_2, broulik, plasma-devel

Tags: Plasma

Maniphest Tasks: T10611

Differential Revision: https://phabricator.kde.org/D25670

Details

Committed
gikariDec 18 2019, 5:52 PM
Reviewer
apol
Differential Revision
D25670: Synchronize decorations buttons order in GTK headerbars
Parents
R99:99c72b4b9581: Sync dark theme preference for GTK3 applications
Branches
Unknown
Tags
Unknown