from src/Xrandr.c
switch (event->type - info->codes->first_event) {
case RRScreenChangeNotify:
scevent = (XRRScreenChangeNotifyEvent *) event;
snum = XRRRootToScreen(dpy, ((XRRScreenChangeNotifyEvent *) event)->root);
<--- snum is returned as -1 here on nx server
if (scevent->rotation & (RR_Rotate_90 | RR_Rotate_270)) { dpy->screens[snum].width = scevent->height;
Created attachment 73555
proposed patch
kwin crashes on xrandr event .
from src/Xrandr.c >first_ event) { otify: eNotifyEvent *) event; (dpy,
((XRRScreenC hangeNotifyEven t *) event)->root);
dpy-> screens[ snum].width = scevent->height;
switch (event->type - info->codes-
case RRScreenChangeN
scevent = (XRRScreenChang
snum = XRRRootToScreen
<--- snum is returned as -1 here on nx server
if (scevent->rotation & (RR_Rotate_90 | RR_Rotate_270)) {
reference: /bugs.launchpad .net/ubuntu/ +source/ libxfixes/ +bug/985202
https:/