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

Moved Desktop operations to external desktop.c desktop.h file(s) #188

Merged
merged 1 commit into from
Jun 22, 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
15 changes: 11 additions & 4 deletions client.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

#include <stdint.h>

typedef struct Desktop Desktop;

/* kill client type */
enum KillType
{
Expand Down Expand Up @@ -40,9 +42,16 @@ enum ManageCookies
};

typedef struct Client Client;
typedef struct Monitor Monitor;
typedef struct Desktop Desktop;
typedef struct Decoration Decoration;
typedef struct Monitor Monitor;

struct Decoration
{
/* TODO */
uint16_t w;
uint16_t h;
XCBWindow win;
};

struct Client
{
Expand Down Expand Up @@ -274,8 +283,6 @@ void setclientstate(Client *c, uint8_t state);
void setdecorvisible(Client *c, uint8_t state);
/* Sets the desktop count rolling back any clients to previous desktops. */
void setdesktopcount(Monitor *m, uint16_t desktops);
/* Sets the desktops layouts, (not automatic arrange must be called after to apply changes.) */
void setdesktoplayout(Desktop *desk, uint8_t layout);
/* Sets the currently selected desktop */
void setdesktopsel(Monitor *mon, Desktop *desksel);
/* Sets the flag to disable border >>CHANGES<< for a client. */
Expand Down
Loading