mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-06-19 14:33:16 -04:00
cleanup: replace session buffer magic numbers
This commit is contained in:
parent
2f733c9802
commit
c6dbb4b1d6
2 changed files with 10 additions and 6 deletions
|
|
@ -81,6 +81,7 @@
|
||||||
#include <wlr/types/wlr_virtual_pointer_v1.h>
|
#include <wlr/types/wlr_virtual_pointer_v1.h>
|
||||||
#include <wlr/types/wlr_xcursor_manager.h>
|
#include <wlr/types/wlr_xcursor_manager.h>
|
||||||
#include <wlr/types/wlr_xdg_activation_v1.h>
|
#include <wlr/types/wlr_xdg_activation_v1.h>
|
||||||
|
#include "session/session.h"
|
||||||
#include <wlr/types/wlr_xdg_decoration_v1.h>
|
#include <wlr/types/wlr_xdg_decoration_v1.h>
|
||||||
#include <wlr/types/wlr_xdg_foreign_registry.h>
|
#include <wlr/types/wlr_xdg_foreign_registry.h>
|
||||||
#include <wlr/types/wlr_xdg_foreign_v1.h>
|
#include <wlr/types/wlr_xdg_foreign_v1.h>
|
||||||
|
|
@ -419,7 +420,7 @@ struct Client {
|
||||||
float focused_opacity;
|
float focused_opacity;
|
||||||
float unfocused_opacity;
|
float unfocused_opacity;
|
||||||
char oldmonname[128];
|
char oldmonname[128];
|
||||||
char session_launch_command[1024];
|
char session_launch_command[SESSION_COMMAND_MAX];
|
||||||
int32_t noblur;
|
int32_t noblur;
|
||||||
double master_mfact_per, master_inner_per, stack_inner_per;
|
double master_mfact_per, master_inner_per, stack_inner_per;
|
||||||
double old_master_mfact_per, old_master_inner_per, old_stack_inner_per;
|
double old_master_mfact_per, old_master_inner_per, old_stack_inner_per;
|
||||||
|
|
@ -626,7 +627,7 @@ typedef struct {
|
||||||
struct wl_list link;
|
struct wl_list link;
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
time_t created_at;
|
time_t created_at;
|
||||||
char command[1024];
|
char command[SESSION_COMMAND_MAX];
|
||||||
} SessionSpawnCommand;
|
} SessionSpawnCommand;
|
||||||
|
|
||||||
/* function declarations */
|
/* function declarations */
|
||||||
|
|
@ -1051,7 +1052,6 @@ struct Pertag {
|
||||||
struct TagScrollerState *scroller_state[LENGTH(tags) + 1];
|
struct TagScrollerState *scroller_state[LENGTH(tags) + 1];
|
||||||
};
|
};
|
||||||
#include "config/parse_config.h"
|
#include "config/parse_config.h"
|
||||||
#include "session/session.h"
|
|
||||||
|
|
||||||
static struct wl_signal mango_print_status;
|
static struct wl_signal mango_print_status;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,10 @@
|
||||||
|
|
||||||
typedef struct Client Client;
|
typedef struct Client Client;
|
||||||
|
|
||||||
|
#define SESSION_TITLE_MAX 512
|
||||||
|
#define SESSION_MONITOR_MAX 128
|
||||||
|
#define SESSION_COMMAND_MAX 1024
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int32_t x;
|
int32_t x;
|
||||||
int32_t y;
|
int32_t y;
|
||||||
|
|
@ -15,9 +19,9 @@ typedef struct {
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
char app_id[256];
|
char app_id[256];
|
||||||
char title[512];
|
char title[SESSION_TITLE_MAX];
|
||||||
char monitor[128];
|
char monitor[SESSION_MONITOR_MAX];
|
||||||
char launch_command[1024];
|
char launch_command[SESSION_COMMAND_MAX];
|
||||||
int32_t pid;
|
int32_t pid;
|
||||||
uint32_t tags;
|
uint32_t tags;
|
||||||
int32_t is_floating;
|
int32_t is_floating;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue