Re: [dev] slock size is not changed at resolution change

From: FRIGN <dev_AT_frign.de>
Date: Wed, 2 Dec 2015 10:32:53 +0100

On Wed, 2 Dec 2015 09:20:18 +0100
Martin Ueding <lists_AT_martin-ueding.de> wrote:

Hey Martin,

> The screen that slock lays over the other windows has the 1366×768
> resolution that the laptop screen has. That does not cover the whole
> 1920×1080 display:
> The problem only occurs since the external screen is enabled
> automatically when it is plugged in.
> Is this a bug in my usage or something that could be improved in slock?

usually, slock should get a XRRScreenChangeNotifyEvent when the screen
size changes. I wonder why it isn't fired; maybe there's a bug in slock
or in awesome wm not sending proper events.

I'm puzzled why we don't just do something like

Atom wm_state = XInternAtom (display, "_NET_WM_STATE", true );
Atom wm_fullscreen = XInternAtom (display, "_NET_WM_STATE_FULLSCREEN", true );

XChangeProperty(display, window, wm_state, XA_ATOM, 32,
                PropModeReplace, (unsigned char *)&wm_fullscreen, 1);

on the slock-"window", but I'm sure there are reasons for that.

Cheers

FRIGN

-- 
FRIGN <dev_AT_frign.de>
Received on Wed Dec 02 2015 - 10:32:53 CET

This archive was generated by hypermail 2.3.0 : Wed Dec 02 2015 - 10:36:10 CET