mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-21 05:18:06 +01:00
wmaker: Removed notion of 'Default' mouse cursor
A default cursor would make sense if we were talking about an API, where we would propose a 'I-don't-know' choice to devs, but here we're talking about WindowMaker's internal, where we're supposed to provide a consistent interface to the user, so picking a cursor is not an option (and 'Normal' is actually a decent looking choice anyway). Suggested-by: Rodolfo García Peñas <kix@kix.es>
This commit is contained in:
committed by
Carlos R. Mafra
parent
b48b3370e2
commit
32cebb1305
@@ -49,7 +49,7 @@ WCoreWindow *wCoreCreateTopLevel(WScreen *screen, int x, int y, int width, int h
|
||||
|
||||
vmask = CWBorderPixel | CWCursor | CWEventMask | CWOverrideRedirect | CWColormap;
|
||||
attribs.override_redirect = True;
|
||||
attribs.cursor = wPreferences.cursor[WCUR_DEFAULT];
|
||||
attribs.cursor = wPreferences.cursor[WCUR_NORMAL];
|
||||
attribs.background_pixmap = None;
|
||||
attribs.background_pixel = screen->black_pixel;
|
||||
attribs.border_pixel = border_pixel;
|
||||
@@ -100,7 +100,7 @@ WCoreWindow *wCoreCreate(WCoreWindow *parent, int x, int y, int width, int heigh
|
||||
core = wmalloc(sizeof(WCoreWindow));
|
||||
|
||||
vmask = CWBorderPixel | CWCursor | CWEventMask | CWColormap;
|
||||
attribs.cursor = wPreferences.cursor[WCUR_DEFAULT];
|
||||
attribs.cursor = wPreferences.cursor[WCUR_NORMAL];
|
||||
attribs.background_pixmap = None;
|
||||
attribs.background_pixel = parent->screen_ptr->black_pixel;
|
||||
attribs.event_mask = KeyPressMask | KeyReleaseMask | ButtonPressMask |
|
||||
|
||||
Reference in New Issue
Block a user