Skip to content

Commit

Permalink
use my broken
Browse files Browse the repository at this point in the history
  • Loading branch information
ntBre committed Aug 16, 2024
1 parent e528085 commit 2d129fd
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ use x11::xlib::{
};

use bindgen::{
bh, broken, buttons, colors, cursor, dpy, drw, fonts, keys, layouts, lrpad,
mons, netatom, resizehints, root, scheme, screen, selmon, sh, stext, sw,
tags, wmatom, wmcheckwin, Arg, Atom, Client, Clr, ColBorder, Layout,
Monitor, WMProtocols, XInternAtom,
bh, buttons, colors, cursor, dpy, drw, fonts, keys, layouts, lrpad, mons,
netatom, resizehints, root, scheme, screen, selmon, sh, stext, sw, tags,
wmatom, wmcheckwin, Arg, Atom, Client, Clr, ColBorder, Layout, Monitor,
WMProtocols, XInternAtom,
};
use enums::{Clk, Col, Cur, Net, Scheme, WM};
use util::{die, ecalloc};
Expand Down Expand Up @@ -131,7 +131,7 @@ static mut XERRORXLIB: Option<

// static mut SCREEN: i32 = 0;

// const BROKEN: &str = "broken";
const BROKEN: &CStr = c"broken";
// static mut STEXT: String = String::new();

/// bar height
Expand Down Expand Up @@ -2760,12 +2760,12 @@ fn applyrules(c: *mut Client) {
let class = if !ch.res_class.is_null() {
CStr::from_ptr(ch.res_class)
} else {
CStr::from_ptr(broken.as_ptr())
BROKEN
};
let instance = if !ch.res_name.is_null() {
CStr::from_ptr(ch.res_name)
} else {
CStr::from_ptr(broken.as_ptr())
BROKEN
};

for i in 0..RULES.len() {
Expand Down Expand Up @@ -2826,7 +2826,7 @@ fn updatetitle(c: *mut Client) {
/* hack to mark broken clients */
libc::strcpy(
&mut (*c).name as *mut _,
broken.as_ptr() as *const c_char,
BROKEN.as_ptr() as *const c_char,
);
}
}
Expand Down

0 comments on commit 2d129fd

Please sign in to comment.