all repos — fluxbox @ 2d0536a22380311e0668c0808dab95222af078c3

custom fork of the fluxbox windowmanager

using slit themes border color, border width and bevel width
fluxgen fluxgen
commit

2d0536a22380311e0668c0808dab95222af078c3

parent

f58489b8e3206fe92618ddb45601259ed2b803a4

1 files changed, 8 insertions(+), 9 deletions(-)

jump to
M src/Slit.ccsrc/Slit.cc

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Slit.cc,v 1.66 2003/06/24 13:48:34 fluxgen Exp $ +// $Id: Slit.cc,v 1.67 2003/06/24 16:29:14 fluxgen Exp $ #include "Slit.hh"

@@ -291,8 +291,7 @@ XSetWindowAttributes attrib;

unsigned long create_mask = CWBackPixmap | CWBackPixel | CWBorderPixel | CWColormap | CWOverrideRedirect | CWEventMask; attrib.background_pixmap = None; - attrib.background_pixel = attrib.border_pixel = - screen().rootTheme().borderColor().pixel(); + attrib.background_pixel = attrib.border_pixel = theme().borderColor().pixel(); attrib.colormap = screen().rootWindow().colormap(); attrib.override_redirect = True; attrib.event_mask = s_eventmask;

@@ -302,7 +301,7 @@ frame.width = frame.height = 1;

Display *disp = FbTk::App::instance()->display(); frame.window = XCreateWindow(disp, screen().rootWindow().window(), frame.x, frame.y, - frame.width, frame.height, screen().rootTheme().borderWidth(), + frame.width, frame.height, theme().borderWidth(), screen().rootWindow().depth(), InputOutput, screen().rootWindow().visual(), create_mask, &attrib);

@@ -631,7 +630,7 @@

// Need to count windows because not all client list entries // actually correspond to mapped windows. int num_windows = 0; - const int bevel_width = screen().rootTheme().bevelWidth(); + const int bevel_width = theme().bevelWidth(); // determine width or height increase bool height_inc = false; switch (direction()) {

@@ -677,8 +676,8 @@

reposition(); Display *disp = FbTk::App::instance()->display(); - frame.window.setBorderWidth(screen().rootTheme().borderWidth()); - frame.window.setBorderColor(screen().rootTheme().borderColor()); + frame.window.setBorderWidth(theme().borderWidth()); + frame.window.setBorderColor(theme().borderColor()); // did we actually use slit slots if (num_windows == 0) frame.window.hide();

@@ -806,8 +805,8 @@ head_w = screen().width();

head_h = screen().height(); } - int border_width = screen().rootTheme().borderWidth(); - int bevel_width = screen().rootTheme().bevelWidth(); + int border_width = theme().borderWidth(); + int bevel_width = theme().bevelWidth(); // place the slit in the appropriate place switch (placement()) {