mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-25 07:32:36 +01:00
Fix the use of uinptr_t
Remove the additional cast to (int), as that makes no sense.
This commit is contained in:
@@ -62,7 +62,7 @@ static void miniwindowDblClick(WObjDescriptor * desc, XEvent * event);
|
||||
static void appearanceObserver(void *self, WMNotification * notif)
|
||||
{
|
||||
WIcon *icon = (WIcon *) self;
|
||||
int flags = (int)(uintptr_t) WMGetNotificationClientData(notif);
|
||||
uintptr_t flags = (uintptr_t)WMGetNotificationClientData(notif);
|
||||
|
||||
if (flags & WTextureSettings) {
|
||||
icon->force_paint = 1;
|
||||
|
||||
@@ -93,7 +93,7 @@ static void closeCascade(WMenu * menu);
|
||||
static void appearanceObserver(void *self, WMNotification * notif)
|
||||
{
|
||||
WMenu *menu = (WMenu *) self;
|
||||
int flags = (int)(uintptr_t) WMGetNotificationClientData(notif);
|
||||
uintptr_t flags = (uintptr_t)WMGetNotificationClientData(notif);
|
||||
|
||||
if (!menu->flags.realized)
|
||||
return;
|
||||
|
||||
@@ -417,7 +417,7 @@ static void wsobserver(void *self, WMNotification * notif)
|
||||
void *data = WMGetNotificationClientData(notif);
|
||||
|
||||
if (strcmp(name, WMNWorkspaceNameChanged) == 0) {
|
||||
UpdateSwitchMenuWorkspace(scr, (int)(uintptr_t) data);
|
||||
UpdateSwitchMenuWorkspace(scr, (uintptr_t)data);
|
||||
} else if (strcmp(name, WMNWorkspaceChanged) == 0) {
|
||||
|
||||
}
|
||||
|
||||
@@ -129,7 +129,7 @@ static void resizebarMouseDown(WCoreWindow * sender, void *data, XEvent * event)
|
||||
static void appearanceObserver(void *self, WMNotification * notif)
|
||||
{
|
||||
WWindow *wwin = (WWindow *) self;
|
||||
int flags = (int)(uintptr_t) WMGetNotificationClientData(notif);
|
||||
uintptr_t flags = (uintptr_t)WMGetNotificationClientData(notif);
|
||||
|
||||
if (!wwin->frame || (!wwin->frame->titlebar && !wwin->frame->resizebar))
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user