more wayland work
This commit is contained in:
parent
5ad21381c5
commit
37fe636c75
10 changed files with 152 additions and 78 deletions
10
src/core.c
10
src/core.c
|
|
@ -295,7 +295,9 @@ int MwStep(MwWidget handle) {
|
|||
arrfree(widgets);
|
||||
|
||||
handle->prop_event = 0;
|
||||
if(handle->lowlevel != NULL && MwLLPending(handle->lowlevel)) MwLLNextEvent(handle->lowlevel);
|
||||
if(handle->lowlevel != NULL && MwLLPending(handle->lowlevel))
|
||||
MwLLNextEvent(handle->lowlevel);
|
||||
|
||||
handle->prop_event = 1;
|
||||
|
||||
clean_destroy_queue(handle);
|
||||
|
|
@ -378,11 +380,7 @@ void MwSetText(MwWidget handle, const char* key, const char* value) {
|
|||
shput(handle->text, key, v);
|
||||
}
|
||||
if(handle->prop_event) MwDispatch3(handle, prop_change, key);
|
||||
if(strcmp(key, MwNbackground) == 0) {
|
||||
MwLLColor c = MwParseColor(handle, value);
|
||||
MwLLSetBackground(handle->lowlevel, c);
|
||||
MwLLFreeColor(c);
|
||||
}
|
||||
|
||||
if(strcmp(key, MwNbackground) == 0 || strcmp(key, MwNforeground) == 0 || strcmp(key, MwNsubBackground) == 0 || strcmp(key, MwNsubForeground) == 0) {
|
||||
MwForceRender(handle);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue