all repos — fluxbox @ b3a94f59d8bb301fa38a65317da7bb81733de933

custom fork of the fluxbox windowmanager

Fix _NET_FRAME_EXTENTS on 64-bit systems
simonb simonb
commit

b3a94f59d8bb301fa38a65317da7bb81733de933

parent

7a9fcd66fd09f138485accb12f0bd71c81efd959

3 files changed, 12 insertions(+), 5 deletions(-)

jump to
M ChangeLogChangeLog

@@ -1,5 +1,12 @@

(Format: Year/Month/Day) Changes for 1.0rc3: +*07/01/01: + * Happy New Year! + * Fix data type of data passed to set _NET_FRAME_EXTENTS (Simon) + (sf.net #1621980) + Similar fix for gnome current workspace... remember that XA_CARDINAL + "32-bit" type is actually a "long array" argument (=64bit on 64 systems) + Ewmh.cc Gnome.cc *06/12/28: * Don't add 2 pixels to a specified toolbar height, bug #1528646 (Mark) Toolbar.cc
M src/Ewmh.ccsrc/Ewmh.cc

@@ -859,11 +859,11 @@ } else if (ce.message_type == m_net_request_frame_extents) {

if (!screen) return true; FbWinFrameTheme &theme = screen->winFrameTheme(); - int title_h = theme.titleHeight() || + long title_h = theme.titleHeight() || theme.font().height() + 2*theme.bevelWidth() + 2; title_h += theme.border().width(); - int handle_h = theme.handleWidth() + theme.border().width(); - int extents[4]; + long handle_h = theme.handleWidth() + theme.border().width(); + long extents[4]; // our frames currently don't protrude from left/right extents[0] = 0; extents[1] = 0;

@@ -1271,7 +1271,7 @@ /* Frame extents are basically the amount the window manager frame

protrudes from the client window, on left, right, top, bottom (it is independent of window position). */ - int extents[4]; + long extents[4]; // our frames currently don't protrude from left/right extents[0] = 0; extents[1] = 0;
M src/Gnome.ccsrc/Gnome.cc

@@ -235,7 +235,7 @@ delete [] names[i];

} void Gnome::updateCurrentWorkspace(BScreen &screen) { - int workspace = screen.currentWorkspaceID(); + long workspace = screen.currentWorkspaceID(); screen.rootWindow().changeProperty(m_gnome_wm_win_workspace, XA_CARDINAL, 32, PropModeReplace, (unsigned char *)&workspace, 1);