mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-21 06:59:53 -05:00
opt: set all monitor pointer init value to NULL
This commit is contained in:
parent
e352e3a8fd
commit
457534bd41
5 changed files with 16 additions and 16 deletions
|
|
@ -209,7 +209,7 @@ void dwl_ipc_output_set_client_tags(struct wl_client *client,
|
|||
unsigned int and_tags,
|
||||
unsigned int xor_tags) {
|
||||
DwlIpcOutput *ipc_output;
|
||||
Monitor *monitor;
|
||||
Monitor *monitor = NULL;
|
||||
Client *selected_client = NULL;
|
||||
unsigned int newtags = 0;
|
||||
|
||||
|
|
@ -237,7 +237,7 @@ void dwl_ipc_output_set_layout(struct wl_client *client,
|
|||
struct wl_resource *resource,
|
||||
unsigned int index) {
|
||||
DwlIpcOutput *ipc_output;
|
||||
Monitor *monitor;
|
||||
Monitor *monitor = NULL;
|
||||
|
||||
ipc_output = wl_resource_get_user_data(resource);
|
||||
if (!ipc_output)
|
||||
|
|
@ -256,7 +256,7 @@ void dwl_ipc_output_set_tags(struct wl_client *client,
|
|||
struct wl_resource *resource, unsigned int tagmask,
|
||||
unsigned int toggle_tagset) {
|
||||
DwlIpcOutput *ipc_output;
|
||||
Monitor *monitor;
|
||||
Monitor *monitor = NULL;
|
||||
unsigned int newtags = tagmask & TAGMASK;
|
||||
|
||||
ipc_output = wl_resource_get_user_data(resource);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue