mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
use an int in screen_init and avoid needing to cast for screen number (which).
This commit is contained in:
parent
006a29e617
commit
94e341725b
4
calmwm.h
4
calmwm.h
@ -205,7 +205,7 @@ TAILQ_HEAD(autogroupwin_q, autogroupwin);
|
|||||||
|
|
||||||
struct screen_ctx {
|
struct screen_ctx {
|
||||||
TAILQ_ENTRY(screen_ctx) entry;
|
TAILQ_ENTRY(screen_ctx) entry;
|
||||||
u_int which;
|
int which;
|
||||||
Visual *visual;
|
Visual *visual;
|
||||||
Colormap colormap;
|
Colormap colormap;
|
||||||
Window rootwin;
|
Window rootwin;
|
||||||
@ -374,7 +374,7 @@ void search_print_client(struct menu *, int);
|
|||||||
|
|
||||||
struct geom screen_find_xinerama(struct screen_ctx *, int, int);
|
struct geom screen_find_xinerama(struct screen_ctx *, int, int);
|
||||||
struct screen_ctx *screen_fromroot(Window);
|
struct screen_ctx *screen_fromroot(Window);
|
||||||
void screen_init(u_int);
|
void screen_init(int);
|
||||||
void screen_update_geometry(struct screen_ctx *);
|
void screen_update_geometry(struct screen_ctx *);
|
||||||
void screen_updatestackingorder(struct screen_ctx *);
|
void screen_updatestackingorder(struct screen_ctx *);
|
||||||
|
|
||||||
|
2
screen.c
2
screen.c
@ -31,7 +31,7 @@
|
|||||||
#include "calmwm.h"
|
#include "calmwm.h"
|
||||||
|
|
||||||
void
|
void
|
||||||
screen_init(u_int which)
|
screen_init(int which)
|
||||||
{
|
{
|
||||||
struct screen_ctx *sc;
|
struct screen_ctx *sc;
|
||||||
Window *wins, w0, w1;
|
Window *wins, w0, w1;
|
||||||
|
@ -362,7 +362,7 @@ xev_handle_randr(XEvent *ee)
|
|||||||
|
|
||||||
i = XRRRootToScreen(X_Dpy, rev->root);
|
i = XRRRootToScreen(X_Dpy, rev->root);
|
||||||
TAILQ_FOREACH(sc, &Screenq, entry) {
|
TAILQ_FOREACH(sc, &Screenq, entry) {
|
||||||
if (sc->which == (u_int)i) {
|
if (sc->which == i) {
|
||||||
XRRUpdateConfiguration(ee);
|
XRRUpdateConfiguration(ee);
|
||||||
screen_update_geometry(sc);
|
screen_update_geometry(sc);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user