Skip to content

Commit

Permalink
added has_threading + mutex struct WM, dwm.h (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerjenigeUberMensch authored Jul 6, 2024
1 parent e23c2e8 commit 700a56d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions dwm.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,9 @@ struct Button

struct WM
{
int screen; /* Screen id */
int numlockmask; /* numlockmask */

int running; /* Running flag */

uint8_t restart; /* Restart flag */
uint8_t has_error; /* Error flag */

uint8_t pad[2]; /* Pad */
int numlockmask; /* numlockmask */
int screen; /* Screen id */

uint16_t sw; /* Screen Height u16 */
uint16_t sh; /* Screen Width u16 */
Expand All @@ -126,6 +120,12 @@ struct WM
Monitor *mons; /* Monitors */
XCBKeySymbols *syms; /* keysym alloc */
char *wmname; /* WM_NAME */

pthread_mutex_t mutex; /* Mutex for main thread */
uint8_t restart; /* Restart flag */
uint8_t has_error; /* Error flag */
uint8_t use_threads; /* Use thread Flag */
uint8_t pad0[5];
};

struct MotifWmHints
Expand Down

0 comments on commit 700a56d

Please sign in to comment.