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

Debug compilation fix #337

Merged
merged 2 commits into from
Jul 15, 2024
Merged
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
6 changes: 3 additions & 3 deletions config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ MANPREFIX = ${PREFIX}/share/man
# grep -r xcb

# fallback
XCB_INCS_PKG = `pkg-config --cflags --libs xcb xcb-util xcb-aux xcb-xinerama xcb-event xcb-keysyms`
XCB_INCS = -Ixcb -Ixcb-util -Ixcb-aux -Ixcb-xinerama -Ixcb-event -Ixcb-keysyms
XCB_INCS_PKG = `pkg-config --cflags --libs xcb xcb-util xcb-aux xcb-xinerama xcb-event xcb-keysyms xcb-xinput xcb-image`
XCB_INCS = -Ixcb -Ixcb-util -Ixcb-aux -Ixcb-xinerama -Ixcb-event -Ixcb-keysyms -Ixcb-xinput -Ixcb-image
TOOLS = -Itools
INCLUDE_INCS = -Iinclude
INCS = ${XCB_INCS} ${INCLUDE_INCS} ${TOOLS}
#-lxcb-util -lxcb-icccm -lxcb-keysyms
LIBS = ${XCB_INCS_PKG}
LIBS = ${XCB_INCS_PKG} -lX11

CCVERSION = -std=c99
XNATIVE = -march=native -mtune=native
Expand Down
2 changes: 1 addition & 1 deletion include/client.h
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ void updatemotifhints(Client *c, XCBWindowProperty *motifprop);
*/
void updatesizehints(Client *c, XCBSizeHints *size);
/* Updates Client tile if we find one;
* if none found default to dwm.h BROKEN
* if none found default to main.h BROKEN
*/
void updatetitle(Client *c, char *netwmname, char *wmname);
/* Updates Our own window protocol status (dont have to query every time) */
Expand Down
2 changes: 1 addition & 1 deletion include/keybinds.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define KEYBINDS_H_

#include "toggle.h"
#include "dwm.h"
#include "main.h"
#include <X11/keysym.h>
#include <X11/XF86keysym.h>

Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions include/toggle.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef TOGGLE_H_
#define TOGGLE_H_

#include "dwm.h"
#include "main.h"


/* Mostly a testing function */
Expand All @@ -14,15 +14,15 @@ void KillWindow(const Arg *arg);
void TerminateWindow(const Arg *arg);
/* keybind to move the current window where the mouse cursor is */
void DragWindow(const Arg *arg);
/* restarts dwm */
/* restarts wm */
void Restart(const Arg *arg);
/* quits dwm */
/* quits wm */
void Quit(const Arg *arg);
/* resizes the current window based on mouse position */
void ResizeWindow(const Arg *arg);
/* resizes the current window based on mouse position no restrictions */
void ResizeWindowAlt(const Arg *arg);
/* sets the window layout based on a enum in dwm.h -> Grid, Floating, Monocle, Tiled */
/* sets the window layout based on a enum in main.h -> Grid, Floating, Monocle, Tiled */
void SetWindowLayout(const Arg *arg);
/* Sets the size of the master window 0.0 -> 1.0 for the Tiled Layout
* where 1 is just monocle with extra steps */
Expand Down
2 changes: 1 addition & 1 deletion src/bar.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <string.h>


#include "dwm.h"
#include "main.h"
extern WM _wm;

#include "bar.h"
Expand Down
2 changes: 1 addition & 1 deletion src/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include "desktop.h"

#include "dwm.h"
#include "main.h"
#include "keybinds.h"
#include "util.h"
#include "hashing.h"
Expand Down
2 changes: 1 addition & 1 deletion src/desktop.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "client.h"
#include "monitor.h"
#include "desktop.h"
#include "dwm.h"
#include "main.h"



Expand Down
2 changes: 1 addition & 1 deletion src/events.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "events.h"
#include "util.h"
#include "keybinds.h"
#include "dwm.h"
#include "main.h"
#include "monitor.h"
#include "client.h"
#include "desktop.h"
Expand Down
2 changes: 1 addition & 1 deletion src/getprop.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "XCB-TRL/xcb_winutil.h"
#include "queue.h"
#include "getprop.h"
#include "dwm.h"
#include "main.h"

#define QUEUE_SIZE 1024
/* realistically you wont ever need more than 64 as most of these threads are just waiting for data. */
Expand Down
2 changes: 1 addition & 1 deletion src/dwm.c → src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <X11/keysym.h>

#include "util.h"
#include "dwm.h"
#include "main.h"
#include "hashing.h"
#include "getprop.h"
#include "keybinds.h"
Expand Down
2 changes: 1 addition & 1 deletion src/monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <X11/keysym.h>
#include "monitor.h"

#include "dwm.h"
#include "main.h"

#include <string.h>

Expand Down
2 changes: 1 addition & 1 deletion src/toggle.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include "XCB-TRL/xcb_image.h"
#include "XCB-TRL/xcb_imgutil.h"
#include "util.h"
#include "dwm.h"
#include "main.h"
#include "toggle.h"
#include "keybinds.h"

Expand Down