devdraw: move Client into devdraw.h and move global state in
This commit is contained in:
parent
933b98054f
commit
88ed92aa40
11 changed files with 470 additions and 465 deletions
|
|
@ -6,6 +6,7 @@
|
|||
#include <libc.h>
|
||||
#include <draw.h>
|
||||
#include <memdraw.h>
|
||||
#include <memlayer.h>
|
||||
#include <keyboard.h>
|
||||
#include <mouse.h>
|
||||
#include <cursor.h>
|
||||
|
|
@ -232,7 +233,7 @@ _xattach(char *label, char *winsize)
|
|||
|
||||
if (XrmGetResource(database, "Xft.dpi", "String", &dpitype, &dpires) == True) {
|
||||
if (dpires.addr) {
|
||||
displaydpi=atoi(dpires.addr);
|
||||
client0->displaydpi = atoi(dpires.addr);
|
||||
}
|
||||
}
|
||||
geom = smprint("%s.geometry", label);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue