Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Claim to support the GTK_FRAME_EXTENTS (enables full GTK CSD) #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions obt/prop.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ void obt_prop_startup(void)
CREATE_(KDE_WM_CHANGE_STATE);
CREATE_(KDE_NET_WM_WINDOW_TYPE_OVERRIDE);

CREATE_(GTK_FRAME_EXTENTS);

/*
CREATE_NAME(ROOTPMAPId, "_XROOTPMAP_ID");
CREATE_NAME(ESETROOTId, "ESETROOT_PMAP_ID");
Expand Down
4 changes: 4 additions & 0 deletions obt/prop.h
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,10 @@ typedef enum {
OBT_PROP_KDE_NET_WM_FRAME_STRUT,
OBT_PROP_KDE_NET_WM_WINDOW_TYPE_OVERRIDE,

/* GTK atoms */

OBT_PROP_GTK_FRAME_EXTENTS,

/*
OBT_PROP_ROOTPMAPID,
OBT_PROP_ESETROOTID,
Expand Down
5 changes: 5 additions & 0 deletions openbox/screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,11 @@ gboolean screen_annex(void)
supported[i++] = OBT_PROP_ATOM(KDE_NET_WM_FRAME_STRUT);
supported[i++] = OBT_PROP_ATOM(KDE_NET_WM_WINDOW_TYPE_OVERRIDE);

// FIXME: openbox claims to support GTK_FRAME_EXTENTS, which is currently
// not the case. This, however, enables full GTK client-side decorations,
// e.g. rounded window frames and shadows.
supported[i++] = OBT_PROP_ATOM(GTK_FRAME_EXTENTS);

supported[i++] = OBT_PROP_ATOM(OB_WM_ACTION_UNDECORATE);
supported[i++] = OBT_PROP_ATOM(OB_WM_STATE_UNDECORATED);
supported[i++] = OBT_PROP_ATOM(OPENBOX_PID);
Expand Down