-
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d8242aa
commit c40bf06
Showing
3 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, see: <http://www.gnu.org/licenses/> | ||
*/ | ||
|
||
#include "config.h" | ||
#include "log.h" | ||
#include "mcomms.h" | ||
|
||
const char *m_register[] = { | ||
"new_window" | ||
}; | ||
|
||
bool | ||
m_register_interest(int *fd, const char *type, ...) | ||
{ | ||
va_list ap; | ||
|
||
va_start(ap, type); | ||
vfprintf(stderr, type, ap); | ||
va_end(ap); | ||
|
||
return true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#ifndef FVWMLIB_MCOMMS_H | ||
#define FVWMLIB_MCOMMS_H | ||
|
||
#include <stdarg.h> | ||
#include <stdbool.h> | ||
|
||
struct m_add_window { | ||
char *window; | ||
int title_height; | ||
int border_width; | ||
|
||
struct { | ||
int window; | ||
int x; | ||
int y; | ||
int width; | ||
int height; | ||
} frame; | ||
|
||
struct { | ||
int base_width; | ||
int base_height; | ||
int inc_width; | ||
int inc_height; | ||
int orig_inc_width; | ||
int orig_inc_height; | ||
int min_width; | ||
int min_height; | ||
int max_width; | ||
int max_height; | ||
} hints; | ||
|
||
struct { | ||
int layer; | ||
int desktop; | ||
int window_type; | ||
} ewmh; | ||
}; | ||
|
||
bool m_register_interest(int *, const char *, ...); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters