summaryrefslogtreecommitdiff
path: root/mcwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'mcwm.c')
-rw-r--r--mcwm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mcwm.c b/mcwm.c
index a42a522..f8eea87 100644
--- a/mcwm.c
+++ b/mcwm.c
@@ -1013,7 +1013,7 @@ void newwin(xcb_window_t win)
* Window coordinates are outside all physical monitors.
* Choose the first screen.
*/
- if (NULL != monlist->data)
+ if (NULL != monlist)
{
client->monitor = monlist->data;
}
@@ -1614,7 +1614,7 @@ void getoutputs(xcb_randr_output_t *outputs, int len, xcb_timestamp_t timestamp)
{
if (NULL == client->monitor->item->next)
{
- if (NULL == monlist->data)
+ if (NULL == monlist)
{
client->monitor = NULL;
}