Skip to content

devdraw: do not change window position when resizing on X11#781

Open
dmitrivereshchagin wants to merge 1 commit into
9fans:masterfrom
dmitrivereshchagin:devdraw/x11-resizewindow
Open

devdraw: do not change window position when resizing on X11#781
dmitrivereshchagin wants to merge 1 commit into
9fans:masterfrom
dmitrivereshchagin:devdraw/x11-resizewindow

Conversation

@dmitrivereshchagin

Copy link
Copy Markdown
Contributor

Without this change, drawresizewindow(3) moves window to the upper-left corner of the screen.

Without this change, drawresizewindow(3) moves window to the upper-left
corner of the screen.
@dmitrivereshchagin

Copy link
Copy Markdown
Contributor Author

Sample code to reproduce the issue:

// 9c foo.c && 9l -o foo foo.o && foo
#include <u.h>
#include <libc.h>
#include <draw.h>
#include <event.h>

void
eresized(int){}

void
main(int, char*[])
{
	initdraw(nil, nil, nil);
	einit(Emouse);
	for(;;){
		if(emouse().buttons)
			drawresizewindow(Rect(0, 0, 300, 300));
	}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant